]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/ada/sinfo.ads
2014-08-04 Yannick Moy <moy@adacore.com>
[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-2014, 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 --------------------
525 -- GNATprove Mode --
526 --------------------
527
528 -- When a file is compiled in GNATprove mode (-gnatd.F), a very light
529 -- expansion is performed and the analysis must generate a tree in a
530 -- form that meets additional requirements.
531
532 -- This light expansion does two transformations of the tree that cannot
533 -- be postponed till after semantic analysis:
534
535 -- 1. Replace object renamings by renamed object. This requires the
536 -- introduction of temporaries at the point of the renaming, which
537 -- must be properly analyzed.
538
539 -- 2. Fully qualify entity names. This is needed to generate suitable
540 -- local effects and call-graphs in ALI files, with the completely
541 -- qualified names (in particular the suffix to distinguish homonyms).
542
543 -- The tree after this light expansion should be fully analyzed
544 -- semantically, which sometimes requires the insertion of semantic
545 -- pre-analysis, for example for subprogram contracts and pragma
546 -- check/assert. In particular, all expression must have their proper type,
547 -- and semantic links should be set between tree nodes (partial to full
548 -- view, etc.) Some kinds of nodes should be either absent, or can be
549 -- ignored by the formal verification backend:
550
551 -- N_Object_Renaming_Declaration: can be ignored safely
552 -- N_Expression_Function: absent (rewritten)
553 -- N_Expression_With_Actions: absent (not generated)
554
555 -- SPARK cross-references are generated from the regular cross-references
556 -- (used for browsing and code understanding) and additional references
557 -- collected during semantic analysis, in particular on all dereferences.
558 -- These SPARK cross-references are output in a separate section of ALI
559 -- files, as described in spark_xrefs.adb. They are the basis for the
560 -- computation of data dependences in GNATprove. This implies that all
561 -- cross-references should be generated in this mode, even those that would
562 -- not make sense from a user point-of-view, and that cross-references that
563 -- do not lead to data dependences for subprograms can be safely ignored.
564
565 -- GNATprove relies on the following frontend behaviors:
566
567 -- 1. The first declarations in the list of visible declarations of
568 -- a package declaration for a generic instance, up to the first
569 -- declaration which comes from source, should correspond to
570 -- the "mappings nodes" between formal and actual generic parameters.
571
572 -- 2. In addition pragma Debug statements are removed from the tree
573 -- (rewritten to NULL stmt), since they should be ignored in formal
574 -- verification.
575
576 -- 3. An error is also issued for missing subunits, similar to the
577 -- warning issued when generating code, to avoid formal verification
578 -- of a partial unit.
579
580 -- 4. Unconstrained types are not replaced by constrained types whose
581 -- bounds are generated from an expression: Expand_Subtype_From_Expr
582 -- should be noop.
583
584 -----------------------
585 -- Check Flag Fields --
586 -----------------------
587
588 -- The following flag fields appear in expression nodes:
589
590 -- Do_Division_Check
591 -- Do_Overflow_Check
592 -- Do_Range_Check
593
594 -- These three flags are always set by the front end during semantic
595 -- analysis, on expression nodes that may trigger the corresponding
596 -- check. The front end then inserts or not the check during expansion. In
597 -- particular, these flags should also be correctly set in ASIS mode and
598 -- GNATprove mode.
599
600 -- Note: the expander always takes care of the Do_Range check case,
601 -- so this flag will never be set in the expanded tree passed to the
602 -- back end code generator.
603
604 -- Note that this accounts for all nodes that trigger the corresponding
605 -- checks, except for range checks on subtype_indications, which may be
606 -- required to check that a range_constraint is compatible with the given
607 -- subtype (RM 3.2.2(11)).
608
609 -- The following flag fields appear in various nodes:
610
611 -- Do_Accessibility_Check
612 -- Do_Discriminant_Check
613 -- Do_Length_Check
614 -- Do_Storage_Check
615 -- Do_Tag_Check
616
617 -- These flags are used in some specific cases by the front end, either
618 -- during semantic analysis or during expansion, and cannot be expected
619 -- to be set on all nodes that trigger the corresponding check.
620
621 ------------------------
622 -- Common Flag Fields --
623 ------------------------
624
625 -- The following flag fields appear in all nodes:
626
627 -- Analyzed
628 -- This flag is used to indicate that a node (and all its children have
629 -- been analyzed. It is used to avoid reanalysis of a node that has
630 -- already been analyzed, both for efficiency and functional correctness
631 -- reasons.
632
633 -- Comes_From_Source
634 -- This flag is set if the node comes directly from an explicit construct
635 -- in the source. It is normally on for any nodes built by the scanner or
636 -- parser from the source program, with the exception that in a few cases
637 -- the parser adds nodes to normalize the representation (in particular
638 -- a null statement is added to a package body if there is no begin/end
639 -- initialization section.
640 --
641 -- Most nodes inserted by the analyzer or expander are not considered
642 -- as coming from source, so the flag is off for such nodes. In a few
643 -- cases, the expander constructs nodes closely equivalent to nodes
644 -- from the source program (e.g. the allocator built for build-in-place
645 -- case), and the Comes_From_Source flag is deliberately set.
646
647 -- Error_Posted
648 -- This flag is used to avoid multiple error messages being posted on or
649 -- referring to the same node. This flag is set if an error message
650 -- refers to a node or is posted on its source location, and has the
651 -- effect of inhibiting further messages involving this same node.
652
653 -----------------------
654 -- Modify_Tree_For_C --
655 -----------------------
656
657 -- If the flag Opt.Modify_Tree_For_C is set True, then the tree is modified
658 -- in ways that help match the semantics better with C, easing the task of
659 -- interfacing to C code generators (other than GCC, where the work is done
660 -- in gigi, and there is no point in changing that), and also making life
661 -- easier for Cprint in generating C source code.
662
663 -- The current modifications implemented are as follows:
664
665 -- N_Op_Rotate_Left, N_Op_Rotate_Right, N_Shift_Right_Arithmetic nodes
666 -- are eliminated from the tree (since these operations do not exist in
667 -- C), and the operations are rewritten in terms of logical shifts and
668 -- other logical operations that do exist in C. See Exp_Ch4 expansion
669 -- routines for these operators for details of the transformations made.
670
671 -- The right operand of N_Op_Shift_Right and N_Op_Shift_Left is always
672 -- less than the word size (since other values are not well-defined in
673 -- C). This is done using an explicit test if necessary.
674
675 -- Min and Max attributes are expanded into equivalent if expressions,
676 -- dealing properly with side effect issues.
677
678 -- Mod for signed integer types is expanded into equivalent expressions
679 -- using Rem (which is % in C) and other C-available operators.
680
681 -- The Actions list of an Expression_With_Actions node does not contain
682 -- any declarations,(so that DO X, .. Y IN Z becomes (X, .. Y, Z) in C).
683
684 ------------------------------------
685 -- Description of Semantic Fields --
686 ------------------------------------
687
688 -- The meaning of the syntactic fields is generally clear from their names
689 -- without any further description, since the names are chosen to
690 -- correspond very closely to the syntax in the reference manual. This
691 -- section describes the usage of the semantic fields, which are used to
692 -- contain additional information determined during semantic analysis.
693
694 -- ABE_Is_Certain (Flag18-Sem)
695 -- This flag is set in an instantiation node or a call node is determined
696 -- to be sure to raise an ABE. This is used to trigger special handling
697 -- of such cases, particularly in the instantiation case where we avoid
698 -- instantiating the body if this flag is set. This flag is also present
699 -- in an N_Formal_Package_Declaration_Node since formal package
700 -- declarations are treated like instantiations, but it is always set to
701 -- False in this context.
702
703 -- Accept_Handler_Records (List5-Sem)
704 -- This field is present only in an N_Accept_Alternative node. It is used
705 -- to temporarily hold the exception handler records from an accept
706 -- statement in a selective accept. These exception handlers will
707 -- eventually be placed in the Handler_Records list of the procedure
708 -- built for this accept (see Expand_N_Selective_Accept procedure in
709 -- Exp_Ch9 for further details).
710
711 -- Access_Types_To_Process (Elist2-Sem)
712 -- Present in N_Freeze_Entity nodes for Incomplete or private types.
713 -- Contains the list of access types which may require specific treatment
714 -- when the nature of the type completion is completely known. An example
715 -- of such treatment is the generation of the associated_final_chain.
716
717 -- Actions (List1-Sem)
718 -- This field contains a sequence of actions that are associated with the
719 -- node holding the field. See the individual node types for details of
720 -- how this field is used, as well as the description of the specific use
721 -- for a particular node type.
722
723 -- Activation_Chain_Entity (Node3-Sem)
724 -- This is used in tree nodes representing task activators (blocks,
725 -- subprogram bodies, package declarations, and task bodies). It is
726 -- initially Empty, and then gets set to point to the entity for the
727 -- declared Activation_Chain variable when the first task is declared.
728 -- When tasks are declared in the corresponding declarative region this
729 -- entity is located by name (its name is always _Chain) and the declared
730 -- tasks are added to the chain. Note that N_Extended_Return_Statement
731 -- does not have this attribute, although it does have an activation
732 -- chain. This chain is used to store the tasks temporarily, and is not
733 -- used for activating them. On successful completion of the return
734 -- statement, the tasks are moved to the caller's chain, and the caller
735 -- activates them.
736
737 -- Acts_As_Spec (Flag4-Sem)
738 -- A flag set in the N_Subprogram_Body node for a subprogram body which
739 -- is acting as its own spec, except in the case of a library level
740 -- subprogram, in which case the flag is set on the parent compilation
741 -- unit node instead.
742
743 -- Actual_Designated_Subtype (Node4-Sem)
744 -- Present in N_Free_Statement and N_Explicit_Dereference nodes. If gigi
745 -- needs to known the dynamic constrained subtype of the designated
746 -- object, this attribute is set to that type. This is done for
747 -- N_Free_Statements for access-to-classwide types and access to
748 -- unconstrained packed array types, and for N_Explicit_Dereference when
749 -- the designated type is an unconstrained packed array and the
750 -- dereference is the prefix of a 'Size attribute reference.
751
752 -- Address_Warning_Posted (Flag18-Sem)
753 -- Present in N_Attribute_Definition nodes. Set to indicate that we have
754 -- posted a warning for the address clause regarding size or alignment
755 -- issues. Used to inhibit multiple redundant messages.
756
757 -- Aggregate_Bounds (Node3-Sem)
758 -- Present in array N_Aggregate nodes. If the bounds of the aggregate are
759 -- known at compile time, this field points to an N_Range node with those
760 -- bounds. Otherwise Empty.
761
762 -- All_Others (Flag11-Sem)
763 -- Present in an N_Others_Choice node. This flag is set for an others
764 -- exception where all exceptions are to be caught, even those that are
765 -- not normally handled (in particular the tasking abort signal). This
766 -- is used for translation of the at end handler into a normal exception
767 -- handler.
768
769 -- Aspect_Rep_Item (Node2-Sem)
770 -- Present in N_Aspect_Specification nodes. Points to the corresponding
771 -- pragma/attribute definition node used to process the aspect.
772
773 -- Assignment_OK (Flag15-Sem)
774 -- This flag is set in a subexpression node for an object, indicating
775 -- that the associated object can be modified, even if this would not
776 -- normally be permissible (either by direct assignment, or by being
777 -- passed as an out or in-out parameter). This is used by the expander
778 -- for a number of purposes, including initialization of constants and
779 -- limited type objects (such as tasks), setting discriminant fields,
780 -- setting tag values, etc. N_Object_Declaration nodes also have this
781 -- flag defined. Here it is used to indicate that an initialization
782 -- expression is valid, even where it would normally not be allowed
783 -- (e.g. where the type involved is limited).
784
785 -- Associated_Node (Node4-Sem)
786 -- Present in nodes that can denote an entity: identifiers, character
787 -- literals, operator symbols, expanded names, operator nodes, and
788 -- attribute reference nodes (all these nodes have an Entity field).
789 -- This field is also present in N_Aggregate, N_Selected_Component, and
790 -- N_Extension_Aggregate nodes. This field is used in generic processing
791 -- to create links between the generic template and the generic copy.
792 -- See Sem_Ch12.Get_Associated_Node for full details. Note that this
793 -- field overlaps Entity, which is fine, since, as explained in Sem_Ch12,
794 -- the normal function of Entity is not required at the point where the
795 -- Associated_Node is set. Note also, that in generic templates, this
796 -- means that the Entity field does not necessarily point to an Entity.
797 -- Since the back end is expected to ignore generic templates, this is
798 -- harmless.
799
800 -- Atomic_Sync_Required (Flag14-Sem)
801 -- This flag is set on a node for which atomic synchronization is
802 -- required for the corresponding reference or modification.
803
804 -- At_End_Proc (Node1)
805 -- This field is present in an N_Handled_Sequence_Of_Statements node.
806 -- It contains an identifier reference for the cleanup procedure to be
807 -- called. See description of this node for further details.
808
809 -- Backwards_OK (Flag6-Sem)
810 -- A flag present in the N_Assignment_Statement node. It is used only
811 -- if the type being assigned is an array type, and is set if analysis
812 -- determines that it is definitely safe to do the copy backwards, i.e.
813 -- starting at the highest addressed element. This is the case if either
814 -- the operands do not overlap, or they may overlap, but if they do,
815 -- then the left operand is at a higher address than the right operand.
816 --
817 -- Note: If neither of the flags Forwards_OK or Backwards_OK is set, it
818 -- means that the front end could not determine that either direction is
819 -- definitely safe, and a runtime check may be required if the backend
820 -- cannot figure it out. If both flags Forwards_OK and Backwards_OK are
821 -- set, it means that the front end can assure no overlap of operands.
822
823 -- Body_To_Inline (Node3-Sem)
824 -- Present in subprogram declarations. Denotes analyzed but unexpanded
825 -- body of subprogram, to be used when inlining calls. Present when the
826 -- subprogram has an Inline pragma and inlining is enabled. If the
827 -- declaration is completed by a renaming_as_body, and the renamed en-
828 -- tity is a subprogram, the Body_To_Inline is the name of that entity,
829 -- which is used directly in later calls to the original subprogram.
830
831 -- Body_Required (Flag13-Sem)
832 -- A flag that appears in the N_Compilation_Unit node indicating that
833 -- the corresponding unit requires a body. For the package case, this
834 -- indicates that a completion is required. In Ada 95, if the flag is not
835 -- set for the package case, then a body may not be present. In Ada 83,
836 -- if the flag is not set for the package case, then body is optional.
837 -- For a subprogram declaration, the flag is set except in the case where
838 -- a pragma Import or Interface applies, in which case no body is
839 -- permitted (in Ada 83 or Ada 95).
840
841 -- By_Ref (Flag5-Sem)
842 -- Present in N_Simple_Return_Statement and N_Extended_Return_Statement,
843 -- this flag is set when the returned expression is already allocated on
844 -- the secondary stack and thus the result is passed by reference rather
845 -- than copied another time.
846
847 -- Cleanup_Actions (List5-Sem)
848 -- Present in block statements created for transient blocks, contains
849 -- additional cleanup actions carried over from the transient scope.
850
851 -- Check_Address_Alignment (Flag11-Sem)
852 -- A flag present in N_Attribute_Definition clause for a 'Address
853 -- attribute definition. This flag is set if a dynamic check should be
854 -- generated at the freeze point for the entity to which this address
855 -- clause applies. The reason that we need this flag is that we want to
856 -- check for range checks being suppressed at the point where the
857 -- attribute definition clause is given, rather than testing this at the
858 -- freeze point.
859
860 -- Comes_From_Extended_Return_Statement (Flag18-Sem)
861 -- Present in N_Simple_Return_Statement nodes. True if this node was
862 -- constructed as part of the N_Extended_Return_Statement expansion.
863
864 -- Compile_Time_Known_Aggregate (Flag18-Sem)
865 -- Present in N_Aggregate nodes. Set for aggregates which can be fully
866 -- evaluated at compile time without raising constraint error. Such
867 -- aggregates can be passed as is the back end without any expansion.
868 -- See Exp_Aggr for specific conditions under which this flag gets set.
869
870 -- Componentwise_Assignment (Flag14-Sem)
871 -- Present in N_Assignment_Statement nodes. Set for a record assignment
872 -- where all that needs doing is to expand it into component-by-component
873 -- assignments. This is used internally for the case of tagged types with
874 -- rep clauses, where we need to avoid recursion (we don't want to try to
875 -- generate a call to the primitive operation, because this is the case
876 -- where we are compiling the primitive operation). Note that when we are
877 -- expanding component assignments in this case, we never assign the _tag
878 -- field, but we recursively assign components of the parent type.
879
880 -- Condition_Actions (List3-Sem)
881 -- This field appears in else-if nodes and in the iteration scheme node
882 -- for while loops. This field is only used during semantic processing to
883 -- temporarily hold actions inserted into the tree. In the tree passed
884 -- to gigi, the condition actions field is always set to No_List. For
885 -- details on how this field is used, see the routine Insert_Actions in
886 -- package Exp_Util, and also the expansion routines for the relevant
887 -- nodes.
888
889 -- Context_Pending (Flag16-Sem)
890 -- This field appears in Compilation_Unit nodes, to indicate that the
891 -- context of the unit is being compiled. Used to detect circularities
892 -- that are not otherwise detected by the loading mechanism. Such
893 -- circularities can occur in the presence of limited and non-limited
894 -- with_clauses that mention the same units.
895
896 -- Controlling_Argument (Node1-Sem)
897 -- This field is set in procedure and function call nodes if the call
898 -- is a dispatching call (it is Empty for a non-dispatching call). It
899 -- indicates the source of the call's controlling tag. For procedure
900 -- calls, the Controlling_Argument is one of the actuals. For function
901 -- that has a dispatching result, it is an entity in the context of the
902 -- call that can provide a tag, or else it is the tag of the root type
903 -- of the class. It can also specify a tag directly rather than being a
904 -- tagged object. The latter is needed by the implementations of AI-239
905 -- and AI-260.
906
907 -- Conversion_OK (Flag14-Sem)
908 -- A flag set on type conversion nodes to indicate that the conversion
909 -- is to be considered as being valid, even though it is the case that
910 -- the conversion is not valid Ada. This is used for attributes Enum_Rep,
911 -- Fixed_Value and Integer_Value, for internal conversions done for
912 -- fixed-point operations, and for certain conversions for calls to
913 -- initialization procedures. If Conversion_OK is set, then Etype must be
914 -- set (the analyzer assumes that Etype has been set). For the case of
915 -- fixed-point operands, it also indicates that the conversion is to be
916 -- direct conversion of the underlying integer result, with no regard to
917 -- the small operand.
918
919 -- Convert_To_Return_False (Flag13-Sem)
920 -- Present in N_Raise_Expression nodes that appear in the body of the
921 -- special predicateM function used to test a predicate in the context
922 -- of a membership test, where raise expression results in returning a
923 -- value of False rather than raising an exception.
924
925 -- Corresponding_Aspect (Node3-Sem)
926 -- Present in N_Pragma node. Used to point back to the source aspect from
927 -- the corresponding pragma. This field is Empty for source pragmas.
928
929 -- Corresponding_Body (Node5-Sem)
930 -- This field is set in subprogram declarations, package declarations,
931 -- entry declarations of protected types, and in generic units. It points
932 -- to the defining entity for the corresponding body (NOT the node for
933 -- the body itself).
934
935 -- Corresponding_Formal_Spec (Node3-Sem)
936 -- This field is set in subprogram renaming declarations, where it points
937 -- to the defining entity for a formal subprogram in the case where the
938 -- renaming corresponds to a generic formal subprogram association in an
939 -- instantiation. The field is Empty if the renaming does not correspond
940 -- to such a formal association.
941
942 -- Corresponding_Generic_Association (Node5-Sem)
943 -- This field is defined for object declarations and object renaming
944 -- declarations. It is set for the declarations within an instance that
945 -- map generic formals to their actuals. If set, the field points to
946 -- a generic_association which is the original parent of the expression
947 -- or name appearing in the declaration. This simplifies ASIS queries.
948
949 -- Corresponding_Integer_Value (Uint4-Sem)
950 -- This field is set in real literals of fixed-point types (it is not
951 -- used for floating-point types). It contains the integer value used
952 -- to represent the fixed-point value. It is also set on the universal
953 -- real literals used to represent bounds of fixed-point base types
954 -- and their first named subtypes.
955
956 -- Corresponding_Spec (Node5-Sem)
957 -- This field is set in subprogram, package, task, and protected body
958 -- nodes, where it points to the defining entity in the corresponding
959 -- spec. The attribute is also set in N_With_Clause nodes where it points
960 -- to the defining entity for the with'ed spec, and in a subprogram
961 -- renaming declaration when it is a Renaming_As_Body. The field is Empty
962 -- if there is no corresponding spec, as in the case of a subprogram body
963 -- that serves as its own spec.
964 --
965 -- In Ada 2012, Corresponding_Spec is set on expression functions that
966 -- complete a subprogram declaration.
967
968 -- Corresponding_Spec_Of_Stub (Node2-Sem)
969 -- This field is present in subprogram, package, task and protected body
970 -- stubs where it points to the corresponding spec of the stub. Due to
971 -- clashes in the structure of nodes, we cannot use Corresponding_Spec.
972
973 -- Corresponding_Stub (Node3-Sem)
974 -- This field is present in an N_Subunit node. It holds the node in
975 -- the parent unit that is the stub declaration for the subunit. It is
976 -- set when analysis of the stub forces loading of the proper body. If
977 -- expansion of the proper body creates new declarative nodes, they are
978 -- inserted at the point of the corresponding_stub.
979
980 -- Dcheck_Function (Node5-Sem)
981 -- This field is present in an N_Variant node, It references the entity
982 -- for the discriminant checking function for the variant.
983
984 -- Default_Expression (Node5-Sem)
985 -- This field is Empty if there is no default expression. If there is a
986 -- simple default expression (one with no side effects), then this field
987 -- simply contains a copy of the Expression field (both point to the tree
988 -- for the default expression). Default_Expression is used for
989 -- conformance checking.
990
991 -- Default_Storage_Pool (Node3-Sem)
992 -- This field is present in N_Compilation_Unit_Aux nodes. It is set to a
993 -- copy of Opt.Default_Pool at the end of the compilation unit. See
994 -- package Opt for details. This is used for inheriting the
995 -- Default_Storage_Pool in child units.
996
997 -- Discr_Check_Funcs_Built (Flag11-Sem)
998 -- This flag is present in N_Full_Type_Declaration nodes. It is set when
999 -- discriminant checking functions are constructed. The purpose is to
1000 -- avoid attempting to set these functions more than once.
1001
1002 -- Do_Accessibility_Check (Flag13-Sem)
1003 -- This flag is set on N_Parameter_Specification nodes to indicate
1004 -- that an accessibility check is required for the parameter. It is
1005 -- not yet decided who takes care of this check (TBD ???).
1006
1007 -- Do_Discriminant_Check (Flag1-Sem)
1008 -- This flag is set on N_Selected_Component nodes to indicate that a
1009 -- discriminant check is required using the discriminant check routine
1010 -- associated with the selector. The actual check is generated by the
1011 -- expander when processing selected components. In the case of
1012 -- Unchecked_Union, the flag is also set, but no discriminant check
1013 -- routine is associated with the selector, and the expander does not
1014 -- generate a check. This flag is also present in assignment statements
1015 -- (and set if the assignment requires a discriminant check), and in type
1016 -- conversion nodes (and set if the conversion requires a check).
1017
1018 -- Do_Division_Check (Flag13-Sem)
1019 -- This flag is set on a division operator (/ mod rem) to indicate
1020 -- that a zero divide check is required. The actual check is dealt
1021 -- with by the backend (all the front end does is to set the flag).
1022
1023 -- Do_Length_Check (Flag4-Sem)
1024 -- This flag is set in an N_Assignment_Statement, N_Op_And, N_Op_Or,
1025 -- N_Op_Xor, or N_Type_Conversion node to indicate that a length check
1026 -- is required. It is not determined who deals with this flag (???).
1027
1028 -- Do_Overflow_Check (Flag17-Sem)
1029 -- This flag is set on an operator where an overflow check is required on
1030 -- the operation. The actual check is dealt with by the backend (all the
1031 -- front end does is to set the flag). The other cases where this flag is
1032 -- used is on a Type_Conversion node and for attribute reference nodes.
1033 -- For a type conversion, it means that the conversion is from one base
1034 -- type to another, and the value may not fit in the target base type.
1035 -- See also the description of Do_Range_Check for this case. The only
1036 -- attribute references which use this flag are Pred and Succ, where it
1037 -- means that the result should be checked for going outside the base
1038 -- range. Note that this flag is not set for modular types. This flag is
1039 -- also set on if and case expression nodes if we are operating in either
1040 -- MINIMIZED or ELIMINATED overflow checking mode (to make sure that we
1041 -- properly process overflow checking for dependent expressions).
1042
1043 -- Do_Range_Check (Flag9-Sem)
1044 -- This flag is set on an expression which appears in a context where a
1045 -- range check is required. The target type is clear from the context.
1046 -- The contexts in which this flag can appear are the following:
1047
1048 -- Right side of an assignment. In this case the target type is
1049 -- taken from the left side of the assignment, which is referenced
1050 -- by the Name of the N_Assignment_Statement node.
1051
1052 -- Subscript expressions in an indexed component. In this case the
1053 -- target type is determined from the type of the array, which is
1054 -- referenced by the Prefix of the N_Indexed_Component node.
1055
1056 -- Argument expression for a parameter, appearing either directly in
1057 -- the Parameter_Associations list of a call or as the Expression of an
1058 -- N_Parameter_Association node that appears in this list. In either
1059 -- case, the check is against the type of the formal. Note that the
1060 -- flag is relevant only in IN and IN OUT parameters, and will be
1061 -- ignored for OUT parameters, where no check is required in the call,
1062 -- and if a check is required on the return, it is generated explicitly
1063 -- with a type conversion.
1064
1065 -- Initialization expression for the initial value in an object
1066 -- declaration. In this case the Do_Range_Check flag is set on
1067 -- the initialization expression, and the check is against the
1068 -- range of the type of the object being declared. This includes the
1069 -- cases of expressions providing default discriminant values, and
1070 -- expressions used to initialize record components.
1071
1072 -- The expression of a type conversion. In this case the range check is
1073 -- against the target type of the conversion. See also the use of
1074 -- Do_Overflow_Check on a type conversion. The distinction is that the
1075 -- overflow check protects against a value that is outside the range of
1076 -- the target base type, whereas a range check checks that the
1077 -- resulting value (which is a value of the base type of the target
1078 -- type), satisfies the range constraint of the target type.
1079
1080 -- Note: when a range check is required in contexts other than those
1081 -- listed above (e.g. in a return statement), an additional type
1082 -- conversion node is introduced to represent the required check.
1083
1084 -- A special case arises for the arguments of the Pred/Succ attributes.
1085 -- Here the range check needed is against First + 1 .. Last (Pred) or
1086 -- First .. Last - 1 (Succ) of the corresponding base type. Essentially
1087 -- these checks are what would be performed within the implicit body of
1088 -- the functions that correspond to these attributes. In these cases,
1089 -- the Do_Range check flag is set on the argument to the attribute
1090 -- function, and the back end must special case the appropriate range
1091 -- to check against.
1092
1093 -- Do_Storage_Check (Flag17-Sem)
1094 -- This flag is set in an N_Allocator node to indicate that a storage
1095 -- check is required for the allocation, or in an N_Subprogram_Body node
1096 -- to indicate that a stack check is required in the subprogram prolog.
1097 -- The N_Allocator case is handled by the routine that expands the call
1098 -- to the runtime routine. The N_Subprogram_Body case is handled by the
1099 -- backend, and all the semantics does is set the flag.
1100
1101 -- Do_Tag_Check (Flag13-Sem)
1102 -- This flag is set on an N_Assignment_Statement, N_Function_Call,
1103 -- N_Procedure_Call_Statement, N_Type_Conversion,
1104 -- N_Simple_Return_Statement, or N_Extended_Return_Statement
1105 -- node to indicate that the tag check can be suppressed. It is not
1106 -- yet decided how this flag is used (TBD ???).
1107
1108 -- Elaborate_Present (Flag4-Sem)
1109 -- This flag is set in the N_With_Clause node to indicate that pragma
1110 -- Elaborate pragma appears for the with'ed units.
1111
1112 -- Elaborate_All_Desirable (Flag9-Sem)
1113 -- This flag is set in the N_With_Clause mode to indicate that the static
1114 -- elaboration processing has determined that an Elaborate_All pragma is
1115 -- desirable for correct elaboration for this unit.
1116
1117 -- Elaborate_All_Present (Flag14-Sem)
1118 -- This flag is set in the N_With_Clause node to indicate that a
1119 -- pragma Elaborate_All pragma appears for the with'ed units.
1120
1121 -- Elaborate_Desirable (Flag11-Sem)
1122 -- This flag is set in the N_With_Clause mode to indicate that the static
1123 -- elaboration processing has determined that an Elaborate pragma is
1124 -- desirable for correct elaboration for this unit.
1125
1126 -- Elaboration_Boolean (Node2-Sem)
1127 -- This field is present in function and procedure specification nodes.
1128 -- If set, it points to the entity for a Boolean flag that must be tested
1129 -- for certain calls to check for access before elaboration. See body of
1130 -- Sem_Elab for further details. This field is Empty if no elaboration
1131 -- boolean is required.
1132
1133 -- Else_Actions (List3-Sem)
1134 -- This field is present in if expression nodes. During code
1135 -- expansion we use the Insert_Actions procedure (in Exp_Util) to insert
1136 -- actions at an appropriate place in the tree to get elaborated at the
1137 -- right time. For if expressions, we have to be sure that the actions
1138 -- for the Else branch are only elaborated if the condition is False.
1139 -- The Else_Actions field is used as a temporary parking place for
1140 -- these actions. The final tree is always rewritten to eliminate the
1141 -- need for this field, so in the tree passed to Gigi, this field is
1142 -- always set to No_List.
1143
1144 -- Enclosing_Variant (Node2-Sem)
1145 -- This field is present in the N_Variant node and identifies the Node_Id
1146 -- corresponding to the immediately enclosing variant when the variant is
1147 -- nested, and N_Empty otherwise. Set during semantic processing of the
1148 -- variant part of a record type.
1149
1150 -- Entity (Node4-Sem)
1151 -- Appears in all direct names (identifiers, character literals, and
1152 -- operator symbols), as well as expanded names, and attributes that
1153 -- denote entities, such as 'Class. Points to entity for corresponding
1154 -- defining occurrence. Set after name resolution. For identifiers in a
1155 -- WITH list, the corresponding defining occurrence is in a separately
1156 -- compiled file, and Entity must be set by the library Load procedure.
1157 --
1158 -- Note: During name resolution, the value in Entity may be temporarily
1159 -- incorrect (e.g. during overload resolution, Entity is initially set to
1160 -- the first possible correct interpretation, and then later modified if
1161 -- necessary to contain the correct value after resolution).
1162 --
1163 -- Note: This field overlaps Associated_Node, which is used during
1164 -- generic processing (see Sem_Ch12 for details). Note also that in
1165 -- generic templates, this means that the Entity field does not always
1166 -- point to an Entity. Since the back end is expected to ignore generic
1167 -- templates, this is harmless.
1168 --
1169 -- Note: This field also appears in N_Attribute_Definition_Clause nodes.
1170 -- It is used only for stream attributes definition clauses. In this
1171 -- case, it denotes a (possibly dummy) subprogram entity that is declared
1172 -- conceptually at the point of the clause. Thus the visibility of the
1173 -- attribute definition clause (in the sense of 8.3(23) as amended by
1174 -- AI-195) can be checked by testing the visibility of that subprogram.
1175 --
1176 -- Note: Normally the Entity field of an identifier points to the entity
1177 -- for the corresponding defining identifier, and hence the Chars field
1178 -- of an identifier will match the Chars field of the entity. However,
1179 -- there is no requirement that these match, and there are obscure cases
1180 -- of generated code where they do not match.
1181
1182 -- Note: Ada 2012 aspect specifications require additional links between
1183 -- identifiers and various attributes. These attributes can be of
1184 -- arbitrary types, and the entity field of identifiers that denote
1185 -- aspects must be used to store arbitrary expressions for later semantic
1186 -- checks. See section on aspect specifications for details.
1187
1188 -- Entity_Or_Associated_Node (Node4-Sem)
1189 -- A synonym for both Entity and Associated_Node. Used by convention in
1190 -- the code when referencing this field in cases where it is not known
1191 -- whether the field contains an Entity or an Associated_Node.
1192
1193 -- Etype (Node5-Sem)
1194 -- Appears in all expression nodes, all direct names, and all entities.
1195 -- Points to the entity for the related type. Set after type resolution.
1196 -- Normally this is the actual subtype of the expression. However, in
1197 -- certain contexts such as the right side of an assignment, subscripts,
1198 -- arguments to calls, returned value in a function, initial value etc.
1199 -- it is the desired target type. In the event that this is different
1200 -- from the actual type, the Do_Range_Check flag will be set if a range
1201 -- check is required. Note: if the Is_Overloaded flag is set, then Etype
1202 -- points to an essentially arbitrary choice from the possible set of
1203 -- types.
1204
1205 -- Exception_Junk (Flag8-Sem)
1206 -- This flag is set in a various nodes appearing in a statement sequence
1207 -- to indicate that the corresponding node is an artifact of the
1208 -- generated code for exception handling, and should be ignored when
1209 -- analyzing the control flow of the relevant sequence of statements
1210 -- (e.g. to check that it does not end with a bad return statement).
1211
1212 -- Exception_Label (Node5-Sem)
1213 -- Appears in N_Push_xxx_Label nodes. Points to the entity of the label
1214 -- to be used for transforming the corresponding exception into a goto,
1215 -- or contains Empty, if this exception is not to be transformed. Also
1216 -- appears in N_Exception_Handler nodes, where, if set, it indicates
1217 -- that there may be a local raise for the handler, so that expansion
1218 -- to allow a goto is required (and this field contains the label for
1219 -- this goto). See Exp_Ch11.Expand_Local_Exception_Handlers for details.
1220
1221 -- Expansion_Delayed (Flag11-Sem)
1222 -- Set on aggregates and extension aggregates that need a top-down rather
1223 -- than bottom-up expansion. Typically aggregate expansion happens bottom
1224 -- up. For nested aggregates the expansion is delayed until the enclosing
1225 -- aggregate itself is expanded, e.g. in the context of a declaration. To
1226 -- delay it we set this flag. This is done to avoid creating a temporary
1227 -- for each level of a nested aggregates, and also to prevent the
1228 -- premature generation of constraint checks. This is also a requirement
1229 -- if we want to generate the proper attachment to the internal
1230 -- finalization lists (for record with controlled components). Top down
1231 -- expansion of aggregates is also used for in-place array aggregate
1232 -- assignment or initialization. When the full context is known, the
1233 -- target of the assignment or initialization is used to generate the
1234 -- left-hand side of individual assignment to each sub-component.
1235
1236 -- First_Inlined_Subprogram (Node3-Sem)
1237 -- Present in the N_Compilation_Unit node for the main program. Points
1238 -- to a chain of entities for subprograms that are to be inlined. The
1239 -- Next_Inlined_Subprogram field of these entities is used as a link
1240 -- pointer with Empty marking the end of the list. This field is Empty
1241 -- if there are no inlined subprograms or inlining is not active.
1242
1243 -- First_Named_Actual (Node4-Sem)
1244 -- Present in procedure call statement and function call nodes, and also
1245 -- in Intrinsic nodes. Set during semantic analysis to point to the first
1246 -- named parameter where parameters are ordered by declaration order (as
1247 -- opposed to the actual order in the call which may be different due to
1248 -- named associations). Note: this field points to the explicit actual
1249 -- parameter itself, not the N_Parameter_Association node (its parent).
1250
1251 -- First_Real_Statement (Node2-Sem)
1252 -- Present in N_Handled_Sequence_Of_Statements node. Normally set to
1253 -- Empty. Used only when declarations are moved into the statement part
1254 -- of a construct as a result of wrapping an AT END handler that is
1255 -- required to cover the declarations. In this case, this field is used
1256 -- to remember the location in the statements list of the first real
1257 -- statement, i.e. the statement that used to be first in the statement
1258 -- list before the declarations were prepended.
1259
1260 -- First_Subtype_Link (Node5-Sem)
1261 -- Present in N_Freeze_Entity node for an anonymous base type that is
1262 -- implicitly created by the declaration of a first subtype. It points
1263 -- to the entity for the first subtype.
1264
1265 -- Float_Truncate (Flag11-Sem)
1266 -- A flag present in type conversion nodes. This is used for float to
1267 -- integer conversions where truncation is required rather than rounding.
1268
1269 -- Forwards_OK (Flag5-Sem)
1270 -- A flag present in the N_Assignment_Statement node. It is used only
1271 -- if the type being assigned is an array type, and is set if analysis
1272 -- determines that it is definitely safe to do the copy forwards, i.e.
1273 -- starting at the lowest addressed element. This is the case if either
1274 -- the operands do not overlap, or they may overlap, but if they do,
1275 -- then the left operand is at a lower address than the right operand.
1276 --
1277 -- Note: If neither of the flags Forwards_OK or Backwards_OK is set, it
1278 -- means that the front end could not determine that either direction is
1279 -- definitely safe, and a runtime check may be required if the backend
1280 -- cannot figure it out. If both flags Forwards_OK and Backwards_OK are
1281 -- set, it means that the front end can assure no overlap of operands.
1282
1283 -- From_Aspect_Specification (Flag13-Sem)
1284 -- Processing of aspect specifications typically results in insertion in
1285 -- the tree of corresponding pragma or attribute definition clause nodes.
1286 -- These generated nodes have the From_Aspect_Specification flag set to
1287 -- indicate that they came from aspect specifications originally.
1288
1289 -- From_At_End (Flag4-Sem)
1290 -- This flag is set on an N_Raise_Statement node if it corresponds to
1291 -- the reraise statement generated as the last statement of an AT END
1292 -- handler when SJLJ exception handling is active. It is used to stop
1293 -- a bogus violation of restriction (No_Exception_Propagation), bogus
1294 -- because if the restriction is set, the reraise is not generated.
1295
1296 -- From_At_Mod (Flag4-Sem)
1297 -- This flag is set on the attribute definition clause node that is
1298 -- generated by a transformation of an at mod phrase in a record
1299 -- representation clause. This is used to give slightly different (Ada 83
1300 -- compatible) semantics to such a clause, namely it is used to specify a
1301 -- minimum acceptable alignment for the base type and all subtypes. In
1302 -- Ada 95 terms, the actual alignment of the base type and all subtypes
1303 -- must be a multiple of the given value, and the representation clause
1304 -- is considered to be type specific instead of subtype specific.
1305
1306 -- From_Conditional_Expression (Flag1-Sem)
1307 -- This flag is set on if and case statements generated by the expansion
1308 -- of if and case expressions respectively. The flag is used to suppress
1309 -- any finalization of controlled objects found within these statements.
1310
1311 -- From_Default (Flag6-Sem)
1312 -- This flag is set on the subprogram renaming declaration created in an
1313 -- instance for a formal subprogram, when the formal is declared with a
1314 -- box, and there is no explicit actual. If the flag is present, the
1315 -- declaration is treated as an implicit reference to the formal in the
1316 -- ali file.
1317
1318 -- Generalized_Indexing (Node4-Sem)
1319 -- Present in N_Indexed_Component nodes. Set for Indexed_Component nodes
1320 -- that are Ada 2012 container indexing operations. The value of the
1321 -- attribute is a function call (possibly dereferenced) that corresponds
1322 -- to the proper expansion of the source indexing operation. Before
1323 -- expansion, the source node is rewritten as the resolved generalized
1324 -- indexing. In ASIS mode, the expansion does not take place, so that
1325 -- the source is preserved and properly annotated with types.
1326
1327 -- Generic_Parent (Node5-Sem)
1328 -- Generic_Parent is defined on declaration nodes that are instances. The
1329 -- value of Generic_Parent is the generic entity from which the instance
1330 -- is obtained. Generic_Parent is also defined for the renaming
1331 -- declarations and object declarations created for the actuals in an
1332 -- instantiation. The generic parent of such a declaration is the
1333 -- corresponding generic association in the Instantiation node.
1334
1335 -- Generic_Parent_Type (Node4-Sem)
1336 -- Generic_Parent_Type is defined on Subtype_Declaration nodes for the
1337 -- actuals of formal private and derived types. Within the instance, the
1338 -- operations on the actual are those inherited from the parent. For a
1339 -- formal private type, the parent type is the generic type itself. The
1340 -- Generic_Parent_Type is also used in an instance to determine whether a
1341 -- private operation overrides an inherited one.
1342
1343 -- Handler_List_Entry (Node2-Sem)
1344 -- This field is present in N_Object_Declaration nodes. It is set only
1345 -- for the Handler_Record entry generated for an exception in zero cost
1346 -- exception handling mode. It references the corresponding item in the
1347 -- handler list, and is used to delete this entry if the corresponding
1348 -- handler is deleted during optimization. For further details on why
1349 -- this is required, see Exp_Ch11.Remove_Handler_Entries.
1350
1351 -- Has_Dereference_Action (Flag13-Sem)
1352 -- This flag is present in N_Explicit_Dereference nodes. It is set to
1353 -- indicate that the expansion has aready produced a call to primitive
1354 -- Dereference of a System.Checked_Pools.Checked_Pool implementation.
1355 -- Such dereference actions are produced for debugging purposes.
1356
1357 -- Has_Dynamic_Length_Check (Flag10-Sem)
1358 -- This flag is present in all expression nodes. It is set to indicate
1359 -- that one of the routines in unit Checks has generated a length check
1360 -- action which has been inserted at the flagged node. This is used to
1361 -- avoid the generation of duplicate checks.
1362
1363 -- Has_Dynamic_Range_Check (Flag12-Sem)
1364 -- This flag is present in N_Subtype_Declaration nodes and on all
1365 -- expression nodes. It is set to indicate that one of the routines in
1366 -- unit Checks has generated a range check action which has been inserted
1367 -- at the flagged node. This is used to avoid the generation of duplicate
1368 -- checks. Why does this occur on N_Subtype_Declaration nodes, what does
1369 -- it mean in that context???
1370
1371 -- Has_Local_Raise (Flag8-Sem)
1372 -- Present in exception handler nodes. Set if the handler can be entered
1373 -- via a local raise that gets transformed to a goto statement. This will
1374 -- always be set if Local_Raise_Statements is non-empty, but can also be
1375 -- set as a result of generation of N_Raise_xxx nodes, or flags set in
1376 -- nodes requiring generation of back end checks.
1377
1378 -- Has_No_Elaboration_Code (Flag17-Sem)
1379 -- A flag that appears in the N_Compilation_Unit node to indicate whether
1380 -- or not elaboration code is present for this unit. It is initially set
1381 -- true for subprogram specs and bodies and for all generic units and
1382 -- false for non-generic package specs and bodies. Gigi may set the flag
1383 -- in the non-generic package case if it determines that no elaboration
1384 -- code is generated. Note that this flag is not related to the
1385 -- Is_Preelaborated status, there can be preelaborated packages that
1386 -- generate elaboration code, and non-preelaborated packages which do
1387 -- not generate elaboration code.
1388
1389 -- Has_Pragma_Suppress_All (Flag14-Sem)
1390 -- This flag is set in an N_Compilation_Unit node if the Suppress_All
1391 -- pragma appears anywhere in the unit. This accommodates the rather
1392 -- strange placement rules of other compilers (DEC permits it at the
1393 -- end of a unit, and Rational allows it as a program unit pragma). We
1394 -- allow it anywhere at all, and consider it equivalent to a pragma
1395 -- Suppress (All_Checks) appearing at the start of the configuration
1396 -- pragmas for the unit.
1397
1398 -- Has_Private_View (Flag11-Sem)
1399 -- A flag present in generic nodes that have an entity, to indicate that
1400 -- the node has a private type. Used to exchange private and full
1401 -- declarations if the visibility at instantiation is different from the
1402 -- visibility at generic definition.
1403
1404 -- Has_Relative_Deadline_Pragma (Flag9-Sem)
1405 -- A flag present in N_Subprogram_Body and N_Task_Definition nodes to
1406 -- flag the presence of a pragma Relative_Deadline.
1407
1408 -- Has_Self_Reference (Flag13-Sem)
1409 -- Present in N_Aggregate and N_Extension_Aggregate. Indicates that one
1410 -- of the expressions contains an access attribute reference to the
1411 -- enclosing type. Such a self-reference can only appear in default-
1412 -- initialized aggregate for a record type.
1413
1414 -- Has_SP_Choice (Flag15-Sem)
1415 -- Present in all nodes containing a Discrete_Choices field (N_Variant,
1416 -- N_Case_Expression_Alternative, N_Case_Statement_Alternative). Set to
1417 -- True if the Discrete_Choices list has at least one occurrence of a
1418 -- statically predicated subtype.
1419
1420 -- Has_Storage_Size_Pragma (Flag5-Sem)
1421 -- A flag present in an N_Task_Definition node to flag the presence of a
1422 -- Storage_Size pragma.
1423
1424 -- Has_Wide_Character (Flag11-Sem)
1425 -- Present in string literals, set if any wide character (i.e. character
1426 -- code outside the Character range but within Wide_Character range)
1427 -- appears in the string. Used to implement pragma preference rules.
1428
1429 -- Has_Wide_Wide_Character (Flag13-Sem)
1430 -- Present in string literals, set if any wide character (i.e. character
1431 -- code outside the Wide_Character range) appears in the string. Used to
1432 -- implement pragma preference rules.
1433
1434 -- Header_Size_Added (Flag11-Sem)
1435 -- Present in N_Attribute_Reference nodes, set only for attribute
1436 -- Max_Size_In_Storage_Elements. The flag indicates that the size of the
1437 -- hidden list header used by the runtime finalization support has been
1438 -- added to the size of the prefix. The flag also prevents the infinite
1439 -- expansion of the same attribute in the said context.
1440
1441 -- Hidden_By_Use_Clause (Elist4-Sem)
1442 -- An entity list present in use clauses that appear within
1443 -- instantiations. For the resolution of local entities, entities
1444 -- introduced by these use clauses have priority over global ones, and
1445 -- outer entities must be explicitly hidden/restored on exit.
1446
1447 -- Implicit_With (Flag16-Sem)
1448 -- This flag is set in the N_With_Clause node that is implicitly
1449 -- generated for runtime units that are loaded by the expander, and also
1450 -- for package System, if it is loaded implicitly by a use of the
1451 -- 'Address or 'Tag attribute. ???There are other implicit with clauses
1452 -- as well.
1453
1454 -- Implicit_With_From_Instantiation (Flag12-Sem)
1455 -- Set in N_With_Clause nodes from generic instantiations.
1456
1457 -- Import_Interface_Present (Flag16-Sem)
1458 -- This flag is set in an Interface or Import pragma if a matching
1459 -- pragma of the other kind is also present. This is used to avoid
1460 -- generating some unwanted error messages.
1461
1462 -- Includes_Infinities (Flag11-Sem)
1463 -- This flag is present in N_Range nodes. It is set for the range of
1464 -- unconstrained float types defined in Standard, which include not only
1465 -- the given range of values, but also legitimately can include infinite
1466 -- values. This flag is false for any float type for which an explicit
1467 -- range is given by the programmer, even if that range is identical to
1468 -- the range for Float.
1469
1470 -- Incomplete_View (Node2-Sem)
1471 -- Present in full type declarations that are completions of incomplete
1472 -- type declarations. Denotes the corresponding incomplete type
1473 -- declaration. Used to simplify the retrieval of primitive operations
1474 -- that may be declared between the partial and the full view of an
1475 -- untagged type.
1476
1477 -- Inherited_Discriminant (Flag13-Sem)
1478 -- This flag is present in N_Component_Association nodes. It indicates
1479 -- that a given component association in an extension aggregate is the
1480 -- value obtained from a constraint on an ancestor. Used to prevent
1481 -- double expansion when the aggregate has expansion delayed.
1482
1483 -- Instance_Spec (Node5-Sem)
1484 -- This field is present in generic instantiation nodes, and also in
1485 -- formal package declaration nodes (formal package declarations are
1486 -- treated in a manner very similar to package instantiations). It points
1487 -- to the node for the spec of the instance, inserted as part of the
1488 -- semantic processing for instantiations in Sem_Ch12.
1489
1490 -- Is_Accessibility_Actual (Flag13-Sem)
1491 -- Present in N_Parameter_Association nodes. True if the parameter is
1492 -- an extra actual that carries the accessibility level of the actual
1493 -- for an access parameter, in a function that dispatches on result and
1494 -- is called in a dispatching context. Used to prevent a formal/actual
1495 -- mismatch when the call is rewritten as a dispatching call.
1496
1497 -- Is_Asynchronous_Call_Block (Flag7-Sem)
1498 -- A flag set in a Block_Statement node to indicate that it is the
1499 -- expansion of an asynchronous entry call. Such a block needs cleanup
1500 -- handler to assure that the call is cancelled.
1501
1502 -- Is_Boolean_Aspect (Flag16-Sem)
1503 -- Present in N_Aspect_Specification node. Set if the aspect is for a
1504 -- boolean aspect (i.e. Aspect_Id is in Boolean_Aspect subtype).
1505
1506 -- Is_Checked (Flag11-Sem)
1507 -- Present in N_Aspect_Specification and N_Pragma nodes. Set for an
1508 -- assertion aspect or pragma, or check pragma for an assertion, that
1509 -- is to be checked at run time. If either Is_Checked or Is_Ignored
1510 -- is set (they cannot both be set), then this means that the status of
1511 -- the pragma has been checked at the appropriate point and should not
1512 -- be further modified (in some cases these flags are copied when a
1513 -- pragma is rewritten).
1514
1515 -- Is_Component_Left_Opnd (Flag13-Sem)
1516 -- Is_Component_Right_Opnd (Flag14-Sem)
1517 -- Present in concatenation nodes, to indicate that the corresponding
1518 -- operand is of the component type of the result. Used in resolving
1519 -- concatenation nodes in instances.
1520
1521 -- Is_Delayed_Aspect (Flag14-Sem)
1522 -- Present in N_Pragma and N_Attribute_Definition_Clause nodes which
1523 -- come from aspect specifications, where the evaluation of the aspect
1524 -- must be delayed to the freeze point. This flag is also set True in
1525 -- the corresponding N_Aspect_Specification node.
1526
1527 -- Is_Controlling_Actual (Flag16-Sem)
1528 -- This flag is set on in an expression that is a controlling argument in
1529 -- a dispatching call. It is off in all other cases. See Sem_Disp for
1530 -- details of its use.
1531
1532 -- Is_Disabled (Flag15-Sem)
1533 -- A flag set in an N_Aspect_Specification or N_Pragma node if there was
1534 -- a Check_Policy or Assertion_Policy (or in the case of a Debug_Pragma)
1535 -- a Debug_Policy pragma that resulted in totally disabling the flagged
1536 -- aspect or policy as a result of using the GNAT-defined policy DISABLE.
1537 -- If this flag is set, the aspect or policy is not analyzed for semantic
1538 -- correctness, so any expressions etc will not be marked as analyzed.
1539
1540 -- Is_Dynamic_Coextension (Flag18-Sem)
1541 -- Present in allocator nodes, to indicate that this is an allocator
1542 -- for an access discriminant of a dynamically allocated object. The
1543 -- coextension must be deallocated and finalized at the same time as
1544 -- the enclosing object.
1545
1546 -- Is_Entry_Barrier_Function (Flag8-Sem)
1547 -- This flag is set in an N_Subprogram_Body node which is the expansion
1548 -- of an entry barrier from a protected entry body. It is used for the
1549 -- circuitry checking for incorrect use of Current_Task.
1550
1551 -- Is_Expanded_Build_In_Place_Call (Flag11-Sem)
1552 -- This flag is set in an N_Function_Call node to indicate that the extra
1553 -- actuals to support a build-in-place style of call have been added to
1554 -- the call.
1555
1556 -- Is_Finalization_Wrapper (Flag9-Sem);
1557 -- This flag is present in N_Block_Statement nodes. It is set when the
1558 -- block acts as a wrapper of a handled construct which has controlled
1559 -- objects. The wrapper prevents interference between exception handlers
1560 -- and At_End handlers.
1561
1562 -- Is_Ignored (Flag9-Sem)
1563 -- A flag set in an N_Aspect_Specification or N_Pragma node if there was
1564 -- a Check_Policy or Assertion_Policy (or in the case of a Debug_Pragma)
1565 -- a Debug_Policy pragma that specified a policy of IGNORE, DISABLE, or
1566 -- OFF, for the pragma/aspect. If there was a Policy pragma specifying
1567 -- a Policy of ON or CHECK, then this flag is reset. If no Policy pragma
1568 -- gives a policy for the aspect or pragma, then there are two cases. For
1569 -- an assertion aspect or pragma (one of the assertion kinds allowed in
1570 -- an Assertion_Policy pragma), then Is_Ignored is set if assertions are
1571 -- ignored because of the absence of a -gnata switch. For any other
1572 -- aspects or pragmas, the flag is off. If this flag is set, the
1573 -- aspect/pragma is fully analyzed and checked for other syntactic
1574 -- and semantic errors, but it does not have any semantic effect.
1575
1576 -- Is_In_Discriminant_Check (Flag11-Sem)
1577 -- This flag is present in a selected component, and is used to indicate
1578 -- that the reference occurs within a discriminant check. The
1579 -- significance is that optimizations based on assuming that the
1580 -- discriminant check has a correct value cannot be performed in this
1581 -- case (or the discriminant check may be optimized away).
1582
1583 -- Is_Machine_Number (Flag11-Sem)
1584 -- This flag is set in an N_Real_Literal node to indicate that the value
1585 -- is a machine number. This avoids some unnecessary cases of converting
1586 -- real literals to machine numbers.
1587
1588 -- Is_Null_Loop (Flag16-Sem)
1589 -- This flag is set in an N_Loop_Statement node if the corresponding loop
1590 -- can be determined to be null at compile time. This is used to remove
1591 -- the loop entirely at expansion time.
1592
1593 -- Is_Overloaded (Flag5-Sem)
1594 -- A flag present in all expression nodes. Used temporarily during
1595 -- overloading determination. The setting of this flag is not relevant
1596 -- once overloading analysis is complete.
1597
1598 -- Is_Power_Of_2_For_Shift (Flag13-Sem)
1599 -- A flag present only in N_Op_Expon nodes. It is set when the
1600 -- exponentiation is of the form 2 ** N, where the type of N is an
1601 -- unsigned integral subtype whose size does not exceed the size of
1602 -- Standard_Integer (i.e. a type that can be safely converted to
1603 -- Natural), and the exponentiation appears as the right operand of an
1604 -- integer multiplication or an integer division where the dividend is
1605 -- unsigned. It is also required that overflow checking is off for both
1606 -- the exponentiation and the multiply/divide node. If this set of
1607 -- conditions holds, and the flag is set, then the division or
1608 -- multiplication can be (and is) converted to a shift.
1609
1610 -- Is_Prefixed_Call (Flag17-Sem)
1611 -- This flag is set in a selected component within a generic unit, if
1612 -- it resolves to a prefixed call to a primitive operation. The flag
1613 -- is used to prevent accidental overloadings in an instance, when a
1614 -- primitive operation and a private record component may be homographs.
1615
1616 -- Is_Protected_Subprogram_Body (Flag7-Sem)
1617 -- A flag set in a Subprogram_Body block to indicate that it is the
1618 -- implementation of a protected subprogram. Such a body needs cleanup
1619 -- handler to make sure that the associated protected object is unlocked
1620 -- when the subprogram completes.
1621
1622 -- Is_Static_Coextension (Flag14-Sem)
1623 -- Present in N_Allocator nodes. Set if the allocator is a coextension
1624 -- of an object allocated on the stack rather than the heap.
1625
1626 -- Is_Static_Expression (Flag6-Sem)
1627 -- Indicates that an expression is a static expression according to the
1628 -- rules in (RM 4.9). Note that it is possible for this flag to be set
1629 -- when Raises_Constraint_Error is also set. In practice almost all cases
1630 -- where a static expression is required do not allow an expression which
1631 -- raises Constraint_Error, so almost always, callers should call the
1632 -- Is_Ok_Static_Expression routine instead of testing this flag. See
1633 -- spec of package Sem_Eval for full details on the use of this flag.
1634
1635 -- Is_Subprogram_Descriptor (Flag16-Sem)
1636 -- Present in N_Object_Declaration, and set only for the object
1637 -- declaration generated for a subprogram descriptor in fast exception
1638 -- mode. See Exp_Ch11 for details of use.
1639
1640 -- Is_Task_Allocation_Block (Flag6-Sem)
1641 -- A flag set in a Block_Statement node to indicate that it is the
1642 -- expansion of a task allocator, or the allocator of an object
1643 -- containing tasks. Such a block requires a cleanup handler to call
1644 -- Expunge_Unactivated_Tasks to complete any tasks that have been
1645 -- allocated but not activated when the allocator completes abnormally.
1646
1647 -- Is_Task_Master (Flag5-Sem)
1648 -- A flag set in a Subprogram_Body, Block_Statement or Task_Body node to
1649 -- indicate that the construct is a task master (i.e. has declared tasks
1650 -- or declares an access to a task type).
1651
1652 -- Itype (Node1-Sem)
1653 -- Used in N_Itype_Reference node to reference an itype for which it is
1654 -- important to ensure that it is defined. See description of this node
1655 -- for further details.
1656
1657 -- Kill_Range_Check (Flag11-Sem)
1658 -- Used in an N_Unchecked_Type_Conversion node to indicate that the
1659 -- result should not be subjected to range checks. This is used for the
1660 -- implementation of Normalize_Scalars.
1661
1662 -- Label_Construct (Node2-Sem)
1663 -- Used in an N_Implicit_Label_Declaration node. Refers to an N_Label,
1664 -- N_Block_Statement or N_Loop_Statement node to which the label
1665 -- declaration applies. This attribute is used both in the compiler and
1666 -- in the implementation of ASIS queries. The field is left empty for the
1667 -- special labels generated as part of expanding raise statements with a
1668 -- local exception handler.
1669
1670 -- Library_Unit (Node4-Sem)
1671 -- In a stub node, Library_Unit points to the compilation unit node of
1672 -- the corresponding subunit.
1673 --
1674 -- In a with clause node, Library_Unit points to the spec of the with'ed
1675 -- unit.
1676 --
1677 -- In a compilation unit node, the usage depends on the unit type:
1678 --
1679 -- For a library unit body, Library_Unit points to the compilation unit
1680 -- node of the corresponding spec, unless it's a subprogram body with
1681 -- Acts_As_Spec set, in which case it points to itself.
1682 --
1683 -- For a spec, Library_Unit points to the compilation unit node of the
1684 -- corresponding body, if present. The body will be present if the spec
1685 -- is or contains generics that we needed to instantiate. Similarly, the
1686 -- body will be present if we needed it for inlining purposes. Thus, if
1687 -- we have a spec/body pair, both of which are present, they point to
1688 -- each other via Library_Unit.
1689 --
1690 -- For a subunit, Library_Unit points to the compilation unit node of
1691 -- the parent body.
1692 -- ??? not (always) true, in (at least some, maybe all?) cases it points
1693 -- to the corresponding spec for the parent body.
1694 --
1695 -- Note that this field is not used to hold the parent pointer for child
1696 -- unit (which might in any case need to use it for some other purpose as
1697 -- described above). Instead for a child unit, implicit with's are
1698 -- generated for all parents.
1699
1700 -- Local_Raise_Statements (Elist1)
1701 -- This field is present in exception handler nodes. It is set to
1702 -- No_Elist in the normal case. If there is at least one raise statement
1703 -- which can potentially be handled as a local raise, then this field
1704 -- points to a list of raise nodes, which are calls to a routine to raise
1705 -- an exception. These are raise nodes which can be optimized into gotos
1706 -- if the handler turns out to meet the conditions which permit this
1707 -- transformation. Note that this does NOT include instances of the
1708 -- N_Raise_xxx_Error nodes since the transformation of these nodes is
1709 -- handled by the back end (using the N_Push/N_Pop mechanism).
1710
1711 -- Loop_Actions (List2-Sem)
1712 -- A list present in Component_Association nodes in array aggregates.
1713 -- Used to collect actions that must be executed within the loop because
1714 -- they may need to be evaluated anew each time through.
1715
1716 -- Limited_View_Installed (Flag18-Sem)
1717 -- Present in With_Clauses and in package specifications. If set on
1718 -- with_clause, it indicates that this clause has created the current
1719 -- limited view of the designated package. On a package specification, it
1720 -- indicates that the limited view has already been created because the
1721 -- package is mentioned in a limited_with_clause in the closure of the
1722 -- unit being compiled.
1723
1724 -- Local_Raise_Not_OK (Flag7-Sem)
1725 -- Present in N_Exception_Handler nodes. Set if the handler contains
1726 -- a construct (reraise statement, or call to subprogram in package
1727 -- GNAT.Current_Exception) that makes the handler unsuitable as a target
1728 -- for a local raise (one that could otherwise be converted to a goto).
1729
1730 -- Must_Be_Byte_Aligned (Flag14-Sem)
1731 -- This flag is present in N_Attribute_Reference nodes. It can be set
1732 -- only for the Address and Unrestricted_Access attributes. If set it
1733 -- means that the object for which the address/access is given must be on
1734 -- a byte (more accurately a storage unit) boundary. If necessary, a copy
1735 -- of the object is to be made before taking the address (this copy is in
1736 -- the current scope on the stack frame). This is used for certain cases
1737 -- of code generated by the expander that passes parameters by address.
1738 --
1739 -- The reason the copy is not made by the front end is that the back end
1740 -- has more information about type layout and may be able to (but is not
1741 -- guaranteed to) prevent making unnecessary copies.
1742
1743 -- Must_Not_Freeze (Flag8-Sem)
1744 -- A flag present in all expression nodes. Normally expressions cause
1745 -- freezing as described in the RM. If this flag is set, then this is
1746 -- inhibited. This is used by the analyzer and expander to label nodes
1747 -- that are created by semantic analysis or expansion and which must not
1748 -- cause freezing even though they normally would. This flag is also
1749 -- present in an N_Subtype_Indication node, since we also use these in
1750 -- calls to Freeze_Expression.
1751
1752 -- Next_Entity (Node2-Sem)
1753 -- Present in defining identifiers, defining character literals and
1754 -- defining operator symbols (i.e. in all entities). The entities of a
1755 -- scope are chained, and this field is used as the forward pointer for
1756 -- this list. See Einfo for further details.
1757
1758 -- Next_Exit_Statement (Node3-Sem)
1759 -- Present in N_Exit_Statement nodes. The exit statements for a loop are
1760 -- chained (in reverse order of appearance) from the First_Exit_Statement
1761 -- field of the E_Loop entity for the loop. Next_Exit_Statement points to
1762 -- the next entry on this chain (Empty = end of list).
1763
1764 -- Next_Implicit_With (Node3-Sem)
1765 -- Present in N_With_Clause. Part of a chain of with_clauses generated
1766 -- in rtsfind to indicate implicit dependencies on predefined units. Used
1767 -- to prevent multiple with_clauses for the same unit in a given context.
1768 -- A postorder traversal of the tree whose nodes are units and whose
1769 -- links are with_clauses defines the order in which CodePeer must
1770 -- examine a compiled unit and its full context. This ordering ensures
1771 -- that any subprogram call is examined after the subprogram declaration
1772 -- has been seen.
1773
1774 -- Next_Named_Actual (Node4-Sem)
1775 -- Present in parameter association nodes. Set during semantic analysis
1776 -- to point to the next named parameter, where parameters are ordered by
1777 -- declaration order (as opposed to the actual order in the call, which
1778 -- may be different due to named associations). Not that this field
1779 -- points to the explicit actual parameter itself, not to the
1780 -- N_Parameter_Association node (its parent).
1781
1782 -- Next_Pragma (Node1-Sem)
1783 -- Present in N_Pragma nodes. Used to create a linked list of pragma
1784 -- nodes. Currently used for two purposes:
1785 --
1786 -- Create a list of linked Check_Policy pragmas. The head of this list
1787 -- is stored in Opt.Check_Policy_List (which has further details).
1788 --
1789 -- Used by processing for Pre/Postcondition pragmas to store a list of
1790 -- pragmas associated with the spec of a subprogram (see Sem_Prag for
1791 -- details).
1792 --
1793 -- Used by processing for pragma SPARK_Mode to store multiple pragmas
1794 -- the apply to the same construct. These are visible/private mode for
1795 -- a package spec and declarative/statement mode for package body.
1796
1797 -- Next_Rep_Item (Node5-Sem)
1798 -- Present in pragma nodes, attribute definition nodes, enumeration rep
1799 -- clauses, record rep clauses, aspect specification nodes. Used to link
1800 -- representation items that apply to an entity. See full description of
1801 -- First_Rep_Item field in Einfo for further details.
1802
1803 -- Next_Use_Clause (Node3-Sem)
1804 -- While use clauses are active during semantic processing, they are
1805 -- chained from the scope stack entry, using Next_Use_Clause as a link
1806 -- pointer, with Empty marking the end of the list. The head pointer is
1807 -- in the scope stack entry (First_Use_Clause). At the end of semantic
1808 -- processing (i.e. when Gigi sees the tree, the contents of this field
1809 -- is undefined and should not be read).
1810
1811 -- No_Ctrl_Actions (Flag7-Sem)
1812 -- Present in N_Assignment_Statement to indicate that no Finalize nor
1813 -- Adjust should take place on this assignment even though the RHS is
1814 -- controlled. Also indicates that the primitive _assign should not be
1815 -- used for a tagged assignment. This is used in init procs and aggregate
1816 -- expansions where the generated assignments are initializations, not
1817 -- real assignments.
1818
1819 -- No_Elaboration_Check (Flag14-Sem)
1820 -- Present in N_Function_Call and N_Procedure_Call_Statement. Indicates
1821 -- that no elaboration check is needed on the call, because it appears in
1822 -- the context of a local Suppress pragma. This is used on calls within
1823 -- task bodies, where the actual elaboration checks are applied after
1824 -- analysis, when the local scope stack is not present.
1825
1826 -- No_Entities_Ref_In_Spec (Flag8-Sem)
1827 -- Present in N_With_Clause nodes. Set if the with clause is on the
1828 -- package or subprogram spec where the main unit is the corresponding
1829 -- body, and no entities of the with'ed unit are referenced by the spec
1830 -- (an entity may still be referenced in the body, so this flag is used
1831 -- to generate the proper message (see Sem_Util.Check_Unused_Withs for
1832 -- full details)
1833
1834 -- No_Initialization (Flag13-Sem)
1835 -- Present in N_Object_Declaration and N_Allocator to indicate that the
1836 -- object must not be initialized (by Initialize or call to an init
1837 -- proc). This is needed for controlled aggregates. When the Object
1838 -- declaration has an expression, this flag means that this expression
1839 -- should not be taken into account (needed for in place initialization
1840 -- with aggregates, and for object with an address clause, which are
1841 -- initialized with an assignment at freeze time).
1842
1843 -- No_Minimize_Eliminate (Flag17-Sem)
1844 -- This flag is present in membership operator nodes (N_In/N_Not_In).
1845 -- It is used to indicate that processing for extended overflow checking
1846 -- modes is not required (this is used to prevent infinite recursion).
1847
1848 -- No_Truncation (Flag17-Sem)
1849 -- Present in N_Unchecked_Type_Conversion node. This flag has an effect
1850 -- only if the RM_Size of the source is greater than the RM_Size of the
1851 -- target for scalar operands. Normally in such a case we truncate some
1852 -- higher order bits of the source, and then sign/zero extend the result
1853 -- to form the output value. But if this flag is set, then we do not do
1854 -- any truncation, so for example, if an 8 bit input is converted to 5
1855 -- bit result which is in fact stored in 8 bits, then the high order
1856 -- three bits of the target result will be copied from the source. This
1857 -- is used for properly setting out of range values for use by pragmas
1858 -- Initialize_Scalars and Normalize_Scalars.
1859
1860 -- Non_Aliased_Prefix (Flag18-Sem)
1861 -- Present in N_Attribute_Reference nodes. Set only for the case of an
1862 -- Unrestricted_Access reference whose prefix is non-aliased, which is
1863 -- the case that is permitted for Unrestricted_Access except when the
1864 -- expected type is a thin pointer to unconstrained array. This flag is
1865 -- to assist in detecting this illegal use of Unrestricted_Access.
1866
1867 -- Null_Excluding_Subtype (Flag16)
1868 -- Present in N_Access_To_Object_Definition. Indicates that the subtype
1869 -- indication carries a null-exclusion indicator, which is distinct from
1870 -- the null-exclusion indicator that may precede the access keyword.
1871
1872 -- Original_Discriminant (Node2-Sem)
1873 -- Present in identifiers. Used in references to discriminants that
1874 -- appear in generic units. Because the names of the discriminants may be
1875 -- different in an instance, we use this field to recover the position of
1876 -- the discriminant in the original type, and replace it with the
1877 -- discriminant at the same position in the instantiated type.
1878
1879 -- Original_Entity (Node2-Sem)
1880 -- Present in numeric literals. Used to denote the named number that has
1881 -- been constant-folded into the given literal. If literal is from
1882 -- source, or the result of some other constant-folding operation, then
1883 -- Original_Entity is empty. This field is needed to handle properly
1884 -- named numbers in generic units, where the Associated_Node field
1885 -- interferes with the Entity field, making it impossible to preserve the
1886 -- original entity at the point of instantiation (ASIS problem).
1887
1888 -- Others_Discrete_Choices (List1-Sem)
1889 -- When a case statement or variant is analyzed, the semantic checks
1890 -- determine the actual list of choices that correspond to an others
1891 -- choice. This list is materialized for later use by the expander and
1892 -- the Others_Discrete_Choices field of an N_Others_Choice node points to
1893 -- this materialized list of choices, which is in standard format for a
1894 -- list of discrete choices, except that of course it cannot contain an
1895 -- N_Others_Choice entry.
1896
1897 -- Parent_Spec (Node4-Sem)
1898 -- For a library unit that is a child unit spec (package or subprogram
1899 -- declaration, generic declaration or instantiation, or library level
1900 -- rename, this field points to the compilation unit node for the parent
1901 -- package specification. This field is Empty for library bodies (the
1902 -- parent spec in this case can be found from the corresponding spec).
1903
1904 -- Premature_Use (Node5-Sem)
1905 -- Present in N_Incomplete_Type_Declaration node. Used for improved
1906 -- error diagnostics: if there is a premature usage of an incomplete
1907 -- type, a subsequently generated error message indicates the position
1908 -- of its full declaration.
1909
1910 -- Present_Expr (Uint3-Sem)
1911 -- Present in an N_Variant node. This has a meaningful value only after
1912 -- Gigi has back annotated the tree with representation information. At
1913 -- this point, it contains a reference to a gcc expression that depends
1914 -- on the values of one or more discriminants. Give a set of discriminant
1915 -- values, this expression evaluates to False (zero) if variant is not
1916 -- present, and True (non-zero) if it is present. See unit Repinfo for
1917 -- further details on gigi back annotation. This field is used during
1918 -- ASIS processing (data decomposition annex) to determine if a field is
1919 -- present or not.
1920
1921 -- Print_In_Hex (Flag13-Sem)
1922 -- Set on an N_Integer_Literal node to indicate that the value should be
1923 -- printed in hexadecimal in the sprint listing. Has no effect on
1924 -- legality or semantics of program, only on the displayed output. This
1925 -- is used to clarify output from the packed array cases.
1926
1927 -- Procedure_To_Call (Node2-Sem)
1928 -- Present in N_Allocator, N_Free_Statement, N_Simple_Return_Statement,
1929 -- and N_Extended_Return_Statement nodes. References the entity for the
1930 -- declaration of the procedure to be called to accomplish the required
1931 -- operation (i.e. for the Allocate procedure in the case of N_Allocator
1932 -- and N_Simple_Return_Statement and N_Extended_Return_Statement (for
1933 -- allocating the return value), and for the Deallocate procedure in the
1934 -- case of N_Free_Statement.
1935
1936 -- Raises_Constraint_Error (Flag7-Sem)
1937 -- Set on an expression whose evaluation will definitely fail constraint
1938 -- error check. In the case of static expressions, this flag must be set
1939 -- accurately (and if it is set, the expression is typically illegal
1940 -- unless it appears as a non-elaborated branch of a short-circuit form).
1941 -- For a non-static expression, this flag may be set whenever an
1942 -- expression (e.g. an aggregate) is known to raise constraint error. If
1943 -- set, the expression definitely will raise CE if elaborated at runtime.
1944 -- If not set, the expression may or may not raise CE. In other words, on
1945 -- static expressions, the flag is set accurately, on non-static
1946 -- expressions it is set conservatively.
1947
1948 -- Redundant_Use (Flag13-Sem)
1949 -- Present in nodes that can appear as an operand in a use clause or use
1950 -- type clause (identifiers, expanded names, attribute references). Set
1951 -- to indicate that a use is redundant (and therefore need not be undone
1952 -- on scope exit).
1953
1954 -- Renaming_Exception (Node2-Sem)
1955 -- Present in N_Exception_Declaration node. Used to point back to the
1956 -- exception renaming for an exception declared within a subprogram.
1957 -- What happens is that an exception declared in a subprogram is moved
1958 -- to the library level with a unique name, and the original exception
1959 -- becomes a renaming. This link from the library level exception to the
1960 -- renaming declaration allows registering of the proper exception name.
1961
1962 -- Return_Statement_Entity (Node5-Sem)
1963 -- Present in N_Simple_Return_Statement and N_Extended_Return_Statement.
1964 -- Points to an E_Return_Statement representing the return statement.
1965
1966 -- Return_Object_Declarations (List3)
1967 -- Present in N_Extended_Return_Statement. Points to a list initially
1968 -- containing a single N_Object_Declaration representing the return
1969 -- object. We use a list (instead of just a pointer to the object decl)
1970 -- because Analyze wants to insert extra actions on this list.
1971
1972 -- Rounded_Result (Flag18-Sem)
1973 -- Present in N_Type_Conversion, N_Op_Divide and N_Op_Multiply nodes.
1974 -- Used in the fixed-point cases to indicate that the result must be
1975 -- rounded as a result of the use of the 'Round attribute. Also used for
1976 -- integer N_Op_Divide nodes to indicate that the result should be
1977 -- rounded to the nearest integer (breaking ties away from zero), rather
1978 -- than truncated towards zero as usual. These rounded integer operations
1979 -- are the result of expansion of rounded fixed-point divide, conversion
1980 -- and multiplication operations.
1981
1982 -- SCIL_Entity (Node4-Sem)
1983 -- Present in SCIL nodes. References the specific tagged type associated
1984 -- with the SCIL node (for an N_SCIL_Dispatching_Call node, this is
1985 -- the controlling type of the call; for an N_SCIL_Membership_Test node
1986 -- generated as part of testing membership in T'Class, this is T; for an
1987 -- N_SCIL_Dispatch_Table_Tag_Init node, this is the type being declared).
1988
1989 -- SCIL_Controlling_Tag (Node5-Sem)
1990 -- Present in N_SCIL_Dispatching_Call nodes. References the controlling
1991 -- tag of a dispatching call. This is usually an N_Selected_Component
1992 -- node (for a _tag component), but may be an N_Object_Declaration or
1993 -- N_Parameter_Specification node in some cases (e.g., for a call to
1994 -- a classwide streaming operation or a call to an instance of
1995 -- Ada.Tags.Generic_Dispatching_Constructor).
1996
1997 -- SCIL_Tag_Value (Node5-Sem)
1998 -- Present in N_SCIL_Membership_Test nodes. Used to reference the tag
1999 -- of the value that is being tested.
2000
2001 -- SCIL_Target_Prim (Node2-Sem)
2002 -- Present in N_SCIL_Dispatching_Call nodes. References the primitive
2003 -- operation named (statically) in a dispatching call.
2004
2005 -- Scope (Node3-Sem)
2006 -- Present in defining identifiers, defining character literals and
2007 -- defining operator symbols (i.e. in all entities). The entities of a
2008 -- scope all use this field to reference the corresponding scope entity.
2009 -- See Einfo for further details.
2010
2011 -- Shift_Count_OK (Flag4-Sem)
2012 -- A flag present in shift nodes to indicate that the shift count is
2013 -- known to be in range, i.e. is in the range from zero to word length
2014 -- minus one. If this flag is not set, then the shift count may be
2015 -- outside this range, i.e. larger than the word length, and the code
2016 -- must ensure that such shift counts give the appropriate result.
2017
2018 -- Source_Type (Node1-Sem)
2019 -- Used in an N_Validate_Unchecked_Conversion node to point to the
2020 -- source type entity for the unchecked conversion instantiation
2021 -- which gigi must do size validation for.
2022
2023 -- Split_PPC (Flag17)
2024 -- When a Pre or Post aspect specification is processed, it is broken
2025 -- into AND THEN sections. The left most section has Split_PPC set to
2026 -- False, indicating that it is the original specification (e.g. for
2027 -- posting errors). For other sections, Split_PPC is set to True.
2028 -- This flag is set in both the N_Aspect_Specification node itself,
2029 -- and in the pragma which is generated from this node.
2030
2031 -- Storage_Pool (Node1-Sem)
2032 -- Present in N_Allocator, N_Free_Statement, N_Simple_Return_Statement,
2033 -- and N_Extended_Return_Statement nodes. References the entity for the
2034 -- storage pool to be used for the allocate or free call or for the
2035 -- allocation of the returned value from function. Empty indicates that
2036 -- the global default pool is to be used. Note that in the case
2037 -- of a return statement, this field is set only if the function returns
2038 -- value of a type whose size is not known at compile time on the
2039 -- secondary stack.
2040
2041 -- Suppress_Assignment_Checks (Flag18-Sem)
2042 -- Used in generated N_Assignment_Statement nodes to suppress predicate
2043 -- and range checks in cases where the generated code knows that the
2044 -- value being assigned is in range and satisfies any predicate. Also
2045 -- can be set in N_Object_Declaration nodes, to similarly suppress any
2046 -- checks on the initializing value. In assignment statements it also
2047 -- suppresses access checks in the generated code for out- and in-out
2048 -- parameters in entry calls.
2049
2050 -- Suppress_Loop_Warnings (Flag17-Sem)
2051 -- Used in N_Loop_Statement node to indicate that warnings within the
2052 -- body of the loop should be suppressed. This is set when the range
2053 -- of a FOR loop is known to be null, or is probably null (loop would
2054 -- only execute if invalid values are present).
2055
2056 -- Target_Type (Node2-Sem)
2057 -- Used in an N_Validate_Unchecked_Conversion node to point to the target
2058 -- type entity for the unchecked conversion instantiation which gigi must
2059 -- do size validation for.
2060
2061 -- Then_Actions (List3-Sem)
2062 -- This field is present in if expression nodes. During code expansion
2063 -- we use the Insert_Actions procedure (in Exp_Util) to insert actions
2064 -- at an appropriate place in the tree to get elaborated at the right
2065 -- time. For if expressions, we have to be sure that the actions for
2066 -- for the Then branch are only elaborated if the condition is True.
2067 -- The Then_Actions field is used as a temporary parking place for
2068 -- these actions. The final tree is always rewritten to eliminate the
2069 -- need for this field, so in the tree passed to Gigi, this field is
2070 -- always set to No_List.
2071
2072 -- Treat_Fixed_As_Integer (Flag14-Sem)
2073 -- This flag appears in operator nodes for divide, multiply, mod and rem
2074 -- on fixed-point operands. It indicates that the operands are to be
2075 -- treated as integer values, ignoring small values. This flag is only
2076 -- set as a result of expansion of fixed-point operations. Typically a
2077 -- fixed-point multiplication in the source generates subsidiary
2078 -- multiplication and division operations that work with the underlying
2079 -- integer values and have this flag set. Note that this flag is not
2080 -- needed on other arithmetic operations (add, neg, subtract etc.) since
2081 -- in these cases it is always the case that fixed is treated as integer.
2082 -- The Etype field MUST be set if this flag is set. The analyzer knows to
2083 -- leave such nodes alone, and whoever makes them must set the correct
2084 -- Etype value.
2085
2086 -- TSS_Elist (Elist3-Sem)
2087 -- Present in N_Freeze_Entity nodes. Holds an element list containing
2088 -- entries for each TSS (type support subprogram) associated with the
2089 -- frozen type. The elements of the list are the entities for the
2090 -- subprograms (see package Exp_TSS for further details). Set to No_Elist
2091 -- if there are no type support subprograms for the type or if the freeze
2092 -- node is not for a type.
2093
2094 -- Uneval_Old_Accept (Flag7-Sem)
2095 -- Present in N_Pragma nodes. Set True if Opt.Uneval_Old is set to 'A'
2096 -- (accept) at the point where the pragma is encountered (including the
2097 -- case of a pragma generated from an aspect specification). It is this
2098 -- setting that is relevant, rather than the setting at the point where
2099 -- a contract is finally analyzed after the delay till the freeze point.
2100
2101 -- Uneval_Old_Warn (Flag18-Sem)
2102 -- Present in N_Pragma nodes. Set True if Opt.Uneval_Old is set to 'W'
2103 -- (warn) at the point where the pragma is encountered (including the
2104 -- case of a pragma generated from an aspect specification). It is this
2105 -- setting that is relevant, rather than the setting at the point where
2106 -- a contract is finally analyzed after the delay till the freeze point.
2107
2108 -- Unreferenced_In_Spec (Flag7-Sem)
2109 -- Present in N_With_Clause nodes. Set if the with clause is on the
2110 -- package or subprogram spec where the main unit is the corresponding
2111 -- body, and is not referenced by the spec (it may still be referenced by
2112 -- the body, so this flag is used to generate the proper message (see
2113 -- Sem_Util.Check_Unused_Withs for details)
2114
2115 -- Uninitialized_Variable (Node3-Sem)
2116 -- Present in N_Formal_Private_Type_Definition and in N_Private_
2117 -- Extension_Declarations. Indicates that a variable in a generic unit
2118 -- whose type is a formal private or derived type is read without being
2119 -- initialized. Used to warn if the corresponding actual type is not
2120 -- a fully initialized type.
2121
2122 -- Used_Operations (Elist5-Sem)
2123 -- Present in N_Use_Type_Clause nodes. Holds the list of operations that
2124 -- are made potentially use-visible by the clause. Simplifies processing
2125 -- on exit from the scope of the use_type_clause, in particular in the
2126 -- case of Use_All_Type, when those operations several scopes.
2127
2128 -- Was_Originally_Stub (Flag13-Sem)
2129 -- This flag is set in the node for a proper body that replaces stub.
2130 -- During the analysis procedure, stubs in some situations get rewritten
2131 -- by the corresponding bodies, and we set this flag to remember that
2132 -- this happened. Note that it is not good enough to rely on the use of
2133 -- Original_Node here because of the case of nested instantiations where
2134 -- the substituted node can be copied.
2135
2136 -- Withed_Body (Node1-Sem)
2137 -- Present in N_With_Clause nodes. Set if the unit in whose context
2138 -- the with_clause appears instantiates a generic contained in the
2139 -- library unit of the with_clause and as a result loads its body.
2140 -- Used for a more precise unit traversal for CodePeer.
2141
2142 --------------------------------------------------
2143 -- Note on Use of End_Label and End_Span Fields --
2144 --------------------------------------------------
2145
2146 -- Several constructs have end lines:
2147
2148 -- Loop Statement end loop [loop_IDENTIFIER];
2149 -- Package Specification end [[PARENT_UNIT_NAME .] IDENTIFIER]
2150 -- Task Definition end [task_IDENTIFIER]
2151 -- Protected Definition end [protected_IDENTIFIER]
2152 -- Protected Body end [protected_IDENTIFIER]
2153
2154 -- Block Statement end [block_IDENTIFIER];
2155 -- Subprogram Body end [DESIGNATOR];
2156 -- Package Body end [[PARENT_UNIT_NAME .] IDENTIFIER];
2157 -- Task Body end [task_IDENTIFIER];
2158 -- Accept Statement end [entry_IDENTIFIER]];
2159 -- Entry Body end [entry_IDENTIFIER];
2160
2161 -- If Statement end if;
2162 -- Case Statement end case;
2163
2164 -- Record Definition end record;
2165 -- Enumeration Definition );
2166
2167 -- The End_Label and End_Span fields are used to mark the locations of
2168 -- these lines, and also keep track of the label in the case where a label
2169 -- is present.
2170
2171 -- For the first group above, the End_Label field of the corresponding node
2172 -- is used to point to the label identifier. In the case where there is no
2173 -- label in the source, the parser supplies a dummy identifier (with
2174 -- Comes_From_Source set to False), and the Sloc of this dummy identifier
2175 -- marks the location of the token following the END token.
2176
2177 -- For the second group, the use of End_Label is similar, but the End_Label
2178 -- is found in the N_Handled_Sequence_Of_Statements node. This is done
2179 -- simply because in some cases there is no room in the parent node.
2180
2181 -- For the third group, there is never any label, and instead of using
2182 -- End_Label, we use the End_Span field which gives the location of the
2183 -- token following END, relative to the starting Sloc of the construct,
2184 -- i.e. add Sloc (Node) + End_Span (Node) to get the Sloc of the IF or CASE
2185 -- following the End_Label.
2186
2187 -- The record definition case is handled specially, we treat it as though
2188 -- it required an optional label which is never present, and so the parser
2189 -- always builds a dummy identifier with Comes From Source set False. The
2190 -- reason we do this, rather than using End_Span in this case, is that we
2191 -- want to generate a cross-ref entry for the end of a record, since it
2192 -- represents a scope for name declaration purposes.
2193
2194 -- The enumeration definition case is handled in an exactly similar manner,
2195 -- building a dummy identifier to get a cross-reference.
2196
2197 -- Note: the reason we store the difference as a Uint, instead of storing
2198 -- the Source_Ptr value directly, is that Source_Ptr values cannot be
2199 -- distinguished from other types of values, and we count on all general
2200 -- use fields being self describing. To make things easier for clients,
2201 -- note that we provide function End_Location, and procedure
2202 -- Set_End_Location to allow access to the logical value (which is the
2203 -- Source_Ptr value for the end token).
2204
2205 ---------------------
2206 -- Syntactic Nodes --
2207 ---------------------
2208
2209 ---------------------
2210 -- 2.3 Identifier --
2211 ---------------------
2212
2213 -- IDENTIFIER ::= IDENTIFIER_LETTER {[UNDERLINE] LETTER_OR_DIGIT}
2214 -- LETTER_OR_DIGIT ::= IDENTIFIER_LETTER | DIGIT
2215
2216 -- An IDENTIFIER shall not be a reserved word
2217
2218 -- In the Ada grammar identifiers are the bottom level tokens which have
2219 -- very few semantics. Actual program identifiers are direct names. If
2220 -- we were being 100% honest with the grammar, then we would have a node
2221 -- called N_Direct_Name which would point to an identifier. However,
2222 -- that's too many extra nodes, so we just use the N_Identifier node
2223 -- directly as a direct name, and it contains the expression fields and
2224 -- Entity field that correspond to its use as a direct name. In those
2225 -- few cases where identifiers appear in contexts where they are not
2226 -- direct names (pragmas, pragma argument associations, attribute
2227 -- references and attribute definition clauses), the Chars field of the
2228 -- node contains the Name_Id for the identifier name.
2229
2230 -- Note: in GNAT, a reserved word can be treated as an identifier in two
2231 -- cases. First, an incorrect use of a reserved word as an identifier is
2232 -- diagnosed and then treated as a normal identifier. Second, an
2233 -- attribute designator of the form of a reserved word (access, delta,
2234 -- digits, range) is treated as an identifier.
2235
2236 -- Note: The set of letters that is permitted in an identifier depends
2237 -- on the character set in use. See package Csets for full details.
2238
2239 -- N_Identifier
2240 -- Sloc points to identifier
2241 -- Chars (Name1) contains the Name_Id for the identifier
2242 -- Entity (Node4-Sem)
2243 -- Associated_Node (Node4-Sem)
2244 -- Original_Discriminant (Node2-Sem)
2245 -- Redundant_Use (Flag13-Sem)
2246 -- Atomic_Sync_Required (Flag14-Sem)
2247 -- Has_Private_View (Flag11-Sem) (set in generic units)
2248 -- plus fields for expression
2249
2250 --------------------------
2251 -- 2.4 Numeric Literal --
2252 --------------------------
2253
2254 -- NUMERIC_LITERAL ::= DECIMAL_LITERAL | BASED_LITERAL
2255
2256 ----------------------------
2257 -- 2.4.1 Decimal Literal --
2258 ----------------------------
2259
2260 -- DECIMAL_LITERAL ::= NUMERAL [.NUMERAL] [EXPONENT]
2261
2262 -- NUMERAL ::= DIGIT {[UNDERLINE] DIGIT}
2263
2264 -- EXPONENT ::= E [+] NUMERAL | E - NUMERAL
2265
2266 -- Decimal literals appear in the tree as either integer literal nodes
2267 -- or real literal nodes, depending on whether a period is present.
2268
2269 -- Note: literal nodes appear as a result of direct use of literals
2270 -- in the source program, and also as the result of evaluating
2271 -- expressions at compile time. In the latter case, it is possible
2272 -- to construct real literals that have no syntactic representation
2273 -- using the standard literal format. Such literals are listed by
2274 -- Sprint using the notation [numerator / denominator].
2275
2276 -- Note: the value of an integer literal node created by the front end
2277 -- is never outside the range of values of the base type. However, it
2278 -- can be the case that the created value is outside the range of the
2279 -- particular subtype. This happens in the case of integer overflows
2280 -- with checks suppressed.
2281
2282 -- N_Integer_Literal
2283 -- Sloc points to literal
2284 -- Original_Entity (Node2-Sem) If not Empty, holds Named_Number that
2285 -- has been constant-folded into its literal value.
2286 -- Intval (Uint3) contains integer value of literal
2287 -- plus fields for expression
2288 -- Print_In_Hex (Flag13-Sem)
2289
2290 -- N_Real_Literal
2291 -- Sloc points to literal
2292 -- Original_Entity (Node2-Sem) If not Empty, holds Named_Number that
2293 -- has been constant-folded into its literal value.
2294 -- Realval (Ureal3) contains real value of literal
2295 -- Corresponding_Integer_Value (Uint4-Sem)
2296 -- Is_Machine_Number (Flag11-Sem)
2297 -- plus fields for expression
2298
2299 --------------------------
2300 -- 2.4.2 Based Literal --
2301 --------------------------
2302
2303 -- BASED_LITERAL ::=
2304 -- BASE # BASED_NUMERAL [.BASED_NUMERAL] # [EXPONENT]
2305
2306 -- BASE ::= NUMERAL
2307
2308 -- BASED_NUMERAL ::=
2309 -- EXTENDED_DIGIT {[UNDERLINE] EXTENDED_DIGIT}
2310
2311 -- EXTENDED_DIGIT ::= DIGIT | A | B | C | D | E | F
2312
2313 -- Based literals appear in the tree as either integer literal nodes
2314 -- or real literal nodes, depending on whether a period is present.
2315
2316 ----------------------------
2317 -- 2.5 Character Literal --
2318 ----------------------------
2319
2320 -- CHARACTER_LITERAL ::= ' GRAPHIC_CHARACTER '
2321
2322 -- N_Character_Literal
2323 -- Sloc points to literal
2324 -- Chars (Name1) contains the Name_Id for the identifier
2325 -- Char_Literal_Value (Uint2) contains the literal value
2326 -- Entity (Node4-Sem)
2327 -- Associated_Node (Node4-Sem)
2328 -- Has_Private_View (Flag11-Sem) set in generic units.
2329 -- plus fields for expression
2330
2331 -- Note: the Entity field will be missing (set to Empty) for character
2332 -- literals whose type is Standard.Wide_Character or Standard.Character
2333 -- or a type derived from one of these two. In this case the character
2334 -- literal stands for its own coding. The reason we take this irregular
2335 -- short cut is to avoid the need to build lots of junk defining
2336 -- character literal nodes.
2337
2338 -------------------------
2339 -- 2.6 String Literal --
2340 -------------------------
2341
2342 -- STRING LITERAL ::= "{STRING_ELEMENT}"
2343
2344 -- A STRING_ELEMENT is either a pair of quotation marks ("), or a
2345 -- single GRAPHIC_CHARACTER other than a quotation mark.
2346 --
2347 -- Is_Folded_In_Parser is True if the parser created this literal by
2348 -- folding a sequence of "&" operators. For example, if the source code
2349 -- says "aaa" & "bbb" & "ccc", and this produces "aaabbbccc", the flag
2350 -- is set. This flag is needed because the parser doesn't know about
2351 -- visibility, so the folded result might be wrong, and semantic
2352 -- analysis needs to check for that.
2353
2354 -- N_String_Literal
2355 -- Sloc points to literal
2356 -- Strval (Str3) contains Id of string value
2357 -- Has_Wide_Character (Flag11-Sem)
2358 -- Has_Wide_Wide_Character (Flag13-Sem)
2359 -- Is_Folded_In_Parser (Flag4)
2360 -- plus fields for expression
2361
2362 ------------------
2363 -- 2.7 Comment --
2364 ------------------
2365
2366 -- A COMMENT starts with two adjacent hyphens and extends up to the
2367 -- end of the line. A COMMENT may appear on any line of a program.
2368
2369 -- Comments are skipped by the scanner and do not appear in the tree.
2370 -- It is possible to reconstruct the position of comments with respect
2371 -- to the elements of the tree by using the source position (Sloc)
2372 -- pointers that appear in every tree node.
2373
2374 -----------------
2375 -- 2.8 Pragma --
2376 -----------------
2377
2378 -- PRAGMA ::= pragma IDENTIFIER
2379 -- [(PRAGMA_ARGUMENT_ASSOCIATION {, PRAGMA_ARGUMENT_ASSOCIATION})];
2380
2381 -- Note that a pragma may appear in the tree anywhere a declaration
2382 -- or a statement may appear, as well as in some other situations
2383 -- which are explicitly documented.
2384
2385 -- N_Pragma
2386 -- Sloc points to PRAGMA
2387 -- Next_Pragma (Node1-Sem)
2388 -- Pragma_Argument_Associations (List2) (set to No_List if none)
2389 -- Corresponding_Aspect (Node3-Sem) (set to Empty if not present)
2390 -- Pragma_Identifier (Node4)
2391 -- Next_Rep_Item (Node5-Sem)
2392 -- Class_Present (Flag6) set if from Aspect with 'Class
2393 -- From_Aspect_Specification (Flag13-Sem)
2394 -- Is_Delayed_Aspect (Flag14-Sem)
2395 -- Is_Disabled (Flag15-Sem)
2396 -- Is_Ignored (Flag9-Sem)
2397 -- Is_Checked (Flag11-Sem)
2398 -- Import_Interface_Present (Flag16-Sem)
2399 -- Split_PPC (Flag17) set if corresponding aspect had Split_PPC set
2400 -- Uneval_Old_Accept (Flag7-Sem)
2401 -- Uneval_Old_Warn (Flag18-Sem)
2402
2403 -- Note: we should have a section on what pragmas are passed on to
2404 -- the back end to be processed. This section should note that pragma
2405 -- Psect_Object is always converted to Common_Object, but there are
2406 -- undoubtedly many other similar notes required ???
2407
2408 -- Note: a utility function Pragma_Name may be applied to pragma nodes
2409 -- to conveniently obtain the Chars field of the Pragma_Identifier.
2410
2411 -- Note: if From_Aspect_Specification is set, then Sloc points to the
2412 -- aspect name, as does the Pragma_Identifier. In this case if the
2413 -- pragma has a local name argument (such as pragma Inline), it is
2414 -- resolved to point to the specific entity affected by the pragma.
2415
2416 --------------------------------------
2417 -- 2.8 Pragma Argument Association --
2418 --------------------------------------
2419
2420 -- PRAGMA_ARGUMENT_ASSOCIATION ::=
2421 -- [pragma_argument_IDENTIFIER =>] NAME
2422 -- | [pragma_argument_IDENTIFIER =>] EXPRESSION
2423
2424 -- In Ada 2012, there are two more possibilities:
2425
2426 -- PRAGMA_ARGUMENT_ASSOCIATION ::=
2427 -- [pragma_argument_ASPECT_MARK =>] NAME
2428 -- | [pragma_argument_ASPECT_MARK =>] EXPRESSION
2429
2430 -- where the interesting allowed cases (which do not fit the syntax of
2431 -- the first alternative above) are
2432
2433 -- ASPECT_MARK => Pre'Class |
2434 -- Post'Class |
2435 -- Type_Invariant'Class |
2436 -- Invariant'Class
2437
2438 -- We allow this special usage in all Ada modes, but it would be a
2439 -- pain to allow these aspects to pervade the pragma syntax, and the
2440 -- representation of pragma nodes internally. So what we do is to
2441 -- replace these ASPECT_MARK forms with identifiers whose name is one
2442 -- of the special internal names _Pre, _Post or _Type_Invariant.
2443
2444 -- We do a similar replacement of these Aspect_Mark forms in the
2445 -- Expression of a pragma argument association for the cases of
2446 -- the first arguments of any Check pragmas and Check_Policy pragmas
2447
2448 -- N_Pragma_Argument_Association
2449 -- Sloc points to first token in association
2450 -- Chars (Name1) (set to No_Name if no pragma argument identifier)
2451 -- Expression (Node3)
2452
2453 ------------------------
2454 -- 2.9 Reserved Word --
2455 ------------------------
2456
2457 -- Reserved words are parsed by the scanner, and returned as the
2458 -- corresponding token types (e.g. PACKAGE is returned as Tok_Package)
2459
2460 ----------------------------
2461 -- 3.1 Basic Declaration --
2462 ----------------------------
2463
2464 -- BASIC_DECLARATION ::=
2465 -- TYPE_DECLARATION | SUBTYPE_DECLARATION
2466 -- | OBJECT_DECLARATION | NUMBER_DECLARATION
2467 -- | SUBPROGRAM_DECLARATION | ABSTRACT_SUBPROGRAM_DECLARATION
2468 -- | PACKAGE_DECLARATION | RENAMING_DECLARATION
2469 -- | EXCEPTION_DECLARATION | GENERIC_DECLARATION
2470 -- | GENERIC_INSTANTIATION
2471
2472 -- Basic declaration also includes IMPLICIT_LABEL_DECLARATION
2473 -- see further description in section on semantic nodes.
2474
2475 -- Also, in the tree that is constructed, a pragma may appear
2476 -- anywhere that a declaration may appear.
2477
2478 ------------------------------
2479 -- 3.1 Defining Identifier --
2480 ------------------------------
2481
2482 -- DEFINING_IDENTIFIER ::= IDENTIFIER
2483
2484 -- A defining identifier is an entity, which has additional fields
2485 -- depending on the setting of the Ekind field. These additional
2486 -- fields are defined (and access subprograms declared) in package
2487 -- Einfo.
2488
2489 -- Note: N_Defining_Identifier is an extended node whose fields are
2490 -- deliberate layed out to match the layout of fields in an ordinary
2491 -- N_Identifier node allowing for easy alteration of an identifier
2492 -- node into a defining identifier node. For details, see procedure
2493 -- Sinfo.CN.Change_Identifier_To_Defining_Identifier.
2494
2495 -- N_Defining_Identifier
2496 -- Sloc points to identifier
2497 -- Chars (Name1) contains the Name_Id for the identifier
2498 -- Next_Entity (Node2-Sem)
2499 -- Scope (Node3-Sem)
2500 -- Etype (Node5-Sem)
2501
2502 -----------------------------
2503 -- 3.2.1 Type Declaration --
2504 -----------------------------
2505
2506 -- TYPE_DECLARATION ::=
2507 -- FULL_TYPE_DECLARATION
2508 -- | INCOMPLETE_TYPE_DECLARATION
2509 -- | PRIVATE_TYPE_DECLARATION
2510 -- | PRIVATE_EXTENSION_DECLARATION
2511
2512 ----------------------------------
2513 -- 3.2.1 Full Type Declaration --
2514 ----------------------------------
2515
2516 -- FULL_TYPE_DECLARATION ::=
2517 -- type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
2518 -- is TYPE_DEFINITION
2519 -- [ASPECT_SPECIFICATIONS];
2520 -- | TASK_TYPE_DECLARATION
2521 -- | PROTECTED_TYPE_DECLARATION
2522
2523 -- The full type declaration node is used only for the first case. The
2524 -- second case (concurrent type declaration), is represented directly
2525 -- by a task type declaration or a protected type declaration.
2526
2527 -- N_Full_Type_Declaration
2528 -- Sloc points to TYPE
2529 -- Defining_Identifier (Node1)
2530 -- Incomplete_View (Node2-Sem)
2531 -- Discriminant_Specifications (List4) (set to No_List if none)
2532 -- Type_Definition (Node3)
2533 -- Discr_Check_Funcs_Built (Flag11-Sem)
2534
2535 ----------------------------
2536 -- 3.2.1 Type Definition --
2537 ----------------------------
2538
2539 -- TYPE_DEFINITION ::=
2540 -- ENUMERATION_TYPE_DEFINITION | INTEGER_TYPE_DEFINITION
2541 -- | REAL_TYPE_DEFINITION | ARRAY_TYPE_DEFINITION
2542 -- | RECORD_TYPE_DEFINITION | ACCESS_TYPE_DEFINITION
2543 -- | DERIVED_TYPE_DEFINITION | INTERFACE_TYPE_DEFINITION
2544
2545 --------------------------------
2546 -- 3.2.2 Subtype Declaration --
2547 --------------------------------
2548
2549 -- SUBTYPE_DECLARATION ::=
2550 -- subtype DEFINING_IDENTIFIER is [NULL_EXCLUSION] SUBTYPE_INDICATION
2551 -- [ASPECT_SPECIFICATIONS];
2552
2553 -- The subtype indication field is set to Empty for subtypes
2554 -- declared in package Standard (Positive, Natural).
2555
2556 -- N_Subtype_Declaration
2557 -- Sloc points to SUBTYPE
2558 -- Defining_Identifier (Node1)
2559 -- Null_Exclusion_Present (Flag11)
2560 -- Subtype_Indication (Node5)
2561 -- Generic_Parent_Type (Node4-Sem) (set for an actual derived type).
2562 -- Exception_Junk (Flag8-Sem)
2563 -- Has_Dynamic_Range_Check (Flag12-Sem)
2564
2565 -------------------------------
2566 -- 3.2.2 Subtype Indication --
2567 -------------------------------
2568
2569 -- SUBTYPE_INDICATION ::= SUBTYPE_MARK [CONSTRAINT]
2570
2571 -- Note: if no constraint is present, the subtype indication appears
2572 -- directly in the tree as a subtype mark. The N_Subtype_Indication
2573 -- node is used only if a constraint is present.
2574
2575 -- Note: [For Ada 2005 (AI-231)]: Because Ada 2005 extends this rule
2576 -- with the null-exclusion part (see AI-231), we had to introduce a new
2577 -- attribute in all the parents of subtype_indication nodes to indicate
2578 -- if the null-exclusion is present.
2579
2580 -- Note: the reason that this node has expression fields is that a
2581 -- subtype indication can appear as an operand of a membership test.
2582
2583 -- N_Subtype_Indication
2584 -- Sloc points to first token of subtype mark
2585 -- Subtype_Mark (Node4)
2586 -- Constraint (Node3)
2587 -- Etype (Node5-Sem)
2588 -- Must_Not_Freeze (Flag8-Sem)
2589
2590 -- Note: Depending on context, the Etype is either the entity of the
2591 -- Subtype_Mark field, or it is an itype constructed to reify the
2592 -- subtype indication. In particular, such itypes are created for a
2593 -- subtype indication that appears in an array type declaration. This
2594 -- simplifies constraint checking in indexed components.
2595
2596 -- For subtype indications that appear in scalar type and subtype
2597 -- declarations, the Etype is the entity of the subtype mark.
2598
2599 -------------------------
2600 -- 3.2.2 Subtype Mark --
2601 -------------------------
2602
2603 -- SUBTYPE_MARK ::= subtype_NAME
2604
2605 -----------------------
2606 -- 3.2.2 Constraint --
2607 -----------------------
2608
2609 -- CONSTRAINT ::= SCALAR_CONSTRAINT | COMPOSITE_CONSTRAINT
2610
2611 ------------------------------
2612 -- 3.2.2 Scalar Constraint --
2613 ------------------------------
2614
2615 -- SCALAR_CONSTRAINT ::=
2616 -- RANGE_CONSTRAINT | DIGITS_CONSTRAINT | DELTA_CONSTRAINT
2617
2618 ---------------------------------
2619 -- 3.2.2 Composite Constraint --
2620 ---------------------------------
2621
2622 -- COMPOSITE_CONSTRAINT ::=
2623 -- INDEX_CONSTRAINT | DISCRIMINANT_CONSTRAINT
2624
2625 -------------------------------
2626 -- 3.3.1 Object Declaration --
2627 -------------------------------
2628
2629 -- OBJECT_DECLARATION ::=
2630 -- DEFINING_IDENTIFIER_LIST : [aliased] [constant]
2631 -- [NULL_EXCLUSION] SUBTYPE_INDICATION [:= EXPRESSION]
2632 -- [ASPECT_SPECIFICATIONS];
2633 -- | DEFINING_IDENTIFIER_LIST : [aliased] [constant]
2634 -- ACCESS_DEFINITION [:= EXPRESSION]
2635 -- [ASPECT_SPECIFICATIONS];
2636 -- | DEFINING_IDENTIFIER_LIST : [aliased] [constant]
2637 -- ARRAY_TYPE_DEFINITION [:= EXPRESSION]
2638 -- [ASPECT_SPECIFICATIONS];
2639 -- | SINGLE_TASK_DECLARATION
2640 -- | SINGLE_PROTECTED_DECLARATION
2641
2642 -- Note: aliased is not permitted in Ada 83 mode
2643
2644 -- The N_Object_Declaration node is only for the first two cases.
2645 -- Single task declaration is handled by P_Task (9.1)
2646 -- Single protected declaration is handled by P_protected (9.5)
2647
2648 -- Although the syntax allows multiple identifiers in the list, the
2649 -- semantics is as though successive declarations were given with
2650 -- identical type definition and expression components. To simplify
2651 -- semantic processing, the parser represents a multiple declaration
2652 -- case as a sequence of single declarations, using the More_Ids and
2653 -- Prev_Ids flags to preserve the original source form as described
2654 -- in the section on "Handling of Defining Identifier Lists".
2655
2656 -- The flag Has_Init_Expression is set if an initializing expression
2657 -- is present. Normally it is set if and only if Expression contains
2658 -- a non-empty value, but there is an exception to this. When the
2659 -- initializing expression is an aggregate which requires explicit
2660 -- assignments, the Expression field gets set to Empty, but this flag
2661 -- is still set, so we don't forget we had an initializing expression.
2662
2663 -- Note: if a range check is required for the initialization
2664 -- expression then the Do_Range_Check flag is set in the Expression,
2665 -- with the check being done against the type given by the object
2666 -- definition, which is also the Etype of the defining identifier.
2667
2668 -- Note: the contents of the Expression field must be ignored (i.e.
2669 -- treated as though it were Empty) if No_Initialization is set True.
2670
2671 -- Note: the back end places some restrictions on the form of the
2672 -- Expression field. If the object being declared is Atomic, then
2673 -- the Expression may not have the form of an aggregate (since this
2674 -- might cause the back end to generate separate assignments). In this
2675 -- case the front end must generate an extra temporary and initialize
2676 -- this temporary as required (the temporary itself is not atomic).
2677
2678 -- Note: there is not node kind for object definition. Instead, the
2679 -- corresponding field holds a subtype indication, an array type
2680 -- definition, or (Ada 2005, AI-406) an access definition.
2681
2682 -- N_Object_Declaration
2683 -- Sloc points to first identifier
2684 -- Defining_Identifier (Node1)
2685 -- Aliased_Present (Flag4)
2686 -- Constant_Present (Flag17) set if CONSTANT appears
2687 -- Null_Exclusion_Present (Flag11)
2688 -- Object_Definition (Node4) subtype indic./array type def./access def.
2689 -- Expression (Node3) (set to Empty if not present)
2690 -- Handler_List_Entry (Node2-Sem)
2691 -- Corresponding_Generic_Association (Node5-Sem)
2692 -- More_Ids (Flag5) (set to False if no more identifiers in list)
2693 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
2694 -- No_Initialization (Flag13-Sem)
2695 -- Assignment_OK (Flag15-Sem)
2696 -- Exception_Junk (Flag8-Sem)
2697 -- Is_Subprogram_Descriptor (Flag16-Sem)
2698 -- Has_Init_Expression (Flag14)
2699 -- Suppress_Assignment_Checks (Flag18-Sem)
2700
2701 -------------------------------------
2702 -- 3.3.1 Defining Identifier List --
2703 -------------------------------------
2704
2705 -- DEFINING_IDENTIFIER_LIST ::=
2706 -- DEFINING_IDENTIFIER {, DEFINING_IDENTIFIER}
2707
2708 -------------------------------
2709 -- 3.3.2 Number Declaration --
2710 -------------------------------
2711
2712 -- NUMBER_DECLARATION ::=
2713 -- DEFINING_IDENTIFIER_LIST : constant := static_EXPRESSION;
2714
2715 -- Although the syntax allows multiple identifiers in the list, the
2716 -- semantics is as though successive declarations were given with
2717 -- identical expressions. To simplify semantic processing, the parser
2718 -- represents a multiple declaration case as a sequence of single
2719 -- declarations, using the More_Ids and Prev_Ids flags to preserve
2720 -- the original source form as described in the section on "Handling
2721 -- of Defining Identifier Lists".
2722
2723 -- N_Number_Declaration
2724 -- Sloc points to first identifier
2725 -- Defining_Identifier (Node1)
2726 -- Expression (Node3)
2727 -- More_Ids (Flag5) (set to False if no more identifiers in list)
2728 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
2729
2730 ----------------------------------
2731 -- 3.4 Derived Type Definition --
2732 ----------------------------------
2733
2734 -- DERIVED_TYPE_DEFINITION ::=
2735 -- [abstract] [limited] new [NULL_EXCLUSION] parent_SUBTYPE_INDICATION
2736 -- [[and INTERFACE_LIST] RECORD_EXTENSION_PART]
2737
2738 -- Note: ABSTRACT, LIMITED and record extension part are not permitted
2739 -- in Ada 83 mode
2740
2741 -- Note: a record extension part is required if ABSTRACT is present
2742
2743 -- N_Derived_Type_Definition
2744 -- Sloc points to NEW
2745 -- Abstract_Present (Flag4)
2746 -- Null_Exclusion_Present (Flag11) (set to False if not present)
2747 -- Subtype_Indication (Node5)
2748 -- Record_Extension_Part (Node3) (set to Empty if not present)
2749 -- Limited_Present (Flag17)
2750 -- Task_Present (Flag5) set in task interfaces
2751 -- Protected_Present (Flag6) set in protected interfaces
2752 -- Synchronized_Present (Flag7) set in interfaces
2753 -- Interface_List (List2) (set to No_List if none)
2754 -- Interface_Present (Flag16) set in abstract interfaces
2755
2756 -- Note: Task_Present, Protected_Present, Synchronized_Present,
2757 -- Interface_List, and Interface_Present are used for abstract
2758 -- interfaces (see comments for INTERFACE_TYPE_DEFINITION).
2759
2760 ---------------------------
2761 -- 3.5 Range Constraint --
2762 ---------------------------
2763
2764 -- RANGE_CONSTRAINT ::= range RANGE
2765
2766 -- N_Range_Constraint
2767 -- Sloc points to RANGE
2768 -- Range_Expression (Node4)
2769
2770 ----------------
2771 -- 3.5 Range --
2772 ----------------
2773
2774 -- RANGE ::=
2775 -- RANGE_ATTRIBUTE_REFERENCE
2776 -- | SIMPLE_EXPRESSION .. SIMPLE_EXPRESSION
2777
2778 -- Note: the case of a range given as a range attribute reference
2779 -- appears directly in the tree as an attribute reference.
2780
2781 -- Note: the field name for a reference to a range is Range_Expression
2782 -- rather than Range, because range is a reserved keyword in Ada.
2783
2784 -- Note: the reason that this node has expression fields is that a
2785 -- range can appear as an operand of a membership test. The Etype
2786 -- field is the type of the range (we do NOT construct an implicit
2787 -- subtype to represent the range exactly).
2788
2789 -- N_Range
2790 -- Sloc points to ..
2791 -- Low_Bound (Node1)
2792 -- High_Bound (Node2)
2793 -- Includes_Infinities (Flag11)
2794 -- plus fields for expression
2795
2796 -- Note: if the range appears in a context, such as a subtype
2797 -- declaration, where range checks are required on one or both of
2798 -- the expression fields, then type conversion nodes are inserted
2799 -- to represent the required checks.
2800
2801 ----------------------------------------
2802 -- 3.5.1 Enumeration Type Definition --
2803 ----------------------------------------
2804
2805 -- ENUMERATION_TYPE_DEFINITION ::=
2806 -- (ENUMERATION_LITERAL_SPECIFICATION
2807 -- {, ENUMERATION_LITERAL_SPECIFICATION})
2808
2809 -- Note: the Literals field in the node described below is null for
2810 -- the case of the standard types CHARACTER and WIDE_CHARACTER, for
2811 -- which special processing handles these types as special cases.
2812
2813 -- N_Enumeration_Type_Definition
2814 -- Sloc points to left parenthesis
2815 -- Literals (List1) (Empty for CHARACTER or WIDE_CHARACTER)
2816 -- End_Label (Node4) (set to Empty if internally generated record)
2817
2818 ----------------------------------------------
2819 -- 3.5.1 Enumeration Literal Specification --
2820 ----------------------------------------------
2821
2822 -- ENUMERATION_LITERAL_SPECIFICATION ::=
2823 -- DEFINING_IDENTIFIER | DEFINING_CHARACTER_LITERAL
2824
2825 ---------------------------------------
2826 -- 3.5.1 Defining Character Literal --
2827 ---------------------------------------
2828
2829 -- DEFINING_CHARACTER_LITERAL ::= CHARACTER_LITERAL
2830
2831 -- A defining character literal is an entity, which has additional
2832 -- fields depending on the setting of the Ekind field. These
2833 -- additional fields are defined (and access subprograms declared)
2834 -- in package Einfo.
2835
2836 -- Note: N_Defining_Character_Literal is an extended node whose fields
2837 -- are deliberate layed out to match the layout of fields in an ordinary
2838 -- N_Character_Literal node allowing for easy alteration of a character
2839 -- literal node into a defining character literal node. For details, see
2840 -- Sinfo.CN.Change_Character_Literal_To_Defining_Character_Literal.
2841
2842 -- N_Defining_Character_Literal
2843 -- Sloc points to literal
2844 -- Chars (Name1) contains the Name_Id for the identifier
2845 -- Next_Entity (Node2-Sem)
2846 -- Scope (Node3-Sem)
2847 -- Etype (Node5-Sem)
2848
2849 ------------------------------------
2850 -- 3.5.4 Integer Type Definition --
2851 ------------------------------------
2852
2853 -- Note: there is an error in this rule in the latest version of the
2854 -- grammar, so we have retained the old rule pending clarification.
2855
2856 -- INTEGER_TYPE_DEFINITION ::=
2857 -- SIGNED_INTEGER_TYPE_DEFINITION
2858 -- | MODULAR_TYPE_DEFINITION
2859
2860 -------------------------------------------
2861 -- 3.5.4 Signed Integer Type Definition --
2862 -------------------------------------------
2863
2864 -- SIGNED_INTEGER_TYPE_DEFINITION ::=
2865 -- range static_SIMPLE_EXPRESSION .. static_SIMPLE_EXPRESSION
2866
2867 -- Note: the Low_Bound and High_Bound fields are set to Empty
2868 -- for integer types defined in package Standard.
2869
2870 -- N_Signed_Integer_Type_Definition
2871 -- Sloc points to RANGE
2872 -- Low_Bound (Node1)
2873 -- High_Bound (Node2)
2874
2875 ------------------------------------
2876 -- 3.5.4 Modular Type Definition --
2877 ------------------------------------
2878
2879 -- MODULAR_TYPE_DEFINITION ::= mod static_EXPRESSION
2880
2881 -- N_Modular_Type_Definition
2882 -- Sloc points to MOD
2883 -- Expression (Node3)
2884
2885 ---------------------------------
2886 -- 3.5.6 Real Type Definition --
2887 ---------------------------------
2888
2889 -- REAL_TYPE_DEFINITION ::=
2890 -- FLOATING_POINT_DEFINITION | FIXED_POINT_DEFINITION
2891
2892 --------------------------------------
2893 -- 3.5.7 Floating Point Definition --
2894 --------------------------------------
2895
2896 -- FLOATING_POINT_DEFINITION ::=
2897 -- digits static_SIMPLE_EXPRESSION [REAL_RANGE_SPECIFICATION]
2898
2899 -- Note: The Digits_Expression and Real_Range_Specifications fields
2900 -- are set to Empty for floating-point types declared in Standard.
2901
2902 -- N_Floating_Point_Definition
2903 -- Sloc points to DIGITS
2904 -- Digits_Expression (Node2)
2905 -- Real_Range_Specification (Node4) (set to Empty if not present)
2906
2907 -------------------------------------
2908 -- 3.5.7 Real Range Specification --
2909 -------------------------------------
2910
2911 -- REAL_RANGE_SPECIFICATION ::=
2912 -- range static_SIMPLE_EXPRESSION .. static_SIMPLE_EXPRESSION
2913
2914 -- N_Real_Range_Specification
2915 -- Sloc points to RANGE
2916 -- Low_Bound (Node1)
2917 -- High_Bound (Node2)
2918
2919 -----------------------------------
2920 -- 3.5.9 Fixed Point Definition --
2921 -----------------------------------
2922
2923 -- FIXED_POINT_DEFINITION ::=
2924 -- ORDINARY_FIXED_POINT_DEFINITION | DECIMAL_FIXED_POINT_DEFINITION
2925
2926 --------------------------------------------
2927 -- 3.5.9 Ordinary Fixed Point Definition --
2928 --------------------------------------------
2929
2930 -- ORDINARY_FIXED_POINT_DEFINITION ::=
2931 -- delta static_EXPRESSION REAL_RANGE_SPECIFICATION
2932
2933 -- Note: In Ada 83, the EXPRESSION must be a SIMPLE_EXPRESSION
2934
2935 -- N_Ordinary_Fixed_Point_Definition
2936 -- Sloc points to DELTA
2937 -- Delta_Expression (Node3)
2938 -- Real_Range_Specification (Node4)
2939
2940 -------------------------------------------
2941 -- 3.5.9 Decimal Fixed Point Definition --
2942 -------------------------------------------
2943
2944 -- DECIMAL_FIXED_POINT_DEFINITION ::=
2945 -- delta static_EXPRESSION
2946 -- digits static_EXPRESSION [REAL_RANGE_SPECIFICATION]
2947
2948 -- Note: decimal types are not permitted in Ada 83 mode
2949
2950 -- N_Decimal_Fixed_Point_Definition
2951 -- Sloc points to DELTA
2952 -- Delta_Expression (Node3)
2953 -- Digits_Expression (Node2)
2954 -- Real_Range_Specification (Node4) (set to Empty if not present)
2955
2956 ------------------------------
2957 -- 3.5.9 Digits Constraint --
2958 ------------------------------
2959
2960 -- DIGITS_CONSTRAINT ::=
2961 -- digits static_EXPRESSION [RANGE_CONSTRAINT]
2962
2963 -- Note: in Ada 83, the EXPRESSION must be a SIMPLE_EXPRESSION
2964 -- Note: in Ada 95, reduced accuracy subtypes are obsolescent
2965
2966 -- N_Digits_Constraint
2967 -- Sloc points to DIGITS
2968 -- Digits_Expression (Node2)
2969 -- Range_Constraint (Node4) (set to Empty if not present)
2970
2971 --------------------------------
2972 -- 3.6 Array Type Definition --
2973 --------------------------------
2974
2975 -- ARRAY_TYPE_DEFINITION ::=
2976 -- UNCONSTRAINED_ARRAY_DEFINITION | CONSTRAINED_ARRAY_DEFINITION
2977
2978 -----------------------------------------
2979 -- 3.6 Unconstrained Array Definition --
2980 -----------------------------------------
2981
2982 -- UNCONSTRAINED_ARRAY_DEFINITION ::=
2983 -- array (INDEX_SUBTYPE_DEFINITION {, INDEX_SUBTYPE_DEFINITION}) of
2984 -- COMPONENT_DEFINITION
2985
2986 -- Note: dimensionality of array is indicated by number of entries in
2987 -- the Subtype_Marks list, which has one entry for each dimension.
2988
2989 -- N_Unconstrained_Array_Definition
2990 -- Sloc points to ARRAY
2991 -- Subtype_Marks (List2)
2992 -- Component_Definition (Node4)
2993
2994 -----------------------------------
2995 -- 3.6 Index Subtype Definition --
2996 -----------------------------------
2997
2998 -- INDEX_SUBTYPE_DEFINITION ::= SUBTYPE_MARK range <>
2999
3000 -- There is no explicit node in the tree for an index subtype
3001 -- definition since the N_Unconstrained_Array_Definition node
3002 -- incorporates the type marks which appear in this context.
3003
3004 ---------------------------------------
3005 -- 3.6 Constrained Array Definition --
3006 ---------------------------------------
3007
3008 -- CONSTRAINED_ARRAY_DEFINITION ::=
3009 -- array (DISCRETE_SUBTYPE_DEFINITION
3010 -- {, DISCRETE_SUBTYPE_DEFINITION})
3011 -- of COMPONENT_DEFINITION
3012
3013 -- Note: dimensionality of array is indicated by number of entries
3014 -- in the Discrete_Subtype_Definitions list, which has one entry
3015 -- for each dimension.
3016
3017 -- N_Constrained_Array_Definition
3018 -- Sloc points to ARRAY
3019 -- Discrete_Subtype_Definitions (List2)
3020 -- Component_Definition (Node4)
3021
3022 -- Note: although the language allows the full syntax for discrete
3023 -- subtype definitions (i.e. a discrete subtype indication or a range),
3024 -- in the generated tree, we always rewrite these as N_Range nodes.
3025
3026 --------------------------------------
3027 -- 3.6 Discrete Subtype Definition --
3028 --------------------------------------
3029
3030 -- DISCRETE_SUBTYPE_DEFINITION ::=
3031 -- discrete_SUBTYPE_INDICATION | RANGE
3032
3033 -------------------------------
3034 -- 3.6 Component Definition --
3035 -------------------------------
3036
3037 -- COMPONENT_DEFINITION ::=
3038 -- [aliased] [NULL_EXCLUSION] SUBTYPE_INDICATION | ACCESS_DEFINITION
3039
3040 -- Note: although the syntax does not permit a component definition to
3041 -- be an anonymous array (and the parser will diagnose such an attempt
3042 -- with an appropriate message), it is possible for anonymous arrays
3043 -- to appear as component definitions. The semantics and back end handle
3044 -- this case properly, and the expander in fact generates such cases.
3045 -- Access_Definition is an optional field that gives support to
3046 -- Ada 2005 (AI-230). The parser generates nodes that have either the
3047 -- Subtype_Indication field or else the Access_Definition field.
3048
3049 -- N_Component_Definition
3050 -- Sloc points to ALIASED, ACCESS or to first token of subtype mark
3051 -- Aliased_Present (Flag4)
3052 -- Null_Exclusion_Present (Flag11)
3053 -- Subtype_Indication (Node5) (set to Empty if not present)
3054 -- Access_Definition (Node3) (set to Empty if not present)
3055
3056 -----------------------------
3057 -- 3.6.1 Index Constraint --
3058 -----------------------------
3059
3060 -- INDEX_CONSTRAINT ::= (DISCRETE_RANGE {, DISCRETE_RANGE})
3061
3062 -- It is not in general possible to distinguish between discriminant
3063 -- constraints and index constraints at parse time, since a simple
3064 -- name could be either the subtype mark of a discrete range, or an
3065 -- expression in a discriminant association with no name. Either
3066 -- entry appears simply as the name, and the semantic parse must
3067 -- distinguish between the two cases. Thus we use a common tree
3068 -- node format for both of these constraint types.
3069
3070 -- See Discriminant_Constraint for format of node
3071
3072 ---------------------------
3073 -- 3.6.1 Discrete Range --
3074 ---------------------------
3075
3076 -- DISCRETE_RANGE ::= discrete_SUBTYPE_INDICATION | RANGE
3077
3078 ----------------------------
3079 -- 3.7 Discriminant Part --
3080 ----------------------------
3081
3082 -- DISCRIMINANT_PART ::=
3083 -- UNKNOWN_DISCRIMINANT_PART | KNOWN_DISCRIMINANT_PART
3084
3085 ------------------------------------
3086 -- 3.7 Unknown Discriminant Part --
3087 ------------------------------------
3088
3089 -- UNKNOWN_DISCRIMINANT_PART ::= (<>)
3090
3091 -- Note: unknown discriminant parts are not permitted in Ada 83 mode
3092
3093 -- There is no explicit node in the tree for an unknown discriminant
3094 -- part. Instead the Unknown_Discriminants_Present flag is set in the
3095 -- parent node.
3096
3097 ----------------------------------
3098 -- 3.7 Known Discriminant Part --
3099 ----------------------------------
3100
3101 -- KNOWN_DISCRIMINANT_PART ::=
3102 -- (DISCRIMINANT_SPECIFICATION {; DISCRIMINANT_SPECIFICATION})
3103
3104 -------------------------------------
3105 -- 3.7 Discriminant Specification --
3106 -------------------------------------
3107
3108 -- DISCRIMINANT_SPECIFICATION ::=
3109 -- DEFINING_IDENTIFIER_LIST : [NULL_EXCLUSION] SUBTYPE_MARK
3110 -- [:= DEFAULT_EXPRESSION]
3111 -- | DEFINING_IDENTIFIER_LIST : ACCESS_DEFINITION
3112 -- [:= DEFAULT_EXPRESSION]
3113
3114 -- Although the syntax allows multiple identifiers in the list, the
3115 -- semantics is as though successive specifications were given with
3116 -- identical type definition and expression components. To simplify
3117 -- semantic processing, the parser represents a multiple declaration
3118 -- case as a sequence of single specifications, using the More_Ids and
3119 -- Prev_Ids flags to preserve the original source form as described
3120 -- in the section on "Handling of Defining Identifier Lists".
3121
3122 -- N_Discriminant_Specification
3123 -- Sloc points to first identifier
3124 -- Defining_Identifier (Node1)
3125 -- Null_Exclusion_Present (Flag11)
3126 -- Discriminant_Type (Node5) subtype mark or access parameter definition
3127 -- Expression (Node3) (set to Empty if no default expression)
3128 -- More_Ids (Flag5) (set to False if no more identifiers in list)
3129 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
3130
3131 -----------------------------
3132 -- 3.7 Default Expression --
3133 -----------------------------
3134
3135 -- DEFAULT_EXPRESSION ::= EXPRESSION
3136
3137 ------------------------------------
3138 -- 3.7.1 Discriminant Constraint --
3139 ------------------------------------
3140
3141 -- DISCRIMINANT_CONSTRAINT ::=
3142 -- (DISCRIMINANT_ASSOCIATION {, DISCRIMINANT_ASSOCIATION})
3143
3144 -- It is not in general possible to distinguish between discriminant
3145 -- constraints and index constraints at parse time, since a simple
3146 -- name could be either the subtype mark of a discrete range, or an
3147 -- expression in a discriminant association with no name. Either
3148 -- entry appears simply as the name, and the semantic parse must
3149 -- distinguish between the two cases. Thus we use a common tree
3150 -- node format for both of these constraint types.
3151
3152 -- N_Index_Or_Discriminant_Constraint
3153 -- Sloc points to left paren
3154 -- Constraints (List1) points to list of discrete ranges or
3155 -- discriminant associations
3156
3157 -------------------------------------
3158 -- 3.7.1 Discriminant Association --
3159 -------------------------------------
3160
3161 -- DISCRIMINANT_ASSOCIATION ::=
3162 -- [discriminant_SELECTOR_NAME
3163 -- {| discriminant_SELECTOR_NAME} =>] EXPRESSION
3164
3165 -- Note: a discriminant association that has no selector name list
3166 -- appears directly as an expression in the tree.
3167
3168 -- N_Discriminant_Association
3169 -- Sloc points to first token of discriminant association
3170 -- Selector_Names (List1) (always non-empty, since if no selector
3171 -- names are present, this node is not used, see comment above)
3172 -- Expression (Node3)
3173
3174 ---------------------------------
3175 -- 3.8 Record Type Definition --
3176 ---------------------------------
3177
3178 -- RECORD_TYPE_DEFINITION ::=
3179 -- [[abstract] tagged] [limited] RECORD_DEFINITION
3180
3181 -- Note: ABSTRACT, TAGGED, LIMITED are not permitted in Ada 83 mode
3182
3183 -- There is no explicit node in the tree for a record type definition.
3184 -- Instead the flags for Tagged_Present and Limited_Present appear in
3185 -- the N_Record_Definition node for a record definition appearing in
3186 -- the context of a record type definition.
3187
3188 ----------------------------
3189 -- 3.8 Record Definition --
3190 ----------------------------
3191
3192 -- RECORD_DEFINITION ::=
3193 -- record
3194 -- COMPONENT_LIST
3195 -- end record
3196 -- | null record
3197
3198 -- Note: the Abstract_Present, Tagged_Present and Limited_Present
3199 -- flags appear only for a record definition appearing in a record
3200 -- type definition.
3201
3202 -- Note: the NULL RECORD case is not permitted in Ada 83
3203
3204 -- N_Record_Definition
3205 -- Sloc points to RECORD or NULL
3206 -- End_Label (Node4) (set to Empty if internally generated record)
3207 -- Abstract_Present (Flag4)
3208 -- Tagged_Present (Flag15)
3209 -- Limited_Present (Flag17)
3210 -- Component_List (Node1) empty in null record case
3211 -- Null_Present (Flag13) set in null record case
3212 -- Task_Present (Flag5) set in task interfaces
3213 -- Protected_Present (Flag6) set in protected interfaces
3214 -- Synchronized_Present (Flag7) set in interfaces
3215 -- Interface_Present (Flag16) set in abstract interfaces
3216 -- Interface_List (List2) (set to No_List if none)
3217
3218 -- Note: Task_Present, Protected_Present, Synchronized _Present,
3219 -- Interface_List and Interface_Present are used for abstract
3220 -- interfaces (see comments for INTERFACE_TYPE_DEFINITION).
3221
3222 -------------------------
3223 -- 3.8 Component List --
3224 -------------------------
3225
3226 -- COMPONENT_LIST ::=
3227 -- COMPONENT_ITEM {COMPONENT_ITEM}
3228 -- | {COMPONENT_ITEM} VARIANT_PART
3229 -- | null;
3230
3231 -- N_Component_List
3232 -- Sloc points to first token of component list
3233 -- Component_Items (List3)
3234 -- Variant_Part (Node4) (set to Empty if no variant part)
3235 -- Null_Present (Flag13)
3236
3237 -------------------------
3238 -- 3.8 Component Item --
3239 -------------------------
3240
3241 -- COMPONENT_ITEM ::= COMPONENT_DECLARATION | REPRESENTATION_CLAUSE
3242
3243 -- Note: A component item can also be a pragma, and in the tree
3244 -- that is obtained after semantic processing, a component item
3245 -- can be an N_Null node resulting from a non-recognized pragma.
3246
3247 --------------------------------
3248 -- 3.8 Component Declaration --
3249 --------------------------------
3250
3251 -- COMPONENT_DECLARATION ::=
3252 -- DEFINING_IDENTIFIER_LIST : COMPONENT_DEFINITION
3253 -- [:= DEFAULT_EXPRESSION]
3254 -- [ASPECT_SPECIFICATIONS];
3255
3256 -- Note: although the syntax does not permit a component definition to
3257 -- be an anonymous array (and the parser will diagnose such an attempt
3258 -- with an appropriate message), it is possible for anonymous arrays
3259 -- to appear as component definitions. The semantics and back end handle
3260 -- this case properly, and the expander in fact generates such cases.
3261
3262 -- Although the syntax allows multiple identifiers in the list, the
3263 -- semantics is as though successive declarations were given with the
3264 -- same component definition and expression components. To simplify
3265 -- semantic processing, the parser represents a multiple declaration
3266 -- case as a sequence of single declarations, using the More_Ids and
3267 -- Prev_Ids flags to preserve the original source form as described
3268 -- in the section on "Handling of Defining Identifier Lists".
3269
3270 -- N_Component_Declaration
3271 -- Sloc points to first identifier
3272 -- Defining_Identifier (Node1)
3273 -- Component_Definition (Node4)
3274 -- Expression (Node3) (set to Empty if no default expression)
3275 -- More_Ids (Flag5) (set to False if no more identifiers in list)
3276 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
3277
3278 -------------------------
3279 -- 3.8.1 Variant Part --
3280 -------------------------
3281
3282 -- VARIANT_PART ::=
3283 -- case discriminant_DIRECT_NAME is
3284 -- VARIANT {VARIANT}
3285 -- end case;
3286
3287 -- Note: the variants list can contain pragmas as well as variants.
3288 -- In a properly formed program there is at least one variant.
3289
3290 -- N_Variant_Part
3291 -- Sloc points to CASE
3292 -- Name (Node2)
3293 -- Variants (List1)
3294
3295 --------------------
3296 -- 3.8.1 Variant --
3297 --------------------
3298
3299 -- VARIANT ::=
3300 -- when DISCRETE_CHOICE_LIST =>
3301 -- COMPONENT_LIST
3302
3303 -- N_Variant
3304 -- Sloc points to WHEN
3305 -- Discrete_Choices (List4)
3306 -- Component_List (Node1)
3307 -- Enclosing_Variant (Node2-Sem)
3308 -- Present_Expr (Uint3-Sem)
3309 -- Dcheck_Function (Node5-Sem)
3310 -- Has_SP_Choice (Flag15-Sem)
3311
3312 -- Note: in the list of Discrete_Choices, the tree passed to the back
3313 -- end does not have choice entries corresponding to names of statically
3314 -- predicated subtypes. Such entries are always expanded out to the list
3315 -- of equivalent values or ranges. The ASIS tree generated in -gnatct
3316 -- mode also has this expansion, but done with a proper Rewrite call on
3317 -- the N_Variant node so that ASIS can properly retrieve the original.
3318
3319 ---------------------------------
3320 -- 3.8.1 Discrete Choice List --
3321 ---------------------------------
3322
3323 -- DISCRETE_CHOICE_LIST ::= DISCRETE_CHOICE {| DISCRETE_CHOICE}
3324
3325 ----------------------------
3326 -- 3.8.1 Discrete Choice --
3327 ----------------------------
3328
3329 -- DISCRETE_CHOICE ::= EXPRESSION | DISCRETE_RANGE | others
3330
3331 -- Note: in Ada 83 mode, the expression must be a simple expression
3332
3333 -- The only choice that appears explicitly is the OTHERS choice, as
3334 -- defined here. Other cases of discrete choice (expression and
3335 -- discrete range) appear directly. This production is also used
3336 -- for the OTHERS possibility of an exception choice.
3337
3338 -- Note: in accordance with the syntax, the parser does not check that
3339 -- OTHERS appears at the end on its own in a choice list context. This
3340 -- is a semantic check.
3341
3342 -- N_Others_Choice
3343 -- Sloc points to OTHERS
3344 -- Others_Discrete_Choices (List1-Sem)
3345 -- All_Others (Flag11-Sem)
3346
3347 ----------------------------------
3348 -- 3.9.1 Record Extension Part --
3349 ----------------------------------
3350
3351 -- RECORD_EXTENSION_PART ::= with RECORD_DEFINITION
3352
3353 -- Note: record extension parts are not permitted in Ada 83 mode
3354
3355 --------------------------------------
3356 -- 3.9.4 Interface Type Definition --
3357 --------------------------------------
3358
3359 -- INTERFACE_TYPE_DEFINITION ::=
3360 -- [limited | task | protected | synchronized]
3361 -- interface [interface_list]
3362
3363 -- Note: Interfaces are implemented with N_Record_Definition and
3364 -- N_Derived_Type_Definition nodes because most of the support
3365 -- for the analysis of abstract types has been reused to
3366 -- analyze abstract interfaces.
3367
3368 ----------------------------------
3369 -- 3.10 Access Type Definition --
3370 ----------------------------------
3371
3372 -- ACCESS_TYPE_DEFINITION ::=
3373 -- ACCESS_TO_OBJECT_DEFINITION
3374 -- | ACCESS_TO_SUBPROGRAM_DEFINITION
3375
3376 --------------------------
3377 -- 3.10 Null Exclusion --
3378 --------------------------
3379
3380 -- NULL_EXCLUSION ::= not null
3381
3382 ---------------------------------------
3383 -- 3.10 Access To Object Definition --
3384 ---------------------------------------
3385
3386 -- ACCESS_TO_OBJECT_DEFINITION ::=
3387 -- [NULL_EXCLUSION] access [GENERAL_ACCESS_MODIFIER]
3388 -- SUBTYPE_INDICATION
3389
3390 -- N_Access_To_Object_Definition
3391 -- Sloc points to ACCESS
3392 -- All_Present (Flag15)
3393 -- Null_Exclusion_Present (Flag11)
3394 -- Null_Excluding_Subtype (Flag16)
3395 -- Subtype_Indication (Node5)
3396 -- Constant_Present (Flag17)
3397
3398 -----------------------------------
3399 -- 3.10 General Access Modifier --
3400 -----------------------------------
3401
3402 -- GENERAL_ACCESS_MODIFIER ::= all | constant
3403
3404 -- Note: general access modifiers are not permitted in Ada 83 mode
3405
3406 -- There is no explicit node in the tree for general access modifier.
3407 -- Instead the All_Present or Constant_Present flags are set in the
3408 -- parent node.
3409
3410 -------------------------------------------
3411 -- 3.10 Access To Subprogram Definition --
3412 -------------------------------------------
3413
3414 -- ACCESS_TO_SUBPROGRAM_DEFINITION
3415 -- [NULL_EXCLUSION] access [protected] procedure PARAMETER_PROFILE
3416 -- | [NULL_EXCLUSION] access [protected] function
3417 -- PARAMETER_AND_RESULT_PROFILE
3418
3419 -- Note: access to subprograms are not permitted in Ada 83 mode
3420
3421 -- N_Access_Function_Definition
3422 -- Sloc points to ACCESS
3423 -- Null_Exclusion_Present (Flag11)
3424 -- Null_Exclusion_In_Return_Present (Flag14)
3425 -- Protected_Present (Flag6)
3426 -- Parameter_Specifications (List3) (set to No_List if no formal part)
3427 -- Result_Definition (Node4) result subtype (subtype mark or access def)
3428
3429 -- N_Access_Procedure_Definition
3430 -- Sloc points to ACCESS
3431 -- Null_Exclusion_Present (Flag11)
3432 -- Protected_Present (Flag6)
3433 -- Parameter_Specifications (List3) (set to No_List if no formal part)
3434
3435 -----------------------------
3436 -- 3.10 Access Definition --
3437 -----------------------------
3438
3439 -- ACCESS_DEFINITION ::=
3440 -- [NULL_EXCLUSION] access [GENERAL_ACCESS_MODIFIER] SUBTYPE_MARK
3441 -- | ACCESS_TO_SUBPROGRAM_DEFINITION
3442
3443 -- Note: access to subprograms are an Ada 2005 (AI-254) extension
3444
3445 -- N_Access_Definition
3446 -- Sloc points to ACCESS
3447 -- Null_Exclusion_Present (Flag11)
3448 -- All_Present (Flag15)
3449 -- Constant_Present (Flag17)
3450 -- Subtype_Mark (Node4)
3451 -- Access_To_Subprogram_Definition (Node3) (set to Empty if not present)
3452
3453 -----------------------------------------
3454 -- 3.10.1 Incomplete Type Declaration --
3455 -----------------------------------------
3456
3457 -- INCOMPLETE_TYPE_DECLARATION ::=
3458 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
3459
3460 -- N_Incomplete_Type_Declaration
3461 -- Sloc points to TYPE
3462 -- Defining_Identifier (Node1)
3463 -- Discriminant_Specifications (List4) (set to No_List if no
3464 -- discriminant part, or if the discriminant part is an
3465 -- unknown discriminant part)
3466 -- Premature_Use (Node5-Sem) used for improved diagnostics.
3467 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
3468 -- Tagged_Present (Flag15)
3469
3470 ----------------------------
3471 -- 3.11 Declarative Part --
3472 ----------------------------
3473
3474 -- DECLARATIVE_PART ::= {DECLARATIVE_ITEM}
3475
3476 -- Note: although the parser enforces the syntactic requirement that
3477 -- a declarative part can contain only declarations, the semantic
3478 -- processing may add statements to the list of actions in a
3479 -- declarative part, so the code generator should be prepared
3480 -- to accept a statement in this position.
3481
3482 ----------------------------
3483 -- 3.11 Declarative Item --
3484 ----------------------------
3485
3486 -- DECLARATIVE_ITEM ::= BASIC_DECLARATIVE_ITEM | BODY
3487
3488 ----------------------------------
3489 -- 3.11 Basic Declarative Item --
3490 ----------------------------------
3491
3492 -- BASIC_DECLARATIVE_ITEM ::=
3493 -- BASIC_DECLARATION | REPRESENTATION_CLAUSE | USE_CLAUSE
3494
3495 ----------------
3496 -- 3.11 Body --
3497 ----------------
3498
3499 -- BODY ::= PROPER_BODY | BODY_STUB
3500
3501 -----------------------
3502 -- 3.11 Proper Body --
3503 -----------------------
3504
3505 -- PROPER_BODY ::=
3506 -- SUBPROGRAM_BODY | PACKAGE_BODY | TASK_BODY | PROTECTED_BODY
3507
3508 ---------------
3509 -- 4.1 Name --
3510 ---------------
3511
3512 -- NAME ::=
3513 -- DIRECT_NAME | EXPLICIT_DEREFERENCE
3514 -- | INDEXED_COMPONENT | SLICE
3515 -- | SELECTED_COMPONENT | ATTRIBUTE_REFERENCE
3516 -- | TYPE_CONVERSION | FUNCTION_CALL
3517 -- | CHARACTER_LITERAL
3518
3519 ----------------------
3520 -- 4.1 Direct Name --
3521 ----------------------
3522
3523 -- DIRECT_NAME ::= IDENTIFIER | OPERATOR_SYMBOL
3524
3525 -----------------
3526 -- 4.1 Prefix --
3527 -----------------
3528
3529 -- PREFIX ::= NAME | IMPLICIT_DEREFERENCE
3530
3531 -------------------------------
3532 -- 4.1 Explicit Dereference --
3533 -------------------------------
3534
3535 -- EXPLICIT_DEREFERENCE ::= NAME . all
3536
3537 -- N_Explicit_Dereference
3538 -- Sloc points to ALL
3539 -- Prefix (Node3)
3540 -- Actual_Designated_Subtype (Node4-Sem)
3541 -- Atomic_Sync_Required (Flag14-Sem)
3542 -- Has_Dereference_Action (Flag13-Sem)
3543 -- plus fields for expression
3544
3545 -------------------------------
3546 -- 4.1 Implicit Dereference --
3547 -------------------------------
3548
3549 -- IMPLICIT_DEREFERENCE ::= NAME
3550
3551 ------------------------------
3552 -- 4.1.1 Indexed Component --
3553 ------------------------------
3554
3555 -- INDEXED_COMPONENT ::= PREFIX (EXPRESSION {, EXPRESSION})
3556
3557 -- Note: the parser may generate this node in some situations where it
3558 -- should be a function call. The semantic pass must correct this
3559 -- misidentification (which is inevitable at the parser level).
3560
3561 -- N_Indexed_Component
3562 -- Sloc contains a copy of the Sloc value of the Prefix
3563 -- Prefix (Node3)
3564 -- Expressions (List1)
3565 -- Generalized_Indexing (Node4-Sem)
3566 -- Atomic_Sync_Required (Flag14-Sem)
3567 -- plus fields for expression
3568
3569 -- Note: if any of the subscripts requires a range check, then the
3570 -- Do_Range_Check flag is set on the corresponding expression, with
3571 -- the index type being determined from the type of the Prefix, which
3572 -- references the array being indexed.
3573
3574 -- Note: in a fully analyzed and expanded indexed component node, and
3575 -- hence in any such node that gigi sees, if the prefix is an access
3576 -- type, then an explicit dereference operation has been inserted.
3577
3578 ------------------
3579 -- 4.1.2 Slice --
3580 ------------------
3581
3582 -- SLICE ::= PREFIX (DISCRETE_RANGE)
3583
3584 -- Note: an implicit subtype is created to describe the resulting
3585 -- type, so that the bounds of this type are the bounds of the slice.
3586
3587 -- N_Slice
3588 -- Sloc points to first token of prefix
3589 -- Prefix (Node3)
3590 -- Discrete_Range (Node4)
3591 -- plus fields for expression
3592
3593 -------------------------------
3594 -- 4.1.3 Selected Component --
3595 -------------------------------
3596
3597 -- SELECTED_COMPONENT ::= PREFIX . SELECTOR_NAME
3598
3599 -- Note: selected components that are semantically expanded names get
3600 -- changed during semantic processing into the separate N_Expanded_Name
3601 -- node. See description of this node in the section on semantic nodes.
3602
3603 -- N_Selected_Component
3604 -- Sloc points to period
3605 -- Prefix (Node3)
3606 -- Selector_Name (Node2)
3607 -- Associated_Node (Node4-Sem)
3608 -- Do_Discriminant_Check (Flag1-Sem)
3609 -- Is_In_Discriminant_Check (Flag11-Sem)
3610 -- Is_Prefixed_Call (Flag17-Sem)
3611 -- Atomic_Sync_Required (Flag14-Sem)
3612 -- plus fields for expression
3613
3614 --------------------------
3615 -- 4.1.3 Selector Name --
3616 --------------------------
3617
3618 -- SELECTOR_NAME ::= IDENTIFIER | CHARACTER_LITERAL | OPERATOR_SYMBOL
3619
3620 --------------------------------
3621 -- 4.1.4 Attribute Reference --
3622 --------------------------------
3623
3624 -- ATTRIBUTE_REFERENCE ::= PREFIX ' ATTRIBUTE_DESIGNATOR
3625
3626 -- Note: the syntax is quite ambiguous at this point. Consider:
3627
3628 -- A'Length (X) X is part of the attribute designator
3629 -- A'Pos (X) X is an explicit actual parameter of function A'Pos
3630 -- A'Class (X) X is the expression of a type conversion
3631
3632 -- It would be possible for the parser to distinguish these cases
3633 -- by looking at the attribute identifier. However, that would mean
3634 -- more work in introducing new implementation defined attributes,
3635 -- and also it would mean that special processing for attributes
3636 -- would be scattered around, instead of being centralized in the
3637 -- semantic routine that handles an N_Attribute_Reference node.
3638 -- Consequently, the parser in all the above cases stores the
3639 -- expression (X in these examples) as a single element list in
3640 -- in the Expressions field of the N_Attribute_Reference node.
3641
3642 -- Similarly, for attributes like Max which take two arguments,
3643 -- we store the two arguments as a two element list in the
3644 -- Expressions field. Of course it is clear at parse time that
3645 -- this case is really a function call with an attribute as the
3646 -- prefix, but it turns out to be convenient to handle the two
3647 -- argument case in a similar manner to the one argument case,
3648 -- and indeed in general the parser will accept any number of
3649 -- expressions in this position and store them as a list in the
3650 -- attribute reference node. This allows for future addition of
3651 -- attributes that take more than two arguments.
3652
3653 -- Note: named associates are not permitted in function calls where
3654 -- the function is an attribute (see RM 6.4(3)) so it is legitimate
3655 -- to skip the normal subprogram argument processing.
3656
3657 -- Note: for the attributes whose designators are technically keywords,
3658 -- i.e. digits, access, delta, range, the Attribute_Name field contains
3659 -- the corresponding name, even though no identifier is involved.
3660
3661 -- Note: the generated code may contain stream attributes applied to
3662 -- limited types for which no stream routines exist officially. In such
3663 -- case, the result is to use the stream attribute for the underlying
3664 -- full type, or in the case of a protected type, the components
3665 -- (including any discriminants) are merely streamed in order.
3666
3667 -- See Exp_Attr for a complete description of which attributes are
3668 -- passed onto Gigi, and which are handled entirely by the front end.
3669
3670 -- Gigi restriction: For the Pos attribute, the prefix cannot be
3671 -- a non-standard enumeration type or a nonzero/zero semantics
3672 -- boolean type, so the value is simply the stored representation.
3673
3674 -- Gigi requirement: For the Mechanism_Code attribute, if the prefix
3675 -- references a subprogram that is a renaming, then the front end must
3676 -- rewrite the attribute to refer directly to the renamed entity.
3677
3678 -- Note: syntactically the prefix of an attribute reference must be a
3679 -- name, and this (somewhat artificial) requirement is enforced by the
3680 -- parser. However, for many attributes, such as 'Valid, it is quite
3681 -- reasonable to apply the attribute to any value, and hence to any
3682 -- expression. Internally in the tree, the prefix is an expression which
3683 -- does not have to be a name, and this is handled fine by the semantic
3684 -- analysis and expansion, and back ends. This arises for the case of
3685 -- attribute references built by the expander (e.g. 'Valid for the case
3686 -- of an implicit validity check).
3687
3688 -- Note: In generated code, the Address and Unrestricted_Access
3689 -- attributes can be applied to any expression, and the meaning is
3690 -- to create an object containing the value (the object is in the
3691 -- current stack frame), and pass the address of this value. If the
3692 -- Must_Be_Byte_Aligned flag is set, then the object whose address
3693 -- is taken must be on a byte (storage unit) boundary, and if it is
3694 -- not (or may not be), then the generated code must create a copy
3695 -- that is byte aligned, and pass the address of this copy.
3696
3697 -- N_Attribute_Reference
3698 -- Sloc points to apostrophe
3699 -- Prefix (Node3) (general expression, see note above)
3700 -- Attribute_Name (Name2) identifier name from attribute designator
3701 -- Expressions (List1) (set to No_List if no associated expressions)
3702 -- Entity (Node4-Sem) used if the attribute yields a type
3703 -- Associated_Node (Node4-Sem)
3704 -- Do_Overflow_Check (Flag17-Sem)
3705 -- Header_Size_Added (Flag11-Sem)
3706 -- Must_Be_Byte_Aligned (Flag14-Sem)
3707 -- Non_Aliased_Prefix (Flag18-Sem)
3708 -- Redundant_Use (Flag13-Sem)
3709
3710 -- plus fields for expression
3711
3712 -- Note: in Modify_Tree_For_C mode, Max and Min attributes are expanded
3713 -- into equivalent if expressions, properly taking care of side effects.
3714
3715 ---------------------------------
3716 -- 4.1.4 Attribute Designator --
3717 ---------------------------------
3718
3719 -- ATTRIBUTE_DESIGNATOR ::=
3720 -- IDENTIFIER [(static_EXPRESSION)]
3721 -- | access | delta | digits
3722
3723 -- There is no explicit node in the tree for an attribute designator.
3724 -- Instead the Attribute_Name and Expressions fields of the parent
3725 -- node (N_Attribute_Reference node) hold the information.
3726
3727 -- Note: if ACCESS, DELTA or DIGITS appears in an attribute
3728 -- designator, then they are treated as identifiers internally
3729 -- rather than the keywords of the same name.
3730
3731 --------------------------------------
3732 -- 4.1.4 Range Attribute Reference --
3733 --------------------------------------
3734
3735 -- RANGE_ATTRIBUTE_REFERENCE ::= PREFIX ' RANGE_ATTRIBUTE_DESIGNATOR
3736
3737 -- A range attribute reference is represented in the tree using the
3738 -- normal N_Attribute_Reference node.
3739
3740 ---------------------------------------
3741 -- 4.1.4 Range Attribute Designator --
3742 ---------------------------------------
3743
3744 -- RANGE_ATTRIBUTE_DESIGNATOR ::= Range [(static_EXPRESSION)]
3745
3746 -- A range attribute designator is represented in the tree using the
3747 -- normal N_Attribute_Reference node.
3748
3749 --------------------
3750 -- 4.3 Aggregate --
3751 --------------------
3752
3753 -- AGGREGATE ::=
3754 -- RECORD_AGGREGATE | EXTENSION_AGGREGATE | ARRAY_AGGREGATE
3755
3756 -----------------------------
3757 -- 4.3.1 Record Aggregate --
3758 -----------------------------
3759
3760 -- RECORD_AGGREGATE ::= (RECORD_COMPONENT_ASSOCIATION_LIST)
3761
3762 -- N_Aggregate
3763 -- Sloc points to left parenthesis
3764 -- Expressions (List1) (set to No_List if none or null record case)
3765 -- Component_Associations (List2) (set to No_List if none)
3766 -- Null_Record_Present (Flag17)
3767 -- Aggregate_Bounds (Node3-Sem)
3768 -- Associated_Node (Node4-Sem)
3769 -- Compile_Time_Known_Aggregate (Flag18-Sem)
3770 -- Expansion_Delayed (Flag11-Sem)
3771 -- Has_Self_Reference (Flag13-Sem)
3772 -- plus fields for expression
3773
3774 -- Note: this structure is used for both record and array aggregates
3775 -- since the two cases are not separable by the parser. The parser
3776 -- makes no attempt to enforce consistency here, so it is up to the
3777 -- semantic phase to make sure that the aggregate is consistent (i.e.
3778 -- that it is not a "half-and-half" case that mixes record and array
3779 -- syntax. In particular, for a record aggregate, the expressions
3780 -- field will be set if there are positional associations.
3781
3782 -- Note: N_Aggregate is not used for all aggregates; in particular,
3783 -- there is a separate node kind for extension aggregates.
3784
3785 -- Note: gigi/gcc can handle array aggregates correctly providing that
3786 -- they are entirely positional, and the array subtype involved has a
3787 -- known at compile time length and is not bit packed, or a convention
3788 -- Fortran array with more than one dimension. If these conditions
3789 -- are not met, then the front end must translate the aggregate into
3790 -- an appropriate set of assignments into a temporary.
3791
3792 -- Note: for the record aggregate case, gigi/gcc can handle most cases
3793 -- of record aggregates, including those for packed, and rep-claused
3794 -- records, and also variant records, providing that there are no
3795 -- variable length fields whose size is not known at compile time,
3796 -- and providing that the aggregate is presented in fully named form.
3797
3798 -- The other situation in which array aggregates and record aggregates
3799 -- cannot be passed to the back end is if assignment to one or more
3800 -- components itself needs expansion, e.g. in the case of an assignment
3801 -- of an object of a controlled type. In such cases, the front end
3802 -- must expand the aggregate to a series of assignments, and apply
3803 -- the required expansion to the individual assignment statements.
3804
3805 ----------------------------------------------
3806 -- 4.3.1 Record Component Association List --
3807 ----------------------------------------------
3808
3809 -- RECORD_COMPONENT_ASSOCIATION_LIST ::=
3810 -- RECORD_COMPONENT_ASSOCIATION {, RECORD_COMPONENT_ASSOCIATION}
3811 -- | null record
3812
3813 -- There is no explicit node in the tree for a record component
3814 -- association list. Instead the Null_Record_Present flag is set in
3815 -- the parent node for the NULL RECORD case.
3816
3817 ------------------------------------------------------
3818 -- 4.3.1 Record Component Association (also 4.3.3) --
3819 ------------------------------------------------------
3820
3821 -- RECORD_COMPONENT_ASSOCIATION ::=
3822 -- [COMPONENT_CHOICE_LIST =>] EXPRESSION
3823
3824 -- N_Component_Association
3825 -- Sloc points to first selector name
3826 -- Choices (List1)
3827 -- Loop_Actions (List2-Sem)
3828 -- Expression (Node3) (empty if Box_Present)
3829 -- Box_Present (Flag15)
3830 -- Inherited_Discriminant (Flag13)
3831
3832 -- Note: this structure is used for both record component associations
3833 -- and array component associations, since the two cases aren't always
3834 -- separable by the parser. The choices list may represent either a
3835 -- list of selector names in the record aggregate case, or a list of
3836 -- discrete choices in the array aggregate case or an N_Others_Choice
3837 -- node (which appears as a singleton list). Box_Present gives support
3838 -- to Ada 2005 (AI-287).
3839
3840 ----------------------------------
3841 -- 4.3.1 Component Choice List --
3842 ----------------------------------
3843
3844 -- COMPONENT_CHOICE_LIST ::=
3845 -- component_SELECTOR_NAME {| component_SELECTOR_NAME}
3846 -- | others
3847
3848 -- The entries of a component choice list appear in the Choices list of
3849 -- the associated N_Component_Association, as either selector names, or
3850 -- as an N_Others_Choice node.
3851
3852 --------------------------------
3853 -- 4.3.2 Extension Aggregate --
3854 --------------------------------
3855
3856 -- EXTENSION_AGGREGATE ::=
3857 -- (ANCESTOR_PART with RECORD_COMPONENT_ASSOCIATION_LIST)
3858
3859 -- Note: extension aggregates are not permitted in Ada 83 mode
3860
3861 -- N_Extension_Aggregate
3862 -- Sloc points to left parenthesis
3863 -- Ancestor_Part (Node3)
3864 -- Associated_Node (Node4-Sem)
3865 -- Expressions (List1) (set to No_List if none or null record case)
3866 -- Component_Associations (List2) (set to No_List if none)
3867 -- Null_Record_Present (Flag17)
3868 -- Expansion_Delayed (Flag11-Sem)
3869 -- Has_Self_Reference (Flag13-Sem)
3870 -- plus fields for expression
3871
3872 --------------------------
3873 -- 4.3.2 Ancestor Part --
3874 --------------------------
3875
3876 -- ANCESTOR_PART ::= EXPRESSION | SUBTYPE_MARK
3877
3878 ----------------------------
3879 -- 4.3.3 Array Aggregate --
3880 ----------------------------
3881
3882 -- ARRAY_AGGREGATE ::=
3883 -- POSITIONAL_ARRAY_AGGREGATE | NAMED_ARRAY_AGGREGATE
3884
3885 ---------------------------------------
3886 -- 4.3.3 Positional Array Aggregate --
3887 ---------------------------------------
3888
3889 -- POSITIONAL_ARRAY_AGGREGATE ::=
3890 -- (EXPRESSION, EXPRESSION {, EXPRESSION})
3891 -- | (EXPRESSION {, EXPRESSION}, others => EXPRESSION)
3892
3893 -- See Record_Aggregate (4.3.1) for node structure
3894
3895 ----------------------------------
3896 -- 4.3.3 Named Array Aggregate --
3897 ----------------------------------
3898
3899 -- NAMED_ARRAY_AGGREGATE ::=
3900 -- | (ARRAY_COMPONENT_ASSOCIATION {, ARRAY_COMPONENT_ASSOCIATION})
3901
3902 -- See Record_Aggregate (4.3.1) for node structure
3903
3904 ----------------------------------------
3905 -- 4.3.3 Array Component Association --
3906 ----------------------------------------
3907
3908 -- ARRAY_COMPONENT_ASSOCIATION ::=
3909 -- DISCRETE_CHOICE_LIST => EXPRESSION
3910
3911 -- See Record_Component_Association (4.3.1) for node structure
3912
3913 --------------------------------------------------
3914 -- 4.4 Expression/Relation/Term/Factor/Primary --
3915 --------------------------------------------------
3916
3917 -- EXPRESSION ::=
3918 -- RELATION {LOGICAL_OPERATOR RELATION}
3919
3920 -- CHOICE_EXPRESSION ::=
3921 -- CHOICE_RELATION {LOGICAL_OPERATOR CHOICE_RELATION}
3922
3923 -- CHOICE_RELATION ::=
3924 -- SIMPLE_EXPRESSION [RELATIONAL_OPERATOR SIMPLE_EXPRESSION]
3925
3926 -- RELATION ::=
3927 -- SIMPLE_EXPRESSION [not] in MEMBERSHIP_CHOICE_LIST
3928 -- | RAISE_EXPRESSION
3929
3930 -- MEMBERSHIP_CHOICE_LIST ::=
3931 -- MEMBERSHIP_CHOICE {'|' MEMBERSHIP CHOICE}
3932
3933 -- MEMBERSHIP_CHOICE ::=
3934 -- CHOICE_EXPRESSION | RANGE | SUBTYPE_MARK
3935
3936 -- LOGICAL_OPERATOR ::= and | and then | or | or else | xor
3937
3938 -- SIMPLE_EXPRESSION ::=
3939 -- [UNARY_ADDING_OPERATOR] TERM {BINARY_ADDING_OPERATOR TERM}
3940
3941 -- TERM ::= FACTOR {MULTIPLYING_OPERATOR FACTOR}
3942
3943 -- FACTOR ::= PRIMARY [** PRIMARY] | abs PRIMARY | not PRIMARY
3944
3945 -- No nodes are generated for any of these constructs. Instead, the
3946 -- node for the operator appears directly. When we refer to an
3947 -- expression in this description, we mean any of the possible
3948 -- constituent components of an expression (e.g. identifier is
3949 -- an example of an expression).
3950
3951 -- Note: the above syntax is that Ada 2012 syntax which restricts
3952 -- choice relations to simple expressions to avoid ambiguities in
3953 -- some contexts with set membership notation. It has been decided
3954 -- that in retrospect, the Ada 95 change allowing general expressions
3955 -- in this context was a mistake, so we have reverted to the above
3956 -- syntax in Ada 95 and Ada 2005 modes (the restriction to simple
3957 -- expressions was there in Ada 83 from the start).
3958
3959 ------------------
3960 -- 4.4 Primary --
3961 ------------------
3962
3963 -- PRIMARY ::=
3964 -- NUMERIC_LITERAL | null
3965 -- | STRING_LITERAL | AGGREGATE
3966 -- | NAME | QUALIFIED_EXPRESSION
3967 -- | ALLOCATOR | (EXPRESSION)
3968
3969 -- Usually there is no explicit node in the tree for primary. Instead
3970 -- the constituent (e.g. AGGREGATE) appears directly. There are two
3971 -- exceptions. First, there is an explicit node for a null primary.
3972
3973 -- N_Null
3974 -- Sloc points to NULL
3975 -- plus fields for expression
3976
3977 -- Second, the case of (EXPRESSION) is handled specially. Ada requires
3978 -- that the parser keep track of which subexpressions are enclosed
3979 -- in parentheses, and how many levels of parentheses are used. This
3980 -- information is required for optimization purposes, and also for
3981 -- some semantic checks (e.g. (((1))) in a procedure spec does not
3982 -- conform with ((((1)))) in the body).
3983
3984 -- The parentheses are recorded by keeping a Paren_Count field in every
3985 -- subexpression node (it is actually present in all nodes, but only
3986 -- used in subexpression nodes). This count records the number of
3987 -- levels of parentheses. If the number of levels in the source exceeds
3988 -- the maximum accommodated by this count, then the count is simply left
3989 -- at the maximum value. This means that there are some pathological
3990 -- cases of failure to detect conformance failures (e.g. an expression
3991 -- with 500 levels of parens will conform with one with 501 levels),
3992 -- but we do not need to lose sleep over this.
3993
3994 -- Historical note: in versions of GNAT prior to 1.75, there was a node
3995 -- type N_Parenthesized_Expression used to accurately record unlimited
3996 -- numbers of levels of parentheses. However, it turned out to be a
3997 -- real nuisance to have to take into account the possible presence of
3998 -- this node during semantic analysis, since basically parentheses have
3999 -- zero relevance to semantic analysis.
4000
4001 -- Note: the level of parentheses always present in things like
4002 -- aggregates does not count, only the parentheses in the primary
4003 -- (EXPRESSION) affect the setting of the Paren_Count field.
4004
4005 -- 2nd Note: the contents of the Expression field must be ignored (i.e.
4006 -- treated as though it were Empty) if No_Initialization is set True.
4007
4008 --------------------------------------
4009 -- 4.5 Short Circuit Control Forms --
4010 --------------------------------------
4011
4012 -- EXPRESSION ::=
4013 -- RELATION {and then RELATION} | RELATION {or else RELATION}
4014
4015 -- Gigi restriction: For both these control forms, the operand and
4016 -- result types are always Standard.Boolean. The expander inserts the
4017 -- required conversion operations where needed to ensure this is the
4018 -- case.
4019
4020 -- N_And_Then
4021 -- Sloc points to AND of AND THEN
4022 -- Left_Opnd (Node2)
4023 -- Right_Opnd (Node3)
4024 -- Actions (List1-Sem)
4025 -- plus fields for expression
4026
4027 -- N_Or_Else
4028 -- Sloc points to OR of OR ELSE
4029 -- Left_Opnd (Node2)
4030 -- Right_Opnd (Node3)
4031 -- Actions (List1-Sem)
4032 -- plus fields for expression
4033
4034 -- Note: The Actions field is used to hold actions associated with
4035 -- the right hand operand. These have to be treated specially since
4036 -- they are not unconditionally executed. See Insert_Actions for a
4037 -- more detailed description of how these actions are handled.
4038
4039 ---------------------------
4040 -- 4.5 Membership Tests --
4041 ---------------------------
4042
4043 -- RELATION ::=
4044 -- SIMPLE_EXPRESSION [not] in MEMBERSHIP_CHOICE_LIST
4045
4046 -- MEMBERSHIP_CHOICE_LIST ::=
4047 -- MEMBERSHIP_CHOICE {'|' MEMBERSHIP CHOICE}
4048
4049 -- MEMBERSHIP_CHOICE ::=
4050 -- CHOICE_EXPRESSION | RANGE | SUBTYPE_MARK
4051
4052 -- Note: although the grammar above allows only a range or a subtype
4053 -- mark, the parser in fact will accept any simple expression in place
4054 -- of a subtype mark. This means that the semantic analyzer must be able
4055 -- to deal with, and diagnose a simple expression other than a name for
4056 -- the right operand. This simplifies error recovery in the parser.
4057
4058 -- The Alternatives field below is present only if there is more than
4059 -- one Membership_Choice present (which is legitimate only in Ada 2012
4060 -- mode) in which case Right_Opnd is Empty, and Alternatives contains
4061 -- the list of choices. In the tree passed to the back end, Alternatives
4062 -- is always No_List, and Right_Opnd is set (i.e. the expansion circuit
4063 -- expands out the complex set membership case using simple membership
4064 -- and equality operations).
4065
4066 -- Should we rename Alternatives here to Membership_Choices ???
4067
4068 -- N_In
4069 -- Sloc points to IN
4070 -- Left_Opnd (Node2)
4071 -- Right_Opnd (Node3)
4072 -- Alternatives (List4) (set to No_List if only one set alternative)
4073 -- No_Minimize_Eliminate (Flag17)
4074 -- plus fields for expression
4075
4076 -- N_Not_In
4077 -- Sloc points to NOT of NOT IN
4078 -- Left_Opnd (Node2)
4079 -- Right_Opnd (Node3)
4080 -- Alternatives (List4) (set to No_List if only one set alternative)
4081 -- No_Minimize_Eliminate (Flag17)
4082 -- plus fields for expression
4083
4084 --------------------
4085 -- 4.5 Operators --
4086 --------------------
4087
4088 -- LOGICAL_OPERATOR ::= and | or | xor
4089
4090 -- RELATIONAL_OPERATOR ::= = | /= | < | <= | > | >=
4091
4092 -- BINARY_ADDING_OPERATOR ::= + | - | &
4093
4094 -- UNARY_ADDING_OPERATOR ::= + | -
4095
4096 -- MULTIPLYING_OPERATOR ::= * | / | mod | rem
4097
4098 -- HIGHEST_PRECEDENCE_OPERATOR ::= ** | abs | not
4099
4100 -- Sprint syntax if Treat_Fixed_As_Integer is set:
4101
4102 -- x #* y
4103 -- x #/ y
4104 -- x #mod y
4105 -- x #rem y
4106
4107 -- Gigi restriction: For * / mod rem with fixed-point operands, Gigi
4108 -- will only be given nodes with the Treat_Fixed_As_Integer flag set.
4109 -- All handling of smalls for multiplication and division is handled
4110 -- by the front end (mod and rem result only from expansion). Gigi
4111 -- thus never needs to worry about small values (for other operators
4112 -- operating on fixed-point, e.g. addition, the small value does not
4113 -- have any semantic effect anyway, these are always integer operations.
4114
4115 -- Gigi restriction: For all operators taking Boolean operands, the
4116 -- type is always Standard.Boolean. The expander inserts the required
4117 -- conversion operations where needed to ensure this is the case.
4118
4119 -- N_Op_And
4120 -- Sloc points to AND
4121 -- Do_Length_Check (Flag4-Sem)
4122 -- plus fields for binary operator
4123 -- plus fields for expression
4124
4125 -- N_Op_Or
4126 -- Sloc points to OR
4127 -- Do_Length_Check (Flag4-Sem)
4128 -- plus fields for binary operator
4129 -- plus fields for expression
4130
4131 -- N_Op_Xor
4132 -- Sloc points to XOR
4133 -- Do_Length_Check (Flag4-Sem)
4134 -- plus fields for binary operator
4135 -- plus fields for expression
4136
4137 -- N_Op_Eq
4138 -- Sloc points to =
4139 -- plus fields for binary operator
4140 -- plus fields for expression
4141
4142 -- N_Op_Ne
4143 -- Sloc points to /=
4144 -- plus fields for binary operator
4145 -- plus fields for expression
4146
4147 -- N_Op_Lt
4148 -- Sloc points to <
4149 -- plus fields for binary operator
4150 -- plus fields for expression
4151
4152 -- N_Op_Le
4153 -- Sloc points to <=
4154 -- plus fields for binary operator
4155 -- plus fields for expression
4156
4157 -- N_Op_Gt
4158 -- Sloc points to >
4159 -- plus fields for binary operator
4160 -- plus fields for expression
4161
4162 -- N_Op_Ge
4163 -- Sloc points to >=
4164 -- plus fields for binary operator
4165 -- plus fields for expression
4166
4167 -- N_Op_Add
4168 -- Sloc points to + (binary)
4169 -- plus fields for binary operator
4170 -- plus fields for expression
4171
4172 -- N_Op_Subtract
4173 -- Sloc points to - (binary)
4174 -- plus fields for binary operator
4175 -- plus fields for expression
4176
4177 -- N_Op_Concat
4178 -- Sloc points to &
4179 -- Is_Component_Left_Opnd (Flag13-Sem)
4180 -- Is_Component_Right_Opnd (Flag14-Sem)
4181 -- plus fields for binary operator
4182 -- plus fields for expression
4183
4184 -- N_Op_Multiply
4185 -- Sloc points to *
4186 -- Treat_Fixed_As_Integer (Flag14-Sem)
4187 -- Rounded_Result (Flag18-Sem)
4188 -- plus fields for binary operator
4189 -- plus fields for expression
4190
4191 -- N_Op_Divide
4192 -- Sloc points to /
4193 -- Treat_Fixed_As_Integer (Flag14-Sem)
4194 -- Do_Division_Check (Flag13-Sem)
4195 -- Rounded_Result (Flag18-Sem)
4196 -- plus fields for binary operator
4197 -- plus fields for expression
4198
4199 -- N_Op_Mod
4200 -- Sloc points to MOD
4201 -- Treat_Fixed_As_Integer (Flag14-Sem)
4202 -- Do_Division_Check (Flag13-Sem)
4203 -- plus fields for binary operator
4204 -- plus fields for expression
4205
4206 -- N_Op_Rem
4207 -- Sloc points to REM
4208 -- Treat_Fixed_As_Integer (Flag14-Sem)
4209 -- Do_Division_Check (Flag13-Sem)
4210 -- plus fields for binary operator
4211 -- plus fields for expression
4212
4213 -- N_Op_Expon
4214 -- Is_Power_Of_2_For_Shift (Flag13-Sem)
4215 -- Sloc points to **
4216 -- plus fields for binary operator
4217 -- plus fields for expression
4218
4219 -- N_Op_Plus
4220 -- Sloc points to + (unary)
4221 -- plus fields for unary operator
4222 -- plus fields for expression
4223
4224 -- N_Op_Minus
4225 -- Sloc points to - (unary)
4226 -- plus fields for unary operator
4227 -- plus fields for expression
4228
4229 -- N_Op_Abs
4230 -- Sloc points to ABS
4231 -- plus fields for unary operator
4232 -- plus fields for expression
4233
4234 -- N_Op_Not
4235 -- Sloc points to NOT
4236 -- plus fields for unary operator
4237 -- plus fields for expression
4238
4239 -- See also shift operators in section B.2
4240
4241 -- Note on fixed-point operations passed to Gigi: For adding operators,
4242 -- the semantics is to treat these simply as integer operations, with
4243 -- the small values being ignored (the bounds are already stored in
4244 -- units of small, so that constraint checking works as usual). For the
4245 -- case of multiply/divide/rem/mod operations, Gigi will only see fixed
4246 -- point operands if the Treat_Fixed_As_Integer flag is set and will
4247 -- thus treat these nodes in identical manner, ignoring small values.
4248
4249 -- Note on overflow handling: When the overflow checking mode is set to
4250 -- MINIMIZED or ELIMINATED, nodes for signed arithmetic operations may
4251 -- be modified to use a larger type for the operands and result. In
4252 -- the case where the computed range exceeds that of Long_Long_Integer,
4253 -- and we are running in ELIMINATED mode, the operator node will be
4254 -- changed to be a call to the appropriate routine in System.Bignums.
4255
4256 -- Note: In Modify_Tree_For_C mode, we do not generate an N_Op_Mod node
4257 -- for signed integer types (since there is no equivalent operator in
4258 -- C). Instead we rewrite such an operation in terms of REM (which is
4259 -- % in C) and other C-available operators.
4260
4261 ------------------------------------
4262 -- 4.5.7 Conditional Expressions --
4263 ------------------------------------
4264
4265 -- CONDITIONAL_EXPRESSION ::= IF_EXPRESSION | CASE_EXPRESSION
4266
4267 --------------------------
4268 -- 4.5.7 If Expression --
4269 ----------------------------
4270
4271 -- IF_EXPRESSION ::=
4272 -- if CONDITION then DEPENDENT_EXPRESSION
4273 -- {elsif CONDITION then DEPENDENT_EXPRESSION}
4274 -- [else DEPENDENT_EXPRESSION]
4275
4276 -- DEPENDENT_EXPRESSION ::= EXPRESSION
4277
4278 -- Note: if we have (IF x1 THEN x2 ELSIF x3 THEN x4 ELSE x5) then it
4279 -- is represented as (IF x1 THEN x2 ELSE (IF x3 THEN x4 ELSE x5)) and
4280 -- the Is_Elsif flag is set on the inner if expression.
4281
4282 -- N_If_Expression
4283 -- Sloc points to IF or ELSIF keyword
4284 -- Expressions (List1)
4285 -- Then_Actions (List2-Sem)
4286 -- Else_Actions (List3-Sem)
4287 -- Is_Elsif (Flag13) (set if comes from ELSIF)
4288 -- Do_Overflow_Check (Flag17-Sem)
4289 -- plus fields for expression
4290
4291 -- Expressions here is a three-element list, whose first element is the
4292 -- condition, the second element is the dependent expression after THEN
4293 -- and the third element is the dependent expression after the ELSE
4294 -- (explicitly set to True if missing).
4295
4296 -- Note: the Then_Actions and Else_Actions fields are always set to
4297 -- No_List in the tree passed to the back end. These are used only
4298 -- for temporary processing purposes in the expander. Even though they
4299 -- are semantic fields, their parent pointers are set because analysis
4300 -- of actions nodes in those lists may generate additional actions that
4301 -- need to know their insertion point (for example for the creation of
4302 -- transient scopes).
4303
4304 -- Note: in the tree passed to the back end, if the result type is
4305 -- an unconstrained array, the if expression can only appears in the
4306 -- initializing expression of an object declaration (this avoids the
4307 -- back end having to create a variable length temporary on the fly).
4308
4309 ----------------------------
4310 -- 4.5.7 Case Expression --
4311 ----------------------------
4312
4313 -- CASE_EXPRESSION ::=
4314 -- case SELECTING_EXPRESSION is
4315 -- CASE_EXPRESSION_ALTERNATIVE
4316 -- {,CASE_EXPRESSION_ALTERNATIVE}
4317
4318 -- Note that the Alternatives cannot include pragmas (this contrasts
4319 -- with the situation of case statements where pragmas are allowed).
4320
4321 -- N_Case_Expression
4322 -- Sloc points to CASE
4323 -- Expression (Node3) (the selecting expression)
4324 -- Alternatives (List4) (the case expression alternatives)
4325 -- Do_Overflow_Check (Flag17-Sem)
4326
4327 ----------------------------------------
4328 -- 4.5.7 Case Expression Alternative --
4329 ----------------------------------------
4330
4331 -- CASE_EXPRESSION_ALTERNATIVE ::=
4332 -- when DISCRETE_CHOICE_LIST =>
4333 -- DEPENDENT_EXPRESSION
4334
4335 -- N_Case_Expression_Alternative
4336 -- Sloc points to WHEN
4337 -- Actions (List1)
4338 -- Discrete_Choices (List4)
4339 -- Expression (Node3)
4340 -- Has_SP_Choice (Flag15-Sem)
4341
4342 -- Note: The Actions field temporarily holds any actions associated with
4343 -- evaluation of the Expression. During expansion of the case expression
4344 -- these actions are wrapped into an N_Expressions_With_Actions node
4345 -- replacing the original expression.
4346
4347 -- Note: this node never appears in the tree passed to the back end,
4348 -- since the expander converts case expressions into case statements.
4349
4350 ---------------------------------
4351 -- 4.5.9 Quantified Expression --
4352 ---------------------------------
4353
4354 -- QUANTIFIED_EXPRESSION ::=
4355 -- for QUANTIFIER LOOP_PARAMETER_SPECIFICATION => PREDICATE
4356 -- | for QUANTIFIER ITERATOR_SPECIFICATION => PREDICATE
4357 --
4358 -- QUANTIFIER ::= all | some
4359
4360 -- At most one of (Iterator_Specification, Loop_Parameter_Specification)
4361 -- is present at a time, in which case the other one is empty.
4362
4363 -- N_Quantified_Expression
4364 -- Sloc points to FOR
4365 -- Iterator_Specification (Node2)
4366 -- Loop_Parameter_Specification (Node4)
4367 -- Condition (Node1)
4368 -- All_Present (Flag15)
4369
4370 --------------------------
4371 -- 4.6 Type Conversion --
4372 --------------------------
4373
4374 -- TYPE_CONVERSION ::=
4375 -- SUBTYPE_MARK (EXPRESSION) | SUBTYPE_MARK (NAME)
4376
4377 -- In the (NAME) case, the name is stored as the expression
4378
4379 -- Note: the parser never generates a type conversion node, since it
4380 -- looks like an indexed component which is generated by preference.
4381 -- The semantic pass must correct this misidentification.
4382
4383 -- Gigi handles conversions that involve no change in the root type,
4384 -- and also all conversions from integer to floating-point types.
4385 -- Conversions from floating-point to integer are only handled in
4386 -- the case where Float_Truncate flag set. Other conversions from
4387 -- floating-point to integer (involving rounding) and all conversions
4388 -- involving fixed-point types are handled by the expander.
4389
4390 -- Sprint syntax if Float_Truncate set: X^(Y)
4391 -- Sprint syntax if Conversion_OK set X?(Y)
4392 -- Sprint syntax if both flags set X?^(Y)
4393
4394 -- Note: If either the operand or result type is fixed-point, Gigi will
4395 -- only see a type conversion node with Conversion_OK set. The front end
4396 -- takes care of all handling of small's for fixed-point conversions.
4397
4398 -- N_Type_Conversion
4399 -- Sloc points to first token of subtype mark
4400 -- Subtype_Mark (Node4)
4401 -- Expression (Node3)
4402 -- Do_Discriminant_Check (Flag1-Sem)
4403 -- Do_Length_Check (Flag4-Sem)
4404 -- Float_Truncate (Flag11-Sem)
4405 -- Do_Tag_Check (Flag13-Sem)
4406 -- Conversion_OK (Flag14-Sem)
4407 -- Do_Overflow_Check (Flag17-Sem)
4408 -- Rounded_Result (Flag18-Sem)
4409 -- plus fields for expression
4410
4411 -- Note: if a range check is required, then the Do_Range_Check flag
4412 -- is set in the Expression with the check being done against the
4413 -- target type range (after the base type conversion, if any).
4414
4415 -------------------------------
4416 -- 4.7 Qualified Expression --
4417 -------------------------------
4418
4419 -- QUALIFIED_EXPRESSION ::=
4420 -- SUBTYPE_MARK ' (EXPRESSION) | SUBTYPE_MARK ' AGGREGATE
4421
4422 -- Note: the parentheses in the (EXPRESSION) case are deemed to enclose
4423 -- the expression, so the Expression field of this node always points
4424 -- to a parenthesized expression in this case (i.e. Paren_Count will
4425 -- always be non-zero for the referenced expression if it is not an
4426 -- aggregate).
4427
4428 -- N_Qualified_Expression
4429 -- Sloc points to apostrophe
4430 -- Subtype_Mark (Node4)
4431 -- Expression (Node3) expression or aggregate
4432 -- plus fields for expression
4433
4434 --------------------
4435 -- 4.8 Allocator --
4436 --------------------
4437
4438 -- ALLOCATOR ::=
4439 -- new [SUBPOOL_SPECIFICATION] SUBTYPE_INDICATION
4440 -- | new [SUBPOOL_SPECIFICATION] QUALIFIED_EXPRESSION
4441 --
4442 -- SUBPOOL_SPECIFICATION ::= (subpool_handle_NAME)
4443
4444 -- Sprint syntax (when storage pool present)
4445 -- new xxx (storage_pool = pool)
4446 -- or
4447 -- new (subpool) xxx (storage_pool = pool)
4448
4449 -- N_Allocator
4450 -- Sloc points to NEW
4451 -- Expression (Node3) subtype indication or qualified expression
4452 -- Subpool_Handle_Name (Node4) (set to Empty if not present)
4453 -- Storage_Pool (Node1-Sem)
4454 -- Procedure_To_Call (Node2-Sem)
4455 -- Null_Exclusion_Present (Flag11)
4456 -- No_Initialization (Flag13-Sem)
4457 -- Is_Static_Coextension (Flag14-Sem)
4458 -- Do_Storage_Check (Flag17-Sem)
4459 -- Is_Dynamic_Coextension (Flag18-Sem)
4460 -- plus fields for expression
4461
4462 -- Note: like all nodes, the N_Allocator has the Comes_From_Source flag.
4463 -- This flag has a special function in conjunction with the restriction
4464 -- No_Implicit_Heap_Allocations, which will be triggered if this flag
4465 -- is not set. This means that if a source allocator is replaced with
4466 -- a constructed allocator, the Comes_From_Source flag should be copied
4467 -- to the newly created allocator.
4468
4469 ---------------------------------
4470 -- 5.1 Sequence Of Statements --
4471 ---------------------------------
4472
4473 -- SEQUENCE_OF_STATEMENTS ::= STATEMENT {STATEMENT}
4474
4475 -- Note: Although the parser will not accept a declaration as a
4476 -- statement, the semantic analyzer may insert declarations (e.g.
4477 -- declarations of implicit types needed for execution of other
4478 -- statements) into a sequence of statements, so the code generator
4479 -- should be prepared to accept a declaration where a statement is
4480 -- expected. Note also that pragmas can appear as statements.
4481
4482 --------------------
4483 -- 5.1 Statement --
4484 --------------------
4485
4486 -- STATEMENT ::=
4487 -- {LABEL} SIMPLE_STATEMENT | {LABEL} COMPOUND_STATEMENT
4488
4489 -- There is no explicit node in the tree for a statement. Instead, the
4490 -- individual statement appears directly. Labels are treated as a
4491 -- kind of statement, i.e. they are linked into a statement list at
4492 -- the point they appear, so the labeled statement appears following
4493 -- the label or labels in the statement list.
4494
4495 ---------------------------
4496 -- 5.1 Simple Statement --
4497 ---------------------------
4498
4499 -- SIMPLE_STATEMENT ::= NULL_STATEMENT
4500 -- | ASSIGNMENT_STATEMENT | EXIT_STATEMENT
4501 -- | GOTO_STATEMENT | PROCEDURE_CALL_STATEMENT
4502 -- | SIMPLE_RETURN_STATEMENT | ENTRY_CALL_STATEMENT
4503 -- | REQUEUE_STATEMENT | DELAY_STATEMENT
4504 -- | ABORT_STATEMENT | RAISE_STATEMENT
4505 -- | CODE_STATEMENT
4506
4507 -----------------------------
4508 -- 5.1 Compound Statement --
4509 -----------------------------
4510
4511 -- COMPOUND_STATEMENT ::=
4512 -- IF_STATEMENT | CASE_STATEMENT
4513 -- | LOOP_STATEMENT | BLOCK_STATEMENT
4514 -- | EXTENDED_RETURN_STATEMENT
4515 -- | ACCEPT_STATEMENT | SELECT_STATEMENT
4516
4517 -------------------------
4518 -- 5.1 Null Statement --
4519 -------------------------
4520
4521 -- NULL_STATEMENT ::= null;
4522
4523 -- N_Null_Statement
4524 -- Sloc points to NULL
4525
4526 ----------------
4527 -- 5.1 Label --
4528 ----------------
4529
4530 -- LABEL ::= <<label_STATEMENT_IDENTIFIER>>
4531
4532 -- Note that the occurrence of a label is not a defining identifier,
4533 -- but rather a referencing occurrence. The defining occurrence is
4534 -- in the implicit label declaration which occurs in the innermost
4535 -- enclosing block.
4536
4537 -- N_Label
4538 -- Sloc points to <<
4539 -- Identifier (Node1) direct name of statement identifier
4540 -- Exception_Junk (Flag8-Sem)
4541
4542 -- Note: Before Ada 2012, a label is always followed by a statement,
4543 -- and this is true in the tree even in Ada 2012 mode (the parser
4544 -- inserts a null statement marked with Comes_From_Source False).
4545
4546 -------------------------------
4547 -- 5.1 Statement Identifier --
4548 -------------------------------
4549
4550 -- STATEMENT_IDENTIFIER ::= DIRECT_NAME
4551
4552 -- The IDENTIFIER of a STATEMENT_IDENTIFIER shall be an identifier
4553 -- (not an OPERATOR_SYMBOL)
4554
4555 -------------------------------
4556 -- 5.2 Assignment Statement --
4557 -------------------------------
4558
4559 -- ASSIGNMENT_STATEMENT ::=
4560 -- variable_NAME := EXPRESSION;
4561
4562 -- N_Assignment_Statement
4563 -- Sloc points to :=
4564 -- Name (Node2)
4565 -- Expression (Node3)
4566 -- Do_Discriminant_Check (Flag1-Sem)
4567 -- Do_Tag_Check (Flag13-Sem)
4568 -- Do_Length_Check (Flag4-Sem)
4569 -- Forwards_OK (Flag5-Sem)
4570 -- Backwards_OK (Flag6-Sem)
4571 -- No_Ctrl_Actions (Flag7-Sem)
4572 -- Componentwise_Assignment (Flag14-Sem)
4573 -- Suppress_Assignment_Checks (Flag18-Sem)
4574
4575 -- Note: if a range check is required, then the Do_Range_Check flag
4576 -- is set in the Expression (right hand side), with the check being
4577 -- done against the type of the Name (left hand side).
4578
4579 -- Note: the back end places some restrictions on the form of the
4580 -- Expression field. If the object being assigned to is Atomic, then
4581 -- the Expression may not have the form of an aggregate (since this
4582 -- might cause the back end to generate separate assignments). In this
4583 -- case the front end must generate an extra temporary and initialize
4584 -- this temporary as required (the temporary itself is not atomic).
4585
4586 -----------------------
4587 -- 5.3 If Statement --
4588 -----------------------
4589
4590 -- IF_STATEMENT ::=
4591 -- if CONDITION then
4592 -- SEQUENCE_OF_STATEMENTS
4593 -- {elsif CONDITION then
4594 -- SEQUENCE_OF_STATEMENTS}
4595 -- [else
4596 -- SEQUENCE_OF_STATEMENTS]
4597 -- end if;
4598
4599 -- Gigi restriction: This expander ensures that the type of the
4600 -- Condition fields is always Standard.Boolean, even if the type
4601 -- in the source is some non-standard boolean type.
4602
4603 -- N_If_Statement
4604 -- Sloc points to IF
4605 -- Condition (Node1)
4606 -- Then_Statements (List2)
4607 -- Elsif_Parts (List3) (set to No_List if none present)
4608 -- Else_Statements (List4) (set to No_List if no else part present)
4609 -- End_Span (Uint5) (set to Uint_0 if expander generated)
4610 -- From_Conditional_Expression (Flag1-Sem)
4611
4612 -- N_Elsif_Part
4613 -- Sloc points to ELSIF
4614 -- Condition (Node1)
4615 -- Then_Statements (List2)
4616 -- Condition_Actions (List3-Sem)
4617
4618 --------------------
4619 -- 5.3 Condition --
4620 --------------------
4621
4622 -- CONDITION ::= boolean_EXPRESSION
4623
4624 -------------------------
4625 -- 5.4 Case Statement --
4626 -------------------------
4627
4628 -- CASE_STATEMENT ::=
4629 -- case EXPRESSION is
4630 -- CASE_STATEMENT_ALTERNATIVE
4631 -- {CASE_STATEMENT_ALTERNATIVE}
4632 -- end case;
4633
4634 -- Note: the Alternatives can contain pragmas. These only occur at
4635 -- the start of the list, since any pragmas occurring after the first
4636 -- alternative are absorbed into the corresponding statement sequence.
4637
4638 -- N_Case_Statement
4639 -- Sloc points to CASE
4640 -- Expression (Node3)
4641 -- Alternatives (List4)
4642 -- End_Span (Uint5) (set to Uint_0 if expander generated)
4643 -- From_Conditional_Expression (Flag1-Sem)
4644
4645 -- Note: Before Ada 2012, a pragma in a statement sequence is always
4646 -- followed by a statement, and this is true in the tree even in Ada
4647 -- 2012 mode (the parser inserts a null statement marked with the flag
4648 -- Comes_From_Source False).
4649
4650 -------------------------------------
4651 -- 5.4 Case Statement Alternative --
4652 -------------------------------------
4653
4654 -- CASE_STATEMENT_ALTERNATIVE ::=
4655 -- when DISCRETE_CHOICE_LIST =>
4656 -- SEQUENCE_OF_STATEMENTS
4657
4658 -- N_Case_Statement_Alternative
4659 -- Sloc points to WHEN
4660 -- Discrete_Choices (List4)
4661 -- Statements (List3)
4662 -- Has_SP_Choice (Flag15-Sem)
4663
4664 -- Note: in the list of Discrete_Choices, the tree passed to the back
4665 -- end does not have choice entries corresponding to names of statically
4666 -- predicated subtypes. Such entries are always expanded out to the list
4667 -- of equivalent values or ranges. The ASIS tree generated in -gnatct
4668 -- mode does not have this expansion, and has the original choices.
4669
4670 -------------------------
4671 -- 5.5 Loop Statement --
4672 -------------------------
4673
4674 -- LOOP_STATEMENT ::=
4675 -- [loop_STATEMENT_IDENTIFIER :]
4676 -- [ITERATION_SCHEME] loop
4677 -- SEQUENCE_OF_STATEMENTS
4678 -- end loop [loop_IDENTIFIER];
4679
4680 -- Note: The occurrence of a loop label is not a defining identifier
4681 -- but rather a referencing occurrence. The defining occurrence is in
4682 -- the implicit label declaration which occurs in the innermost
4683 -- enclosing block.
4684
4685 -- Note: there is always a loop statement identifier present in the
4686 -- tree, even if none was given in the source. In the case where no loop
4687 -- identifier is given in the source, the parser creates a name of the
4688 -- form _Loop_n, where n is a decimal integer (the two underlines ensure
4689 -- that the loop names created in this manner do not conflict with any
4690 -- user defined identifiers), and the flag Has_Created_Identifier is set
4691 -- to True. The only exception to the rule that all loop statement nodes
4692 -- have identifiers occurs for loops constructed by the expander, and
4693 -- the semantic analyzer will create and supply dummy loop identifiers
4694 -- in these cases.
4695
4696 -- N_Loop_Statement
4697 -- Sloc points to LOOP
4698 -- Identifier (Node1) loop identifier (set to Empty if no identifier)
4699 -- Iteration_Scheme (Node2) (set to Empty if no iteration scheme)
4700 -- Statements (List3)
4701 -- End_Label (Node4)
4702 -- Has_Created_Identifier (Flag15)
4703 -- Is_Null_Loop (Flag16)
4704 -- Suppress_Loop_Warnings (Flag17)
4705
4706 -- Note: the parser fills in the Identifier field if there is an
4707 -- explicit loop identifier. Otherwise the parser leaves this field
4708 -- set to Empty, and then the semantic processing for a loop statement
4709 -- creates an identifier, setting the Has_Created_Identifier flag to
4710 -- True. So after semantic analysis, the Identifier is always set,
4711 -- referencing an identifier whose entity has an Ekind of E_Loop.
4712
4713 ---------------------------
4714 -- 5.5 Iteration Scheme --
4715 ---------------------------
4716
4717 -- ITERATION_SCHEME ::=
4718 -- while CONDITION
4719 -- | for LOOP_PARAMETER_SPECIFICATION
4720 -- | for ITERATOR_SPECIFICATION
4721
4722 -- At most one of (Iterator_Specification, Loop_Parameter_Specification)
4723 -- is present at a time, in which case the other one is empty. Both are
4724 -- empty in the case of a WHILE loop.
4725
4726 -- Gigi restriction: The expander ensures that the type of the Condition
4727 -- field is always Standard.Boolean, even if the type in the source is
4728 -- some non-standard boolean type.
4729
4730 -- N_Iteration_Scheme
4731 -- Sloc points to WHILE or FOR
4732 -- Condition (Node1) (set to Empty if FOR case)
4733 -- Condition_Actions (List3-Sem)
4734 -- Iterator_Specification (Node2) (set to Empty if WHILE case)
4735 -- Loop_Parameter_Specification (Node4) (set to Empty if WHILE case)
4736
4737 ---------------------------------------
4738 -- 5.5 Loop Parameter Specification --
4739 ---------------------------------------
4740
4741 -- LOOP_PARAMETER_SPECIFICATION ::=
4742 -- DEFINING_IDENTIFIER in [reverse] DISCRETE_SUBTYPE_DEFINITION
4743
4744 -- N_Loop_Parameter_Specification
4745 -- Sloc points to first identifier
4746 -- Defining_Identifier (Node1)
4747 -- Reverse_Present (Flag15)
4748 -- Discrete_Subtype_Definition (Node4)
4749
4750 -----------------------------------
4751 -- 5.5.1 Iterator Specification --
4752 -----------------------------------
4753
4754 -- ITERATOR_SPECIFICATION ::=
4755 -- DEFINING_IDENTIFIER in [reverse] NAME
4756 -- | DEFINING_IDENTIFIER [: SUBTYPE_INDICATION] of [reverse] NAME
4757
4758 -- N_Iterator_Specification
4759 -- Sloc points to defining identifier
4760 -- Defining_Identifier (Node1)
4761 -- Name (Node2)
4762 -- Reverse_Present (Flag15)
4763 -- Of_Present (Flag16)
4764 -- Subtype_Indication (Node5)
4765
4766 -- Note: The Of_Present flag distinguishes the two forms
4767
4768 --------------------------
4769 -- 5.6 Block Statement --
4770 --------------------------
4771
4772 -- BLOCK_STATEMENT ::=
4773 -- [block_STATEMENT_IDENTIFIER:]
4774 -- [declare
4775 -- DECLARATIVE_PART]
4776 -- begin
4777 -- HANDLED_SEQUENCE_OF_STATEMENTS
4778 -- end [block_IDENTIFIER];
4779
4780 -- Note that the occurrence of a block identifier is not a defining
4781 -- identifier, but rather a referencing occurrence. The defining
4782 -- occurrence is an E_Block entity declared by the implicit label
4783 -- declaration which occurs in the innermost enclosing block statement
4784 -- or body; the block identifier denotes that E_Block.
4785
4786 -- For block statements that come from source code, there is always a
4787 -- block statement identifier present in the tree, denoting an E_Block.
4788 -- In the case where no block identifier is given in the source,
4789 -- the parser creates a name of the form B_n, where n is a decimal
4790 -- integer, and the flag Has_Created_Identifier is set to True. Blocks
4791 -- constructed by the expander usually have no identifier, and no
4792 -- corresponding entity.
4793
4794 -- Note: the block statement created for an extended return statement
4795 -- has an entity, and this entity is an E_Return_Statement, rather than
4796 -- the usual E_Block.
4797
4798 -- Note: Exception_Junk is set for the wrapping blocks created during
4799 -- local raise optimization (Exp_Ch11.Expand_Local_Exception_Handlers).
4800
4801 -- Note: from a control flow viewpoint, a block statement defines an
4802 -- extended basic block, i.e. the entry of the block dominates every
4803 -- statement in the sequence. When generating new statements with
4804 -- exception handlers in the expander at the end of a sequence that
4805 -- comes from source code, it can be necessary to wrap them all in a
4806 -- block statement in order to expose the implicit control flow to
4807 -- gigi and thus prevent it from issuing bogus control flow warnings.
4808
4809 -- N_Block_Statement
4810 -- Sloc points to DECLARE or BEGIN
4811 -- Identifier (Node1) block direct name (set to Empty if not present)
4812 -- Declarations (List2) (set to No_List if no DECLARE part)
4813 -- Handled_Statement_Sequence (Node4)
4814 -- Cleanup_Actions (List5-Sem)
4815 -- Is_Task_Master (Flag5-Sem)
4816 -- Activation_Chain_Entity (Node3-Sem)
4817 -- Has_Created_Identifier (Flag15)
4818 -- Is_Task_Allocation_Block (Flag6)
4819 -- Is_Asynchronous_Call_Block (Flag7)
4820 -- Exception_Junk (Flag8-Sem)
4821 -- Is_Finalization_Wrapper (Flag9-Sem)
4822
4823 -------------------------
4824 -- 5.7 Exit Statement --
4825 -------------------------
4826
4827 -- EXIT_STATEMENT ::= exit [loop_NAME] [when CONDITION];
4828
4829 -- Gigi restriction: The expander ensures that the type of the Condition
4830 -- field is always Standard.Boolean, even if the type in the source is
4831 -- some non-standard boolean type.
4832
4833 -- N_Exit_Statement
4834 -- Sloc points to EXIT
4835 -- Name (Node2) (set to Empty if no loop name present)
4836 -- Condition (Node1) (set to Empty if no WHEN part present)
4837 -- Next_Exit_Statement (Node3-Sem): Next exit on chain
4838
4839 -------------------------
4840 -- 5.9 Goto Statement --
4841 -------------------------
4842
4843 -- GOTO_STATEMENT ::= goto label_NAME;
4844
4845 -- N_Goto_Statement
4846 -- Sloc points to GOTO
4847 -- Name (Node2)
4848 -- Exception_Junk (Flag8-Sem)
4849
4850 ---------------------------------
4851 -- 6.1 Subprogram Declaration --
4852 ---------------------------------
4853
4854 -- SUBPROGRAM_DECLARATION ::=
4855 -- SUBPROGRAM_SPECIFICATION
4856 -- [ASPECT_SPECIFICATIONS];
4857
4858 -- N_Subprogram_Declaration
4859 -- Sloc points to FUNCTION or PROCEDURE
4860 -- Specification (Node1)
4861 -- Body_To_Inline (Node3-Sem)
4862 -- Corresponding_Body (Node5-Sem)
4863 -- Parent_Spec (Node4-Sem)
4864
4865 ------------------------------------------
4866 -- 6.1 Abstract Subprogram Declaration --
4867 ------------------------------------------
4868
4869 -- ABSTRACT_SUBPROGRAM_DECLARATION ::=
4870 -- SUBPROGRAM_SPECIFICATION is abstract
4871 -- [ASPECT_SPECIFICATIONS];
4872
4873 -- N_Abstract_Subprogram_Declaration
4874 -- Sloc points to ABSTRACT
4875 -- Specification (Node1)
4876
4877 -----------------------------------
4878 -- 6.1 Subprogram Specification --
4879 -----------------------------------
4880
4881 -- SUBPROGRAM_SPECIFICATION ::=
4882 -- [[not] overriding]
4883 -- procedure DEFINING_PROGRAM_UNIT_NAME PARAMETER_PROFILE
4884 -- | [[not] overriding]
4885 -- function DEFINING_DESIGNATOR PARAMETER_AND_RESULT_PROFILE
4886
4887 -- Note: there are no separate nodes for the profiles, instead the
4888 -- information appears directly in the following nodes.
4889
4890 -- N_Function_Specification
4891 -- Sloc points to FUNCTION
4892 -- Defining_Unit_Name (Node1) (the designator)
4893 -- Elaboration_Boolean (Node2-Sem)
4894 -- Parameter_Specifications (List3) (set to No_List if no formal part)
4895 -- Null_Exclusion_Present (Flag11)
4896 -- Result_Definition (Node4) for result subtype
4897 -- Generic_Parent (Node5-Sem)
4898 -- Must_Override (Flag14) set if overriding indicator present
4899 -- Must_Not_Override (Flag15) set if not_overriding indicator present
4900
4901 -- N_Procedure_Specification
4902 -- Sloc points to PROCEDURE
4903 -- Defining_Unit_Name (Node1)
4904 -- Elaboration_Boolean (Node2-Sem)
4905 -- Parameter_Specifications (List3) (set to No_List if no formal part)
4906 -- Generic_Parent (Node5-Sem)
4907 -- Null_Present (Flag13) set for null procedure case (Ada 2005 feature)
4908 -- Must_Override (Flag14) set if overriding indicator present
4909 -- Must_Not_Override (Flag15) set if not_overriding indicator present
4910
4911 -- Note: overriding indicator is an Ada 2005 feature
4912
4913 ---------------------
4914 -- 6.1 Designator --
4915 ---------------------
4916
4917 -- DESIGNATOR ::=
4918 -- [PARENT_UNIT_NAME .] IDENTIFIER | OPERATOR_SYMBOL
4919
4920 -- Designators that are simply identifiers or operator symbols appear
4921 -- directly in the tree in this form. The following node is used only
4922 -- in the case where the designator has a parent unit name component.
4923
4924 -- N_Designator
4925 -- Sloc points to period
4926 -- Name (Node2) holds the parent unit name
4927 -- Identifier (Node1)
4928
4929 -- Note: Name is always non-Empty, since this node is only used for the
4930 -- case where a parent library unit package name is present.
4931
4932 -- Note that the identifier can also be an operator symbol here
4933
4934 ------------------------------
4935 -- 6.1 Defining Designator --
4936 ------------------------------
4937
4938 -- DEFINING_DESIGNATOR ::=
4939 -- DEFINING_PROGRAM_UNIT_NAME | DEFINING_OPERATOR_SYMBOL
4940
4941 -------------------------------------
4942 -- 6.1 Defining Program Unit Name --
4943 -------------------------------------
4944
4945 -- DEFINING_PROGRAM_UNIT_NAME ::=
4946 -- [PARENT_UNIT_NAME .] DEFINING_IDENTIFIER
4947
4948 -- The parent unit name is present only in the case of a child unit name
4949 -- (permissible only for Ada 95 for a library level unit, i.e. a unit
4950 -- at scope level one). If no such name is present, the defining program
4951 -- unit name is represented simply as the defining identifier. In the
4952 -- child unit case, the following node is used to represent the child
4953 -- unit name.
4954
4955 -- N_Defining_Program_Unit_Name
4956 -- Sloc points to period
4957 -- Name (Node2) holds the parent unit name
4958 -- Defining_Identifier (Node1)
4959
4960 -- Note: Name is always non-Empty, since this node is only used for the
4961 -- case where a parent unit name is present.
4962
4963 --------------------------
4964 -- 6.1 Operator Symbol --
4965 --------------------------
4966
4967 -- OPERATOR_SYMBOL ::= STRING_LITERAL
4968
4969 -- Note: the fields of the N_Operator_Symbol node are laid out to match
4970 -- the corresponding fields of an N_Character_Literal node. This allows
4971 -- easy conversion of the operator symbol node into a character literal
4972 -- node in the case where a string constant of the form of an operator
4973 -- symbol is scanned out as such, but turns out semantically to be a
4974 -- string literal that is not an operator. For details see Sinfo.CN.
4975 -- Change_Operator_Symbol_To_String_Literal.
4976
4977 -- N_Operator_Symbol
4978 -- Sloc points to literal
4979 -- Chars (Name1) contains the Name_Id for the operator symbol
4980 -- Strval (Str3) Id of string value. This is used if the operator
4981 -- symbol turns out to be a normal string after all.
4982 -- Entity (Node4-Sem)
4983 -- Associated_Node (Node4-Sem)
4984 -- Has_Private_View (Flag11-Sem) set in generic units.
4985 -- Etype (Node5-Sem)
4986
4987 -- Note: the Strval field may be set to No_String for generated
4988 -- operator symbols that are known not to be string literals
4989 -- semantically.
4990
4991 -----------------------------------
4992 -- 6.1 Defining Operator Symbol --
4993 -----------------------------------
4994
4995 -- DEFINING_OPERATOR_SYMBOL ::= OPERATOR_SYMBOL
4996
4997 -- A defining operator symbol is an entity, which has additional
4998 -- fields depending on the setting of the Ekind field. These
4999 -- additional fields are defined (and access subprograms declared)
5000 -- in package Einfo.
5001
5002 -- Note: N_Defining_Operator_Symbol is an extended node whose fields
5003 -- are deliberately layed out to match the layout of fields in an
5004 -- ordinary N_Operator_Symbol node allowing for easy alteration of
5005 -- an operator symbol node into a defining operator symbol node.
5006 -- See Sinfo.CN.Change_Operator_Symbol_To_Defining_Operator_Symbol
5007 -- for further details.
5008
5009 -- N_Defining_Operator_Symbol
5010 -- Sloc points to literal
5011 -- Chars (Name1) contains the Name_Id for the operator symbol
5012 -- Next_Entity (Node2-Sem)
5013 -- Scope (Node3-Sem)
5014 -- Etype (Node5-Sem)
5015
5016 ----------------------------
5017 -- 6.1 Parameter Profile --
5018 ----------------------------
5019
5020 -- PARAMETER_PROFILE ::= [FORMAL_PART]
5021
5022 ---------------------------------------
5023 -- 6.1 Parameter and Result Profile --
5024 ---------------------------------------
5025
5026 -- PARAMETER_AND_RESULT_PROFILE ::=
5027 -- [FORMAL_PART] return [NULL_EXCLUSION] SUBTYPE_MARK
5028 -- | [FORMAL_PART] return ACCESS_DEFINITION
5029
5030 -- There is no explicit node in the tree for a parameter and result
5031 -- profile. Instead the information appears directly in the parent.
5032
5033 ----------------------
5034 -- 6.1 Formal Part --
5035 ----------------------
5036
5037 -- FORMAL_PART ::=
5038 -- (PARAMETER_SPECIFICATION {; PARAMETER_SPECIFICATION})
5039
5040 ----------------------------------
5041 -- 6.1 Parameter Specification --
5042 ----------------------------------
5043
5044 -- PARAMETER_SPECIFICATION ::=
5045 -- DEFINING_IDENTIFIER_LIST : [ALIASED] MODE [NULL_EXCLUSION]
5046 -- SUBTYPE_MARK [:= DEFAULT_EXPRESSION]
5047 -- | DEFINING_IDENTIFIER_LIST : ACCESS_DEFINITION
5048 -- [:= DEFAULT_EXPRESSION]
5049
5050 -- Although the syntax allows multiple identifiers in the list, the
5051 -- semantics is as though successive specifications were given with
5052 -- identical type definition and expression components. To simplify
5053 -- semantic processing, the parser represents a multiple declaration
5054 -- case as a sequence of single Specifications, using the More_Ids and
5055 -- Prev_Ids flags to preserve the original source form as described
5056 -- in the section on "Handling of Defining Identifier Lists".
5057
5058 -- ALIASED can only be present in Ada 2012 mode
5059
5060 -- N_Parameter_Specification
5061 -- Sloc points to first identifier
5062 -- Defining_Identifier (Node1)
5063 -- Aliased_Present (Flag4)
5064 -- In_Present (Flag15)
5065 -- Out_Present (Flag17)
5066 -- Null_Exclusion_Present (Flag11)
5067 -- Parameter_Type (Node2) subtype mark or access definition
5068 -- Expression (Node3) (set to Empty if no default expression present)
5069 -- Do_Accessibility_Check (Flag13-Sem)
5070 -- More_Ids (Flag5) (set to False if no more identifiers in list)
5071 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
5072 -- Default_Expression (Node5-Sem)
5073
5074 ---------------
5075 -- 6.1 Mode --
5076 ---------------
5077
5078 -- MODE ::= [in] | in out | out
5079
5080 -- There is no explicit node in the tree for the Mode. Instead the
5081 -- In_Present and Out_Present flags are set in the parent node to
5082 -- record the presence of keywords specifying the mode.
5083
5084 --------------------------
5085 -- 6.3 Subprogram Body --
5086 --------------------------
5087
5088 -- SUBPROGRAM_BODY ::=
5089 -- SUBPROGRAM_SPECIFICATION [ASPECT_SPECIFICATIONS] is
5090 -- DECLARATIVE_PART
5091 -- begin
5092 -- HANDLED_SEQUENCE_OF_STATEMENTS
5093 -- end [DESIGNATOR];
5094
5095 -- N_Subprogram_Body
5096 -- Sloc points to FUNCTION or PROCEDURE
5097 -- Specification (Node1)
5098 -- Declarations (List2)
5099 -- Handled_Statement_Sequence (Node4)
5100 -- Activation_Chain_Entity (Node3-Sem)
5101 -- Corresponding_Spec (Node5-Sem)
5102 -- Acts_As_Spec (Flag4-Sem)
5103 -- Bad_Is_Detected (Flag15) used only by parser
5104 -- Do_Storage_Check (Flag17-Sem)
5105 -- Is_Protected_Subprogram_Body (Flag7-Sem)
5106 -- Is_Entry_Barrier_Function (Flag8-Sem)
5107 -- Is_Task_Master (Flag5-Sem)
5108 -- Was_Originally_Stub (Flag13-Sem)
5109 -- Has_Relative_Deadline_Pragma (Flag9-Sem)
5110
5111 -------------------------
5112 -- Expression Function --
5113 -------------------------
5114
5115 -- This is an Ada 2012 extension, we put it here for now, to be labeled
5116 -- and put in its proper section when we know exactly where that is.
5117
5118 -- EXPRESSION_FUNCTION ::=
5119 -- FUNCTION SPECIFICATION IS (EXPRESSION)
5120 -- [ASPECT_SPECIFICATIONS];
5121
5122 -- N_Expression_Function
5123 -- Sloc points to FUNCTION
5124 -- Specification (Node1)
5125 -- Expression (Node3)
5126 -- Corresponding_Spec (Node5-Sem)
5127
5128 -----------------------------------
5129 -- 6.4 Procedure Call Statement --
5130 -----------------------------------
5131
5132 -- PROCEDURE_CALL_STATEMENT ::=
5133 -- procedure_NAME; | procedure_PREFIX ACTUAL_PARAMETER_PART;
5134
5135 -- Note: the reason that a procedure call has expression fields is that
5136 -- it semantically resembles an expression, e.g. overloading is allowed
5137 -- and a type is concocted for semantic processing purposes. Certain of
5138 -- these fields, such as Parens are not relevant, but it is easier to
5139 -- just supply all of them together.
5140
5141 -- N_Procedure_Call_Statement
5142 -- Sloc points to first token of name or prefix
5143 -- Name (Node2) stores name or prefix
5144 -- Parameter_Associations (List3) (set to No_List if no
5145 -- actual parameter part)
5146 -- First_Named_Actual (Node4-Sem)
5147 -- Controlling_Argument (Node1-Sem) (set to Empty if not dispatching)
5148 -- Do_Tag_Check (Flag13-Sem)
5149 -- No_Elaboration_Check (Flag14-Sem)
5150 -- ABE_Is_Certain (Flag18-Sem)
5151 -- plus fields for expression
5152
5153 -- If any IN parameter requires a range check, then the corresponding
5154 -- argument expression has the Do_Range_Check flag set, and the range
5155 -- check is done against the formal type. Note that this argument
5156 -- expression may appear directly in the Parameter_Associations list,
5157 -- or may be a descendent of an N_Parameter_Association node that
5158 -- appears in this list.
5159
5160 ------------------------
5161 -- 6.4 Function Call --
5162 ------------------------
5163
5164 -- FUNCTION_CALL ::=
5165 -- function_NAME | function_PREFIX ACTUAL_PARAMETER_PART
5166
5167 -- Note: the parser may generate an indexed component node or simply
5168 -- a name node instead of a function call node. The semantic pass must
5169 -- correct this misidentification.
5170
5171 -- N_Function_Call
5172 -- Sloc points to first token of name or prefix
5173 -- Name (Node2) stores name or prefix
5174 -- Parameter_Associations (List3) (set to No_List if no
5175 -- actual parameter part)
5176 -- First_Named_Actual (Node4-Sem)
5177 -- Controlling_Argument (Node1-Sem) (set to Empty if not dispatching)
5178 -- Is_Expanded_Build_In_Place_Call (Flag11-Sem)
5179 -- Do_Tag_Check (Flag13-Sem)
5180 -- No_Elaboration_Check (Flag14-Sem)
5181 -- ABE_Is_Certain (Flag18-Sem)
5182 -- plus fields for expression
5183
5184 --------------------------------
5185 -- 6.4 Actual Parameter Part --
5186 --------------------------------
5187
5188 -- ACTUAL_PARAMETER_PART ::=
5189 -- (PARAMETER_ASSOCIATION {,PARAMETER_ASSOCIATION})
5190
5191 --------------------------------
5192 -- 6.4 Parameter Association --
5193 --------------------------------
5194
5195 -- PARAMETER_ASSOCIATION ::=
5196 -- [formal_parameter_SELECTOR_NAME =>] EXPLICIT_ACTUAL_PARAMETER
5197
5198 -- Note: the N_Parameter_Association node is built only if a formal
5199 -- parameter selector name is present, otherwise the parameter
5200 -- association appears in the tree simply as the node for the
5201 -- explicit actual parameter.
5202
5203 -- N_Parameter_Association
5204 -- Sloc points to formal parameter
5205 -- Selector_Name (Node2) (always non-Empty)
5206 -- Explicit_Actual_Parameter (Node3)
5207 -- Next_Named_Actual (Node4-Sem)
5208 -- Is_Accessibility_Actual (Flag13-Sem)
5209
5210 ---------------------------
5211 -- 6.4 Actual Parameter --
5212 ---------------------------
5213
5214 -- EXPLICIT_ACTUAL_PARAMETER ::= EXPRESSION | variable_NAME
5215
5216 ---------------------------
5217 -- 6.5 Return Statement --
5218 ---------------------------
5219
5220 -- SIMPLE_RETURN_STATEMENT ::= return [EXPRESSION];
5221
5222 -- EXTENDED_RETURN_STATEMENT ::=
5223 -- return DEFINING_IDENTIFIER : [aliased] RETURN_SUBTYPE_INDICATION
5224 -- [:= EXPRESSION] [do
5225 -- HANDLED_SEQUENCE_OF_STATEMENTS
5226 -- end return];
5227
5228 -- RETURN_SUBTYPE_INDICATION ::= SUBTYPE_INDICATION | ACCESS_DEFINITION
5229
5230 -- The term "return statement" is defined in 6.5 to mean either a
5231 -- SIMPLE_RETURN_STATEMENT or an EXTENDED_RETURN_STATEMENT. We avoid
5232 -- the use of this term, since it used to mean someting else in earlier
5233 -- versions of Ada.
5234
5235 -- N_Simple_Return_Statement
5236 -- Sloc points to RETURN
5237 -- Return_Statement_Entity (Node5-Sem)
5238 -- Expression (Node3) (set to Empty if no expression present)
5239 -- Storage_Pool (Node1-Sem)
5240 -- Procedure_To_Call (Node2-Sem)
5241 -- Do_Tag_Check (Flag13-Sem)
5242 -- By_Ref (Flag5-Sem)
5243 -- Comes_From_Extended_Return_Statement (Flag18-Sem)
5244
5245 -- Note: Return_Statement_Entity points to an E_Return_Statement
5246
5247 -- If a range check is required, then Do_Range_Check is set on the
5248 -- Expression. The check is against the return subtype of the function.
5249
5250 -- N_Extended_Return_Statement
5251 -- Sloc points to RETURN
5252 -- Return_Statement_Entity (Node5-Sem)
5253 -- Return_Object_Declarations (List3)
5254 -- Handled_Statement_Sequence (Node4) (set to Empty if not present)
5255 -- Storage_Pool (Node1-Sem)
5256 -- Procedure_To_Call (Node2-Sem)
5257 -- Do_Tag_Check (Flag13-Sem)
5258 -- By_Ref (Flag5-Sem)
5259
5260 -- Note: Return_Statement_Entity points to an E_Return_Statement.
5261
5262 -- Note that Return_Object_Declarations is a list containing the
5263 -- N_Object_Declaration -- see comment on this field above.
5264
5265 -- The declared object will have Is_Return_Object = True.
5266
5267 -- There is no such syntactic category as return_object_declaration
5268 -- in the RM. Return_Object_Declarations represents this portion of
5269 -- the syntax for EXTENDED_RETURN_STATEMENT:
5270 -- DEFINING_IDENTIFIER : [aliased] RETURN_SUBTYPE_INDICATION
5271 -- [:= EXPRESSION]
5272
5273 -- There are two entities associated with an extended_return_statement:
5274 -- the Return_Statement_Entity represents the statement itself,
5275 -- and the Defining_Identifier of the Object_Declaration in
5276 -- Return_Object_Declarations represents the object being
5277 -- returned. N_Simple_Return_Statement has only the former.
5278
5279 ------------------------------
5280 -- 7.1 Package Declaration --
5281 ------------------------------
5282
5283 -- PACKAGE_DECLARATION ::=
5284 -- PACKAGE_SPECIFICATION;
5285
5286 -- Note: the activation chain entity for a package spec is used for
5287 -- all tasks declared in the package spec, or in the package body.
5288
5289 -- N_Package_Declaration
5290 -- Sloc points to PACKAGE
5291 -- Specification (Node1)
5292 -- Corresponding_Body (Node5-Sem)
5293 -- Parent_Spec (Node4-Sem)
5294 -- Activation_Chain_Entity (Node3-Sem)
5295
5296 --------------------------------
5297 -- 7.1 Package Specification --
5298 --------------------------------
5299
5300 -- PACKAGE_SPECIFICATION ::=
5301 -- package DEFINING_PROGRAM_UNIT_NAME
5302 -- [ASPECT_SPECIFICATIONS]
5303 -- is
5304 -- {BASIC_DECLARATIVE_ITEM}
5305 -- [private
5306 -- {BASIC_DECLARATIVE_ITEM}]
5307 -- end [[PARENT_UNIT_NAME .] IDENTIFIER]
5308
5309 -- N_Package_Specification
5310 -- Sloc points to PACKAGE
5311 -- Defining_Unit_Name (Node1)
5312 -- Visible_Declarations (List2)
5313 -- Private_Declarations (List3) (set to No_List if no private
5314 -- part present)
5315 -- End_Label (Node4)
5316 -- Generic_Parent (Node5-Sem)
5317 -- Limited_View_Installed (Flag18-Sem)
5318
5319 -----------------------
5320 -- 7.1 Package Body --
5321 -----------------------
5322
5323 -- PACKAGE_BODY ::=
5324 -- package body DEFINING_PROGRAM_UNIT_NAME
5325 -- [ASPECT_SPECIFICATIONS]
5326 -- is
5327 -- DECLARATIVE_PART
5328 -- [begin
5329 -- HANDLED_SEQUENCE_OF_STATEMENTS]
5330 -- end [[PARENT_UNIT_NAME .] IDENTIFIER];
5331
5332 -- N_Package_Body
5333 -- Sloc points to PACKAGE
5334 -- Defining_Unit_Name (Node1)
5335 -- Declarations (List2)
5336 -- Handled_Statement_Sequence (Node4) (set to Empty if no HSS present)
5337 -- Corresponding_Spec (Node5-Sem)
5338 -- Was_Originally_Stub (Flag13-Sem)
5339
5340 -- Note: if a source level package does not contain a handled sequence
5341 -- of statements, then the parser supplies a dummy one with a null
5342 -- sequence of statements. Comes_From_Source will be False in this
5343 -- constructed sequence. The reason we need this is for the End_Label
5344 -- field in the HSS.
5345
5346 -----------------------------------
5347 -- 7.4 Private Type Declaration --
5348 -----------------------------------
5349
5350 -- PRIVATE_TYPE_DECLARATION ::=
5351 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART]
5352 -- is [[abstract] tagged] [limited] private
5353 -- [ASPECT_SPECIFICATIONS];
5354
5355 -- Note: TAGGED is not permitted in Ada 83 mode
5356
5357 -- N_Private_Type_Declaration
5358 -- Sloc points to TYPE
5359 -- Defining_Identifier (Node1)
5360 -- Discriminant_Specifications (List4) (set to No_List if no
5361 -- discriminant part)
5362 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
5363 -- Abstract_Present (Flag4)
5364 -- Tagged_Present (Flag15)
5365 -- Limited_Present (Flag17)
5366
5367 ----------------------------------------
5368 -- 7.4 Private Extension Declaration --
5369 ----------------------------------------
5370
5371 -- PRIVATE_EXTENSION_DECLARATION ::=
5372 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART] is
5373 -- [abstract] [limited | synchronized]
5374 -- new ancestor_SUBTYPE_INDICATION [and INTERFACE_LIST]
5375 -- with private [ASPECT_SPECIFICATIONS];
5376
5377 -- Note: LIMITED, and private extension declarations are not allowed
5378 -- in Ada 83 mode.
5379
5380 -- N_Private_Extension_Declaration
5381 -- Sloc points to TYPE
5382 -- Defining_Identifier (Node1)
5383 -- Uninitialized_Variable (Node3-Sem)
5384 -- Discriminant_Specifications (List4) (set to No_List if no
5385 -- discriminant part)
5386 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
5387 -- Abstract_Present (Flag4)
5388 -- Limited_Present (Flag17)
5389 -- Synchronized_Present (Flag7)
5390 -- Subtype_Indication (Node5)
5391 -- Interface_List (List2) (set to No_List if none)
5392
5393 ---------------------
5394 -- 8.4 Use Clause --
5395 ---------------------
5396
5397 -- USE_CLAUSE ::= USE_PACKAGE_CLAUSE | USE_TYPE_CLAUSE
5398
5399 -----------------------------
5400 -- 8.4 Use Package Clause --
5401 -----------------------------
5402
5403 -- USE_PACKAGE_CLAUSE ::= use package_NAME {, package_NAME};
5404
5405 -- N_Use_Package_Clause
5406 -- Sloc points to USE
5407 -- Names (List2)
5408 -- Next_Use_Clause (Node3-Sem)
5409 -- Hidden_By_Use_Clause (Elist4-Sem)
5410
5411 --------------------------
5412 -- 8.4 Use Type Clause --
5413 --------------------------
5414
5415 -- USE_TYPE_CLAUSE ::= use [ALL] type SUBTYPE_MARK {, SUBTYPE_MARK};
5416
5417 -- Note: use type clause is not permitted in Ada 83 mode
5418
5419 -- Note: the ALL keyword can appear only in Ada 2012 mode
5420
5421 -- N_Use_Type_Clause
5422 -- Sloc points to USE
5423 -- Subtype_Marks (List2)
5424 -- Next_Use_Clause (Node3-Sem)
5425 -- Hidden_By_Use_Clause (Elist4-Sem)
5426 -- Used_Operations (Elist5-Sem)
5427 -- All_Present (Flag15)
5428
5429 -------------------------------
5430 -- 8.5 Renaming Declaration --
5431 -------------------------------
5432
5433 -- RENAMING_DECLARATION ::=
5434 -- OBJECT_RENAMING_DECLARATION
5435 -- | EXCEPTION_RENAMING_DECLARATION
5436 -- | PACKAGE_RENAMING_DECLARATION
5437 -- | SUBPROGRAM_RENAMING_DECLARATION
5438 -- | GENERIC_RENAMING_DECLARATION
5439
5440 --------------------------------------
5441 -- 8.5 Object Renaming Declaration --
5442 --------------------------------------
5443
5444 -- OBJECT_RENAMING_DECLARATION ::=
5445 -- DEFINING_IDENTIFIER :
5446 -- [NULL_EXCLUSION] SUBTYPE_MARK renames object_NAME
5447 -- [ASPECT_SPECIFICATIONS];
5448 -- | DEFINING_IDENTIFIER :
5449 -- ACCESS_DEFINITION renames object_NAME
5450 -- [ASPECT_SPECIFICATIONS];
5451
5452 -- Note: Access_Definition is an optional field that gives support to
5453 -- Ada 2005 (AI-230). The parser generates nodes that have either the
5454 -- Subtype_Indication field or else the Access_Definition field.
5455
5456 -- N_Object_Renaming_Declaration
5457 -- Sloc points to first identifier
5458 -- Defining_Identifier (Node1)
5459 -- Null_Exclusion_Present (Flag11) (set to False if not present)
5460 -- Subtype_Mark (Node4) (set to Empty if not present)
5461 -- Access_Definition (Node3) (set to Empty if not present)
5462 -- Name (Node2)
5463 -- Corresponding_Generic_Association (Node5-Sem)
5464
5465 -----------------------------------------
5466 -- 8.5 Exception Renaming Declaration --
5467 -----------------------------------------
5468
5469 -- EXCEPTION_RENAMING_DECLARATION ::=
5470 -- DEFINING_IDENTIFIER : exception renames exception_NAME
5471 -- [ASPECT_SPECIFICATIONS];
5472
5473 -- N_Exception_Renaming_Declaration
5474 -- Sloc points to first identifier
5475 -- Defining_Identifier (Node1)
5476 -- Name (Node2)
5477
5478 ---------------------------------------
5479 -- 8.5 Package Renaming Declaration --
5480 ---------------------------------------
5481
5482 -- PACKAGE_RENAMING_DECLARATION ::=
5483 -- package DEFINING_PROGRAM_UNIT_NAME renames package_NAME
5484 -- [ASPECT_SPECIFICATIONS];
5485
5486 -- N_Package_Renaming_Declaration
5487 -- Sloc points to PACKAGE
5488 -- Defining_Unit_Name (Node1)
5489 -- Name (Node2)
5490 -- Parent_Spec (Node4-Sem)
5491
5492 ------------------------------------------
5493 -- 8.5 Subprogram Renaming Declaration --
5494 ------------------------------------------
5495
5496 -- SUBPROGRAM_RENAMING_DECLARATION ::=
5497 -- SUBPROGRAM_SPECIFICATION renames callable_entity_NAME
5498 -- [ASPECT_SPECIFICATIONS];
5499
5500 -- N_Subprogram_Renaming_Declaration
5501 -- Sloc points to RENAMES
5502 -- Specification (Node1)
5503 -- Name (Node2)
5504 -- Parent_Spec (Node4-Sem)
5505 -- Corresponding_Spec (Node5-Sem)
5506 -- Corresponding_Formal_Spec (Node3-Sem)
5507 -- From_Default (Flag6-Sem)
5508
5509 -----------------------------------------
5510 -- 8.5.5 Generic Renaming Declaration --
5511 -----------------------------------------
5512
5513 -- GENERIC_RENAMING_DECLARATION ::=
5514 -- generic package DEFINING_PROGRAM_UNIT_NAME
5515 -- renames generic_package_NAME
5516 -- [ASPECT_SPECIFICATIONS];
5517 -- | generic procedure DEFINING_PROGRAM_UNIT_NAME
5518 -- renames generic_procedure_NAME
5519 -- [ASPECT_SPECIFICATIONS];
5520 -- | generic function DEFINING_PROGRAM_UNIT_NAME
5521 -- renames generic_function_NAME
5522 -- [ASPECT_SPECIFICATIONS];
5523
5524 -- N_Generic_Package_Renaming_Declaration
5525 -- Sloc points to GENERIC
5526 -- Defining_Unit_Name (Node1)
5527 -- Name (Node2)
5528 -- Parent_Spec (Node4-Sem)
5529
5530 -- N_Generic_Procedure_Renaming_Declaration
5531 -- Sloc points to GENERIC
5532 -- Defining_Unit_Name (Node1)
5533 -- Name (Node2)
5534 -- Parent_Spec (Node4-Sem)
5535
5536 -- N_Generic_Function_Renaming_Declaration
5537 -- Sloc points to GENERIC
5538 -- Defining_Unit_Name (Node1)
5539 -- Name (Node2)
5540 -- Parent_Spec (Node4-Sem)
5541
5542 --------------------------------
5543 -- 9.1 Task Type Declaration --
5544 --------------------------------
5545
5546 -- TASK_TYPE_DECLARATION ::=
5547 -- task type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
5548 -- [ASPECT_SPECIFICATIONS]
5549 -- [is [new INTERFACE_LIST with] TASK_DEFINITION];
5550
5551 -- N_Task_Type_Declaration
5552 -- Sloc points to TASK
5553 -- Defining_Identifier (Node1)
5554 -- Discriminant_Specifications (List4) (set to No_List if no
5555 -- discriminant part)
5556 -- Interface_List (List2) (set to No_List if none)
5557 -- Task_Definition (Node3) (set to Empty if not present)
5558 -- Corresponding_Body (Node5-Sem)
5559
5560 ----------------------------------
5561 -- 9.1 Single Task Declaration --
5562 ----------------------------------
5563
5564 -- SINGLE_TASK_DECLARATION ::=
5565 -- task DEFINING_IDENTIFIER
5566 -- [ASPECT_SPECIFICATIONS]
5567 -- [is [new INTERFACE_LIST with] TASK_DEFINITION];
5568
5569 -- N_Single_Task_Declaration
5570 -- Sloc points to TASK
5571 -- Defining_Identifier (Node1)
5572 -- Interface_List (List2) (set to No_List if none)
5573 -- Task_Definition (Node3) (set to Empty if not present)
5574
5575 --------------------------
5576 -- 9.1 Task Definition --
5577 --------------------------
5578
5579 -- TASK_DEFINITION ::=
5580 -- {TASK_ITEM}
5581 -- [private
5582 -- {TASK_ITEM}]
5583 -- end [task_IDENTIFIER]
5584
5585 -- Note: as a result of semantic analysis, the list of task items can
5586 -- include implicit type declarations resulting from entry families.
5587
5588 -- N_Task_Definition
5589 -- Sloc points to first token of task definition
5590 -- Visible_Declarations (List2)
5591 -- Private_Declarations (List3) (set to No_List if no private part)
5592 -- End_Label (Node4)
5593 -- Has_Storage_Size_Pragma (Flag5-Sem)
5594 -- Has_Relative_Deadline_Pragma (Flag9-Sem)
5595
5596 --------------------
5597 -- 9.1 Task Item --
5598 --------------------
5599
5600 -- TASK_ITEM ::= ENTRY_DECLARATION | REPRESENTATION_CLAUSE
5601
5602 --------------------
5603 -- 9.1 Task Body --
5604 --------------------
5605
5606 -- TASK_BODY ::=
5607 -- task body task_DEFINING_IDENTIFIER
5608 -- [ASPECT_SPECIFICATIONS]
5609 -- is
5610 -- DECLARATIVE_PART
5611 -- begin
5612 -- HANDLED_SEQUENCE_OF_STATEMENTS
5613 -- end [task_IDENTIFIER];
5614
5615 -- Gigi restriction: This node never appears
5616
5617 -- N_Task_Body
5618 -- Sloc points to TASK
5619 -- Defining_Identifier (Node1)
5620 -- Declarations (List2)
5621 -- Handled_Statement_Sequence (Node4)
5622 -- Is_Task_Master (Flag5-Sem)
5623 -- Activation_Chain_Entity (Node3-Sem)
5624 -- Corresponding_Spec (Node5-Sem)
5625 -- Was_Originally_Stub (Flag13-Sem)
5626
5627 -------------------------------------
5628 -- 9.4 Protected Type Declaration --
5629 -------------------------------------
5630
5631 -- PROTECTED_TYPE_DECLARATION ::=
5632 -- protected type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
5633 -- [ASPECT_SPECIFICATIONS]
5634 -- is [new INTERFACE_LIST with] PROTECTED_DEFINITION;
5635
5636 -- Note: protected type declarations are not permitted in Ada 83 mode
5637
5638 -- N_Protected_Type_Declaration
5639 -- Sloc points to PROTECTED
5640 -- Defining_Identifier (Node1)
5641 -- Discriminant_Specifications (List4) (set to No_List if no
5642 -- discriminant part)
5643 -- Interface_List (List2) (set to No_List if none)
5644 -- Protected_Definition (Node3)
5645 -- Corresponding_Body (Node5-Sem)
5646
5647 ---------------------------------------
5648 -- 9.4 Single Protected Declaration --
5649 ---------------------------------------
5650
5651 -- SINGLE_PROTECTED_DECLARATION ::=
5652 -- protected DEFINING_IDENTIFIER
5653 -- [ASPECT_SPECIFICATIONS]
5654 -- is [new INTERFACE_LIST with] PROTECTED_DEFINITION;
5655
5656 -- Note: single protected declarations are not allowed in Ada 83 mode
5657
5658 -- N_Single_Protected_Declaration
5659 -- Sloc points to PROTECTED
5660 -- Defining_Identifier (Node1)
5661 -- Interface_List (List2) (set to No_List if none)
5662 -- Protected_Definition (Node3)
5663
5664 -------------------------------
5665 -- 9.4 Protected Definition --
5666 -------------------------------
5667
5668 -- PROTECTED_DEFINITION ::=
5669 -- {PROTECTED_OPERATION_DECLARATION}
5670 -- [private
5671 -- {PROTECTED_ELEMENT_DECLARATION}]
5672 -- end [protected_IDENTIFIER]
5673
5674 -- N_Protected_Definition
5675 -- Sloc points to first token of protected definition
5676 -- Visible_Declarations (List2)
5677 -- Private_Declarations (List3) (set to No_List if no private part)
5678 -- End_Label (Node4)
5679
5680 ------------------------------------------
5681 -- 9.4 Protected Operation Declaration --
5682 ------------------------------------------
5683
5684 -- PROTECTED_OPERATION_DECLARATION ::=
5685 -- SUBPROGRAM_DECLARATION
5686 -- | ENTRY_DECLARATION
5687 -- | REPRESENTATION_CLAUSE
5688
5689 ----------------------------------------
5690 -- 9.4 Protected Element Declaration --
5691 ----------------------------------------
5692
5693 -- PROTECTED_ELEMENT_DECLARATION ::=
5694 -- PROTECTED_OPERATION_DECLARATION | COMPONENT_DECLARATION
5695
5696 -------------------------
5697 -- 9.4 Protected Body --
5698 -------------------------
5699
5700 -- PROTECTED_BODY ::=
5701 -- protected body DEFINING_IDENTIFIER
5702 -- [ASPECT_SPECIFICATIONS];
5703 -- is
5704 -- {PROTECTED_OPERATION_ITEM}
5705 -- end [protected_IDENTIFIER];
5706
5707 -- Note: protected bodies are not allowed in Ada 83 mode
5708
5709 -- Gigi restriction: This node never appears
5710
5711 -- N_Protected_Body
5712 -- Sloc points to PROTECTED
5713 -- Defining_Identifier (Node1)
5714 -- Declarations (List2) protected operation items (and pragmas)
5715 -- End_Label (Node4)
5716 -- Corresponding_Spec (Node5-Sem)
5717 -- Was_Originally_Stub (Flag13-Sem)
5718
5719 -----------------------------------
5720 -- 9.4 Protected Operation Item --
5721 -----------------------------------
5722
5723 -- PROTECTED_OPERATION_ITEM ::=
5724 -- SUBPROGRAM_DECLARATION
5725 -- | SUBPROGRAM_BODY
5726 -- | ENTRY_BODY
5727 -- | REPRESENTATION_CLAUSE
5728
5729 ------------------------------
5730 -- 9.5.2 Entry Declaration --
5731 ------------------------------
5732
5733 -- ENTRY_DECLARATION ::=
5734 -- [[not] overriding]
5735 -- entry DEFINING_IDENTIFIER
5736 -- [(DISCRETE_SUBTYPE_DEFINITION)] PARAMETER_PROFILE
5737 -- [ASPECT_SPECIFICATIONS];
5738
5739 -- N_Entry_Declaration
5740 -- Sloc points to ENTRY
5741 -- Defining_Identifier (Node1)
5742 -- Discrete_Subtype_Definition (Node4) (set to Empty if not present)
5743 -- Parameter_Specifications (List3) (set to No_List if no formal part)
5744 -- Corresponding_Body (Node5-Sem)
5745 -- Must_Override (Flag14) set if overriding indicator present
5746 -- Must_Not_Override (Flag15) set if not_overriding indicator present
5747
5748 -- Note: overriding indicator is an Ada 2005 feature
5749
5750 -----------------------------
5751 -- 9.5.2 Accept statement --
5752 -----------------------------
5753
5754 -- ACCEPT_STATEMENT ::=
5755 -- accept entry_DIRECT_NAME
5756 -- [(ENTRY_INDEX)] PARAMETER_PROFILE [do
5757 -- HANDLED_SEQUENCE_OF_STATEMENTS
5758 -- end [entry_IDENTIFIER]];
5759
5760 -- Gigi restriction: This node never appears
5761
5762 -- Note: there are no explicit declarations allowed in an accept
5763 -- statement. However, the implicit declarations for any statement
5764 -- identifiers (labels and block/loop identifiers) are declarations
5765 -- that belong logically to the accept statement, and that is why
5766 -- there is a Declarations field in this node.
5767
5768 -- N_Accept_Statement
5769 -- Sloc points to ACCEPT
5770 -- Entry_Direct_Name (Node1)
5771 -- Entry_Index (Node5) (set to Empty if not present)
5772 -- Parameter_Specifications (List3) (set to No_List if no formal part)
5773 -- Handled_Statement_Sequence (Node4)
5774 -- Declarations (List2) (set to No_List if no declarations)
5775
5776 ------------------------
5777 -- 9.5.2 Entry Index --
5778 ------------------------
5779
5780 -- ENTRY_INDEX ::= EXPRESSION
5781
5782 -----------------------
5783 -- 9.5.2 Entry Body --
5784 -----------------------
5785
5786 -- ENTRY_BODY ::=
5787 -- entry DEFINING_IDENTIFIER ENTRY_BODY_FORMAL_PART ENTRY_BARRIER is
5788 -- DECLARATIVE_PART
5789 -- begin
5790 -- HANDLED_SEQUENCE_OF_STATEMENTS
5791 -- end [entry_IDENTIFIER];
5792
5793 -- ENTRY_BARRIER ::= when CONDITION
5794
5795 -- Note: we store the CONDITION of the ENTRY_BARRIER in the node for
5796 -- the ENTRY_BODY_FORMAL_PART to avoid the N_Entry_Body node getting
5797 -- too full (it would otherwise have too many fields)
5798
5799 -- Gigi restriction: This node never appears
5800
5801 -- N_Entry_Body
5802 -- Sloc points to ENTRY
5803 -- Defining_Identifier (Node1)
5804 -- Entry_Body_Formal_Part (Node5)
5805 -- Declarations (List2)
5806 -- Handled_Statement_Sequence (Node4)
5807 -- Activation_Chain_Entity (Node3-Sem)
5808
5809 -----------------------------------
5810 -- 9.5.2 Entry Body Formal Part --
5811 -----------------------------------
5812
5813 -- ENTRY_BODY_FORMAL_PART ::=
5814 -- [(ENTRY_INDEX_SPECIFICATION)] PARAMETER_PROFILE
5815
5816 -- Note that an entry body formal part node is present even if it is
5817 -- empty. This reflects the grammar, in which it is the components of
5818 -- the entry body formal part that are optional, not the entry body
5819 -- formal part itself. Also this means that the barrier condition
5820 -- always has somewhere to be stored.
5821
5822 -- Gigi restriction: This node never appears
5823
5824 -- N_Entry_Body_Formal_Part
5825 -- Sloc points to first token
5826 -- Entry_Index_Specification (Node4) (set to Empty if not present)
5827 -- Parameter_Specifications (List3) (set to No_List if no formal part)
5828 -- Condition (Node1) from entry barrier of entry body
5829
5830 --------------------------
5831 -- 9.5.2 Entry Barrier --
5832 --------------------------
5833
5834 -- ENTRY_BARRIER ::= when CONDITION
5835
5836 --------------------------------------
5837 -- 9.5.2 Entry Index Specification --
5838 --------------------------------------
5839
5840 -- ENTRY_INDEX_SPECIFICATION ::=
5841 -- for DEFINING_IDENTIFIER in DISCRETE_SUBTYPE_DEFINITION
5842
5843 -- Gigi restriction: This node never appears
5844
5845 -- N_Entry_Index_Specification
5846 -- Sloc points to FOR
5847 -- Defining_Identifier (Node1)
5848 -- Discrete_Subtype_Definition (Node4)
5849
5850 ---------------------------------
5851 -- 9.5.3 Entry Call Statement --
5852 ---------------------------------
5853
5854 -- ENTRY_CALL_STATEMENT ::= entry_NAME [ACTUAL_PARAMETER_PART];
5855
5856 -- The parser may generate a procedure call for this construct. The
5857 -- semantic pass must correct this misidentification where needed.
5858
5859 -- Gigi restriction: This node never appears
5860
5861 -- N_Entry_Call_Statement
5862 -- Sloc points to first token of name
5863 -- Name (Node2)
5864 -- Parameter_Associations (List3) (set to No_List if no
5865 -- actual parameter part)
5866 -- First_Named_Actual (Node4-Sem)
5867
5868 ------------------------------
5869 -- 9.5.4 Requeue Statement --
5870 ------------------------------
5871
5872 -- REQUEUE_STATEMENT ::= requeue entry_NAME [with abort];
5873
5874 -- Note: requeue statements are not permitted in Ada 83 mode
5875
5876 -- Gigi restriction: This node never appears
5877
5878 -- N_Requeue_Statement
5879 -- Sloc points to REQUEUE
5880 -- Name (Node2)
5881 -- Abort_Present (Flag15)
5882
5883 --------------------------
5884 -- 9.6 Delay Statement --
5885 --------------------------
5886
5887 -- DELAY_STATEMENT ::=
5888 -- DELAY_UNTIL_STATEMENT
5889 -- | DELAY_RELATIVE_STATEMENT
5890
5891 --------------------------------
5892 -- 9.6 Delay Until Statement --
5893 --------------------------------
5894
5895 -- DELAY_UNTIL_STATEMENT ::= delay until delay_EXPRESSION;
5896
5897 -- Note: delay until statements are not permitted in Ada 83 mode
5898
5899 -- Gigi restriction: This node never appears
5900
5901 -- N_Delay_Until_Statement
5902 -- Sloc points to DELAY
5903 -- Expression (Node3)
5904
5905 -----------------------------------
5906 -- 9.6 Delay Relative Statement --
5907 -----------------------------------
5908
5909 -- DELAY_RELATIVE_STATEMENT ::= delay delay_EXPRESSION;
5910
5911 -- Gigi restriction: This node never appears
5912
5913 -- N_Delay_Relative_Statement
5914 -- Sloc points to DELAY
5915 -- Expression (Node3)
5916
5917 ---------------------------
5918 -- 9.7 Select Statement --
5919 ---------------------------
5920
5921 -- SELECT_STATEMENT ::=
5922 -- SELECTIVE_ACCEPT
5923 -- | TIMED_ENTRY_CALL
5924 -- | CONDITIONAL_ENTRY_CALL
5925 -- | ASYNCHRONOUS_SELECT
5926
5927 -----------------------------
5928 -- 9.7.1 Selective Accept --
5929 -----------------------------
5930
5931 -- SELECTIVE_ACCEPT ::=
5932 -- select
5933 -- [GUARD]
5934 -- SELECT_ALTERNATIVE
5935 -- {or
5936 -- [GUARD]
5937 -- SELECT_ALTERNATIVE}
5938 -- [else
5939 -- SEQUENCE_OF_STATEMENTS]
5940 -- end select;
5941
5942 -- Gigi restriction: This node never appears
5943
5944 -- Note: the guard expression, if present, appears in the node for
5945 -- the select alternative.
5946
5947 -- N_Selective_Accept
5948 -- Sloc points to SELECT
5949 -- Select_Alternatives (List1)
5950 -- Else_Statements (List4) (set to No_List if no else part)
5951
5952 ------------------
5953 -- 9.7.1 Guard --
5954 ------------------
5955
5956 -- GUARD ::= when CONDITION =>
5957
5958 -- As noted above, the CONDITION that is part of a GUARD is included
5959 -- in the node for the select alternative for convenience.
5960
5961 -------------------------------
5962 -- 9.7.1 Select Alternative --
5963 -------------------------------
5964
5965 -- SELECT_ALTERNATIVE ::=
5966 -- ACCEPT_ALTERNATIVE
5967 -- | DELAY_ALTERNATIVE
5968 -- | TERMINATE_ALTERNATIVE
5969
5970 -------------------------------
5971 -- 9.7.1 Accept Alternative --
5972 -------------------------------
5973
5974 -- ACCEPT_ALTERNATIVE ::=
5975 -- ACCEPT_STATEMENT [SEQUENCE_OF_STATEMENTS]
5976
5977 -- Gigi restriction: This node never appears
5978
5979 -- N_Accept_Alternative
5980 -- Sloc points to ACCEPT
5981 -- Accept_Statement (Node2)
5982 -- Condition (Node1) from the guard (set to Empty if no guard present)
5983 -- Statements (List3) (set to Empty_List if no statements)
5984 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5985 -- Accept_Handler_Records (List5-Sem)
5986
5987 ------------------------------
5988 -- 9.7.1 Delay Alternative --
5989 ------------------------------
5990
5991 -- DELAY_ALTERNATIVE ::=
5992 -- DELAY_STATEMENT [SEQUENCE_OF_STATEMENTS]
5993
5994 -- Gigi restriction: This node never appears
5995
5996 -- N_Delay_Alternative
5997 -- Sloc points to DELAY
5998 -- Delay_Statement (Node2)
5999 -- Condition (Node1) from the guard (set to Empty if no guard present)
6000 -- Statements (List3) (set to Empty_List if no statements)
6001 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
6002
6003 ----------------------------------
6004 -- 9.7.1 Terminate Alternative --
6005 ----------------------------------
6006
6007 -- TERMINATE_ALTERNATIVE ::= terminate;
6008
6009 -- Gigi restriction: This node never appears
6010
6011 -- N_Terminate_Alternative
6012 -- Sloc points to TERMINATE
6013 -- Condition (Node1) from the guard (set to Empty if no guard present)
6014 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
6015 -- Pragmas_After (List5) pragmas after alt (set to No_List if none)
6016
6017 -----------------------------
6018 -- 9.7.2 Timed Entry Call --
6019 -----------------------------
6020
6021 -- TIMED_ENTRY_CALL ::=
6022 -- select
6023 -- ENTRY_CALL_ALTERNATIVE
6024 -- or
6025 -- DELAY_ALTERNATIVE
6026 -- end select;
6027
6028 -- Gigi restriction: This node never appears
6029
6030 -- N_Timed_Entry_Call
6031 -- Sloc points to SELECT
6032 -- Entry_Call_Alternative (Node1)
6033 -- Delay_Alternative (Node4)
6034
6035 -----------------------------------
6036 -- 9.7.2 Entry Call Alternative --
6037 -----------------------------------
6038
6039 -- ENTRY_CALL_ALTERNATIVE ::=
6040 -- PROCEDURE_OR_ENTRY_CALL [SEQUENCE_OF_STATEMENTS]
6041
6042 -- PROCEDURE_OR_ENTRY_CALL ::=
6043 -- PROCEDURE_CALL_STATEMENT | ENTRY_CALL_STATEMENT
6044
6045 -- Gigi restriction: This node never appears
6046
6047 -- N_Entry_Call_Alternative
6048 -- Sloc points to first token of entry call statement
6049 -- Entry_Call_Statement (Node1)
6050 -- Statements (List3) (set to Empty_List if no statements)
6051 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
6052
6053 -----------------------------------
6054 -- 9.7.3 Conditional Entry Call --
6055 -----------------------------------
6056
6057 -- CONDITIONAL_ENTRY_CALL ::=
6058 -- select
6059 -- ENTRY_CALL_ALTERNATIVE
6060 -- else
6061 -- SEQUENCE_OF_STATEMENTS
6062 -- end select;
6063
6064 -- Gigi restriction: This node never appears
6065
6066 -- N_Conditional_Entry_Call
6067 -- Sloc points to SELECT
6068 -- Entry_Call_Alternative (Node1)
6069 -- Else_Statements (List4)
6070
6071 --------------------------------
6072 -- 9.7.4 Asynchronous Select --
6073 --------------------------------
6074
6075 -- ASYNCHRONOUS_SELECT ::=
6076 -- select
6077 -- TRIGGERING_ALTERNATIVE
6078 -- then abort
6079 -- ABORTABLE_PART
6080 -- end select;
6081
6082 -- Note: asynchronous select is not permitted in Ada 83 mode
6083
6084 -- Gigi restriction: This node never appears
6085
6086 -- N_Asynchronous_Select
6087 -- Sloc points to SELECT
6088 -- Triggering_Alternative (Node1)
6089 -- Abortable_Part (Node2)
6090
6091 -----------------------------------
6092 -- 9.7.4 Triggering Alternative --
6093 -----------------------------------
6094
6095 -- TRIGGERING_ALTERNATIVE ::=
6096 -- TRIGGERING_STATEMENT [SEQUENCE_OF_STATEMENTS]
6097
6098 -- Gigi restriction: This node never appears
6099
6100 -- N_Triggering_Alternative
6101 -- Sloc points to first token of triggering statement
6102 -- Triggering_Statement (Node1)
6103 -- Statements (List3) (set to Empty_List if no statements)
6104 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
6105
6106 ---------------------------------
6107 -- 9.7.4 Triggering Statement --
6108 ---------------------------------
6109
6110 -- TRIGGERING_STATEMENT ::= PROCEDURE_OR_ENTRY_CALL | DELAY_STATEMENT
6111
6112 ---------------------------
6113 -- 9.7.4 Abortable Part --
6114 ---------------------------
6115
6116 -- ABORTABLE_PART ::= SEQUENCE_OF_STATEMENTS
6117
6118 -- Gigi restriction: This node never appears
6119
6120 -- N_Abortable_Part
6121 -- Sloc points to ABORT
6122 -- Statements (List3)
6123
6124 --------------------------
6125 -- 9.8 Abort Statement --
6126 --------------------------
6127
6128 -- ABORT_STATEMENT ::= abort task_NAME {, task_NAME};
6129
6130 -- Gigi restriction: This node never appears
6131
6132 -- N_Abort_Statement
6133 -- Sloc points to ABORT
6134 -- Names (List2)
6135
6136 -------------------------
6137 -- 10.1.1 Compilation --
6138 -------------------------
6139
6140 -- COMPILATION ::= {COMPILATION_UNIT}
6141
6142 -- There is no explicit node in the tree for a compilation, since in
6143 -- general the compiler is processing only a single compilation unit
6144 -- at a time. It is possible to parse multiple units in syntax check
6145 -- only mode, but the trees are discarded in that case.
6146
6147 ------------------------------
6148 -- 10.1.1 Compilation Unit --
6149 ------------------------------
6150
6151 -- COMPILATION_UNIT ::=
6152 -- CONTEXT_CLAUSE LIBRARY_ITEM
6153 -- | CONTEXT_CLAUSE SUBUNIT
6154
6155 -- The N_Compilation_Unit node itself represents the above syntax.
6156 -- However, there are two additional items not reflected in the above
6157 -- syntax. First we have the global declarations that are added by the
6158 -- code generator. These are outer level declarations (so they cannot
6159 -- be represented as being inside the units). An example is the wrapper
6160 -- subprograms that are created to do ABE checking. As always a list of
6161 -- declarations can contain actions as well (i.e. statements), and such
6162 -- statements are executed as part of the elaboration of the unit. Note
6163 -- that all such declarations are elaborated before the library unit.
6164
6165 -- Similarly, certain actions need to be elaborated at the completion
6166 -- of elaboration of the library unit (notably the statement that sets
6167 -- the Boolean flag indicating that elaboration is complete).
6168
6169 -- The third item not reflected in the syntax is pragmas that appear
6170 -- after the compilation unit. As always pragmas are a problem since
6171 -- they are not part of the formal syntax, but can be stuck into the
6172 -- source following a set of ad hoc rules, and we have to find an ad
6173 -- hoc way of sticking them into the tree. For pragmas that appear
6174 -- before the library unit, we just consider them to be part of the
6175 -- context clause, and pragmas can appear in the Context_Items list
6176 -- of the compilation unit. However, pragmas can also appear after
6177 -- the library item.
6178
6179 -- To deal with all these problems, we create an auxiliary node for
6180 -- a compilation unit, referenced from the N_Compilation_Unit node,
6181 -- that contains these items.
6182
6183 -- N_Compilation_Unit
6184 -- Sloc points to first token of defining unit name
6185 -- Library_Unit (Node4-Sem) corresponding/parent spec/body
6186 -- Context_Items (List1) context items and pragmas preceding unit
6187 -- Private_Present (Flag15) set if library unit has private keyword
6188 -- Unit (Node2) library item or subunit
6189 -- Aux_Decls_Node (Node5) points to the N_Compilation_Unit_Aux node
6190 -- Has_No_Elaboration_Code (Flag17-Sem)
6191 -- Body_Required (Flag13-Sem) set for spec if body is required
6192 -- Acts_As_Spec (Flag4-Sem) flag for subprogram body with no spec
6193 -- Context_Pending (Flag16-Sem)
6194 -- First_Inlined_Subprogram (Node3-Sem)
6195 -- Has_Pragma_Suppress_All (Flag14-Sem)
6196
6197 -- N_Compilation_Unit_Aux
6198 -- Sloc is a copy of the Sloc from the N_Compilation_Unit node
6199 -- Declarations (List2) (set to No_List if no global declarations)
6200 -- Actions (List1) (set to No_List if no actions)
6201 -- Pragmas_After (List5) pragmas after unit (set to No_List if none)
6202 -- Config_Pragmas (List4) config pragmas (set to Empty_List if none)
6203 -- Default_Storage_Pool (Node3-Sem)
6204
6205 --------------------------
6206 -- 10.1.1 Library Item --
6207 --------------------------
6208
6209 -- LIBRARY_ITEM ::=
6210 -- [private] LIBRARY_UNIT_DECLARATION
6211 -- | LIBRARY_UNIT_BODY
6212 -- | [private] LIBRARY_UNIT_RENAMING_DECLARATION
6213
6214 -- Note: PRIVATE is not allowed in Ada 83 mode
6215
6216 -- There is no explicit node in the tree for library item, instead
6217 -- the declaration or body, and the flag for private if present,
6218 -- appear in the N_Compilation_Unit node.
6219
6220 --------------------------------------
6221 -- 10.1.1 Library Unit Declaration --
6222 --------------------------------------
6223
6224 -- LIBRARY_UNIT_DECLARATION ::=
6225 -- SUBPROGRAM_DECLARATION | PACKAGE_DECLARATION
6226 -- | GENERIC_DECLARATION | GENERIC_INSTANTIATION
6227
6228 -----------------------------------------------
6229 -- 10.1.1 Library Unit Renaming Declaration --
6230 -----------------------------------------------
6231
6232 -- LIBRARY_UNIT_RENAMING_DECLARATION ::=
6233 -- PACKAGE_RENAMING_DECLARATION
6234 -- | GENERIC_RENAMING_DECLARATION
6235 -- | SUBPROGRAM_RENAMING_DECLARATION
6236
6237 -------------------------------
6238 -- 10.1.1 Library unit body --
6239 -------------------------------
6240
6241 -- LIBRARY_UNIT_BODY ::= SUBPROGRAM_BODY | PACKAGE_BODY
6242
6243 ------------------------------
6244 -- 10.1.1 Parent Unit Name --
6245 ------------------------------
6246
6247 -- PARENT_UNIT_NAME ::= NAME
6248
6249 ----------------------------
6250 -- 10.1.2 Context clause --
6251 ----------------------------
6252
6253 -- CONTEXT_CLAUSE ::= {CONTEXT_ITEM}
6254
6255 -- The context clause can include pragmas, and any pragmas that appear
6256 -- before the context clause proper (i.e. all configuration pragmas,
6257 -- also appear at the front of this list).
6258
6259 --------------------------
6260 -- 10.1.2 Context_Item --
6261 --------------------------
6262
6263 -- CONTEXT_ITEM ::= WITH_CLAUSE | USE_CLAUSE | WITH_TYPE_CLAUSE
6264
6265 -------------------------
6266 -- 10.1.2 With clause --
6267 -------------------------
6268
6269 -- WITH_CLAUSE ::=
6270 -- with library_unit_NAME {,library_unit_NAME};
6271
6272 -- A separate With clause is built for each name, so that we have
6273 -- a Corresponding_Spec field for each with'ed spec. The flags
6274 -- First_Name and Last_Name are used to reconstruct the exact
6275 -- source form. When a list of names appears in one with clause,
6276 -- the first name in the list has First_Name set, and the last
6277 -- has Last_Name set. If the with clause has only one name, then
6278 -- both of the flags First_Name and Last_Name are set in this name.
6279
6280 -- Note: in the case of implicit with's that are installed by the
6281 -- Rtsfind routine, Implicit_With is set, and the Sloc is typically
6282 -- set to Standard_Location, but it is incorrect to test the Sloc
6283 -- to find out if a with clause is implicit, test the flag instead.
6284
6285 -- N_With_Clause
6286 -- Sloc points to first token of library unit name
6287 -- Withed_Body (Node1-Sem)
6288 -- Name (Node2)
6289 -- Next_Implicit_With (Node3-Sem)
6290 -- Library_Unit (Node4-Sem)
6291 -- Corresponding_Spec (Node5-Sem)
6292 -- First_Name (Flag5) (set to True if first name or only one name)
6293 -- Last_Name (Flag6) (set to True if last name or only one name)
6294 -- Context_Installed (Flag13-Sem)
6295 -- Elaborate_Present (Flag4-Sem)
6296 -- Elaborate_All_Present (Flag14-Sem)
6297 -- Elaborate_All_Desirable (Flag9-Sem)
6298 -- Elaborate_Desirable (Flag11-Sem)
6299 -- Private_Present (Flag15) set if with_clause has private keyword
6300 -- Implicit_With (Flag16-Sem)
6301 -- Implicit_With_From_Instantiation (Flag12-Sem)
6302 -- Limited_Present (Flag17) set if LIMITED is present
6303 -- Limited_View_Installed (Flag18-Sem)
6304 -- Unreferenced_In_Spec (Flag7-Sem)
6305 -- No_Entities_Ref_In_Spec (Flag8-Sem)
6306
6307 -- Note: Limited_Present and Limited_View_Installed are used to support
6308 -- the implementation of Ada 2005 (AI-50217).
6309
6310 -- Similarly, Private_Present is used to support the implementation of
6311 -- Ada 2005 (AI-50262).
6312
6313 ----------------------
6314 -- With_Type clause --
6315 ----------------------
6316
6317 -- This is a GNAT extension, used to implement mutually recursive
6318 -- types declared in different packages.
6319
6320 -- Note: this is now obsolete. The functionality of this construct
6321 -- is now implemented by the Ada 2005 limited_with_clause.
6322
6323 ---------------------
6324 -- 10.2 Body stub --
6325 ---------------------
6326
6327 -- BODY_STUB ::=
6328 -- SUBPROGRAM_BODY_STUB
6329 -- | PACKAGE_BODY_STUB
6330 -- | TASK_BODY_STUB
6331 -- | PROTECTED_BODY_STUB
6332
6333 ----------------------------------
6334 -- 10.1.3 Subprogram Body Stub --
6335 ----------------------------------
6336
6337 -- SUBPROGRAM_BODY_STUB ::=
6338 -- SUBPROGRAM_SPECIFICATION is separate
6339 -- [ASPECT_SPECIFICATION];
6340
6341 -- N_Subprogram_Body_Stub
6342 -- Sloc points to FUNCTION or PROCEDURE
6343 -- Specification (Node1)
6344 -- Corresponding_Spec_Of_Stub (Node2-Sem)
6345 -- Library_Unit (Node4-Sem) points to the subunit
6346 -- Corresponding_Body (Node5-Sem)
6347
6348 -------------------------------
6349 -- 10.1.3 Package Body Stub --
6350 -------------------------------
6351
6352 -- PACKAGE_BODY_STUB ::=
6353 -- package body DEFINING_IDENTIFIER is separate
6354 -- [ASPECT_SPECIFICATION];
6355
6356 -- N_Package_Body_Stub
6357 -- Sloc points to PACKAGE
6358 -- Defining_Identifier (Node1)
6359 -- Corresponding_Spec_Of_Stub (Node2-Sem)
6360 -- Library_Unit (Node4-Sem) points to the subunit
6361 -- Corresponding_Body (Node5-Sem)
6362
6363 ----------------------------
6364 -- 10.1.3 Task Body Stub --
6365 ----------------------------
6366
6367 -- TASK_BODY_STUB ::=
6368 -- task body DEFINING_IDENTIFIER is separate
6369 -- [ASPECT_SPECIFICATION];
6370
6371 -- N_Task_Body_Stub
6372 -- Sloc points to TASK
6373 -- Defining_Identifier (Node1)
6374 -- Corresponding_Spec_Of_Stub (Node2-Sem)
6375 -- Library_Unit (Node4-Sem) points to the subunit
6376 -- Corresponding_Body (Node5-Sem)
6377
6378 ---------------------------------
6379 -- 10.1.3 Protected Body Stub --
6380 ---------------------------------
6381
6382 -- PROTECTED_BODY_STUB ::=
6383 -- protected body DEFINING_IDENTIFIER is separate
6384 -- [ASPECT_SPECIFICATION];
6385
6386 -- Note: protected body stubs are not allowed in Ada 83 mode
6387
6388 -- N_Protected_Body_Stub
6389 -- Sloc points to PROTECTED
6390 -- Defining_Identifier (Node1)
6391 -- Corresponding_Spec_Of_Stub (Node2-Sem)
6392 -- Library_Unit (Node4-Sem) points to the subunit
6393 -- Corresponding_Body (Node5-Sem)
6394
6395 ---------------------
6396 -- 10.1.3 Subunit --
6397 ---------------------
6398
6399 -- SUBUNIT ::= separate (PARENT_UNIT_NAME) PROPER_BODY
6400
6401 -- N_Subunit
6402 -- Sloc points to SEPARATE
6403 -- Name (Node2) is the name of the parent unit
6404 -- Proper_Body (Node1) is the subunit body
6405 -- Corresponding_Stub (Node3-Sem) is the stub declaration for the unit.
6406
6407 ---------------------------------
6408 -- 11.1 Exception Declaration --
6409 ---------------------------------
6410
6411 -- EXCEPTION_DECLARATION ::= DEFINING_IDENTIFIER_LIST : exception
6412 -- [ASPECT_SPECIFICATIONS];
6413
6414 -- For consistency with object declarations etc., the parser converts
6415 -- the case of multiple identifiers being declared to a series of
6416 -- declarations in which the expression is copied, using the More_Ids
6417 -- and Prev_Ids flags to remember the source form as described in the
6418 -- section on "Handling of Defining Identifier Lists".
6419
6420 -- N_Exception_Declaration
6421 -- Sloc points to EXCEPTION
6422 -- Defining_Identifier (Node1)
6423 -- Expression (Node3-Sem)
6424 -- Renaming_Exception (Node2-Sem)
6425 -- More_Ids (Flag5) (set to False if no more identifiers in list)
6426 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
6427
6428 ------------------------------------------
6429 -- 11.2 Handled Sequence Of Statements --
6430 ------------------------------------------
6431
6432 -- HANDLED_SEQUENCE_OF_STATEMENTS ::=
6433 -- SEQUENCE_OF_STATEMENTS
6434 -- [exception
6435 -- EXCEPTION_HANDLER
6436 -- {EXCEPTION_HANDLER}]
6437 -- [at end
6438 -- cleanup_procedure_call (param, param, param, ...);]
6439
6440 -- The AT END phrase is a GNAT extension to provide for cleanups. It is
6441 -- used only internally currently, but is considered to be syntactic.
6442 -- At the moment, the only cleanup action allowed is a single call to
6443 -- a parameterless procedure, and the Identifier field of the node is
6444 -- the procedure to be called. The cleanup action occurs whenever the
6445 -- sequence of statements is left for any reason. The possible reasons
6446 -- are:
6447 -- 1. reaching the end of the sequence
6448 -- 2. exit, return, or goto
6449 -- 3. exception or abort
6450 -- For some back ends, such as gcc with ZCX, "at end" is implemented
6451 -- entirely in the back end. In this case, a handled sequence of
6452 -- statements with an "at end" cannot also have exception handlers.
6453 -- For other back ends, such as gcc with SJLJ and .NET, the
6454 -- implementation is split between the front end and back end; the front
6455 -- end implements 3, and the back end implements 1 and 2. In this case,
6456 -- if there is an "at end", the front end inserts the appropriate
6457 -- exception handler, and this handler takes precedence over "at end"
6458 -- in case of exception.
6459
6460 -- The inserted exception handler is of the form:
6461
6462 -- when all others =>
6463 -- cleanup;
6464 -- raise;
6465
6466 -- where cleanup is the procedure to be called. The reason we do this is
6467 -- so that the front end can handle the necessary entries in the
6468 -- exception tables, and other exception handler actions required as
6469 -- part of the normal handling for exception handlers.
6470
6471 -- The AT END cleanup handler protects only the sequence of statements
6472 -- (not the associated declarations of the parent), just like exception
6473 -- handlers. The big difference is that the cleanup procedure is called
6474 -- on either a normal or an abnormal exit from the statement sequence.
6475
6476 -- Note: the list of Exception_Handlers can contain pragmas as well
6477 -- as actual handlers. In practice these pragmas can only occur at
6478 -- the start of the list, since any pragmas occurring later on will
6479 -- be included in the statement list of the corresponding handler.
6480
6481 -- Note: although in the Ada syntax, the sequence of statements in
6482 -- a handled sequence of statements can only contain statements, we
6483 -- allow free mixing of declarations and statements in the resulting
6484 -- expanded tree. This is for example used to deal with the case of
6485 -- a cleanup procedure that must handle declarations as well as the
6486 -- statements of a block.
6487
6488 -- N_Handled_Sequence_Of_Statements
6489 -- Sloc points to first token of first statement
6490 -- Statements (List3)
6491 -- End_Label (Node4) (set to Empty if expander generated)
6492 -- Exception_Handlers (List5) (set to No_List if none present)
6493 -- At_End_Proc (Node1) (set to Empty if no clean up procedure)
6494 -- First_Real_Statement (Node2-Sem)
6495
6496 -- Note: the parent always contains a Declarations field which contains
6497 -- declarations associated with the handled sequence of statements. This
6498 -- is true even in the case of an accept statement (see description of
6499 -- the N_Accept_Statement node).
6500
6501 -- End_Label refers to the containing construct
6502
6503 -----------------------------
6504 -- 11.2 Exception Handler --
6505 -----------------------------
6506
6507 -- EXCEPTION_HANDLER ::=
6508 -- when [CHOICE_PARAMETER_SPECIFICATION :]
6509 -- EXCEPTION_CHOICE {| EXCEPTION_CHOICE} =>
6510 -- SEQUENCE_OF_STATEMENTS
6511
6512 -- Note: choice parameter specification is not allowed in Ada 83 mode
6513
6514 -- N_Exception_Handler
6515 -- Sloc points to WHEN
6516 -- Choice_Parameter (Node2) (set to Empty if not present)
6517 -- Exception_Choices (List4)
6518 -- Statements (List3)
6519 -- Exception_Label (Node5-Sem) (set to Empty of not present)
6520 -- Local_Raise_Statements (Elist1-Sem) (set to No_Elist if not present)
6521 -- Local_Raise_Not_OK (Flag7-Sem)
6522 -- Has_Local_Raise (Flag8-Sem)
6523
6524 ------------------------------------------
6525 -- 11.2 Choice parameter specification --
6526 ------------------------------------------
6527
6528 -- CHOICE_PARAMETER_SPECIFICATION ::= DEFINING_IDENTIFIER
6529
6530 ----------------------------
6531 -- 11.2 Exception Choice --
6532 ----------------------------
6533
6534 -- EXCEPTION_CHOICE ::= exception_NAME | others
6535
6536 -- Except in the case of OTHERS, no explicit node appears in the tree
6537 -- for exception choice. Instead the exception name appears directly.
6538 -- An OTHERS choice is represented by a N_Others_Choice node (see
6539 -- section 3.8.1.
6540
6541 -- Note: for the exception choice created for an at end handler, the
6542 -- exception choice is an N_Others_Choice node with All_Others set.
6543
6544 ---------------------------
6545 -- 11.3 Raise Statement --
6546 ---------------------------
6547
6548 -- RAISE_STATEMENT ::= raise [exception_NAME];
6549
6550 -- In Ada 2005, we have
6551
6552 -- RAISE_STATEMENT ::=
6553 -- raise; | raise exception_NAME [with string_EXPRESSION];
6554
6555 -- N_Raise_Statement
6556 -- Sloc points to RAISE
6557 -- Name (Node2) (set to Empty if no exception name present)
6558 -- Expression (Node3) (set to Empty if no expression present)
6559 -- From_At_End (Flag4-Sem)
6560
6561 ----------------------------
6562 -- 11.3 Raise Expression --
6563 ----------------------------
6564
6565 -- RAISE_EXPRESSION ::= raise exception_NAME [with string_EXPRESSION]
6566
6567 -- N_Raise_Expression
6568 -- Sloc points to RAISE
6569 -- Name (Node2) (always present)
6570 -- Expression (Node3) (set to Empty if no expression present)
6571 -- Convert_To_Return_False (Flag13-Sem)
6572 -- plus fields for expression
6573
6574 -------------------------------
6575 -- 12.1 Generic Declaration --
6576 -------------------------------
6577
6578 -- GENERIC_DECLARATION ::=
6579 -- GENERIC_SUBPROGRAM_DECLARATION | GENERIC_PACKAGE_DECLARATION
6580
6581 ------------------------------------------
6582 -- 12.1 Generic Subprogram Declaration --
6583 ------------------------------------------
6584
6585 -- GENERIC_SUBPROGRAM_DECLARATION ::=
6586 -- GENERIC_FORMAL_PART SUBPROGRAM_SPECIFICATION
6587 -- [ASPECT_SPECIFICATIONS];
6588
6589 -- Note: Generic_Formal_Declarations can include pragmas
6590
6591 -- N_Generic_Subprogram_Declaration
6592 -- Sloc points to GENERIC
6593 -- Specification (Node1) subprogram specification
6594 -- Corresponding_Body (Node5-Sem)
6595 -- Generic_Formal_Declarations (List2) from generic formal part
6596 -- Parent_Spec (Node4-Sem)
6597
6598 ---------------------------------------
6599 -- 12.1 Generic Package Declaration --
6600 ---------------------------------------
6601
6602 -- GENERIC_PACKAGE_DECLARATION ::=
6603 -- GENERIC_FORMAL_PART PACKAGE_SPECIFICATION
6604 -- [ASPECT_SPECIFICATIONS];
6605
6606 -- Note: when we do generics right, the Activation_Chain_Entity entry
6607 -- for this node can be removed (since the expander won't see generic
6608 -- units any more)???.
6609
6610 -- Note: Generic_Formal_Declarations can include pragmas
6611
6612 -- N_Generic_Package_Declaration
6613 -- Sloc points to GENERIC
6614 -- Specification (Node1) package specification
6615 -- Corresponding_Body (Node5-Sem)
6616 -- Generic_Formal_Declarations (List2) from generic formal part
6617 -- Parent_Spec (Node4-Sem)
6618 -- Activation_Chain_Entity (Node3-Sem)
6619
6620 -------------------------------
6621 -- 12.1 Generic Formal Part --
6622 -------------------------------
6623
6624 -- GENERIC_FORMAL_PART ::=
6625 -- generic {GENERIC_FORMAL_PARAMETER_DECLARATION | USE_CLAUSE}
6626
6627 ------------------------------------------------
6628 -- 12.1 Generic Formal Parameter Declaration --
6629 ------------------------------------------------
6630
6631 -- GENERIC_FORMAL_PARAMETER_DECLARATION ::=
6632 -- FORMAL_OBJECT_DECLARATION
6633 -- | FORMAL_TYPE_DECLARATION
6634 -- | FORMAL_SUBPROGRAM_DECLARATION
6635 -- | FORMAL_PACKAGE_DECLARATION
6636
6637 ---------------------------------
6638 -- 12.3 Generic Instantiation --
6639 ---------------------------------
6640
6641 -- GENERIC_INSTANTIATION ::=
6642 -- package DEFINING_PROGRAM_UNIT_NAME is
6643 -- new generic_package_NAME [GENERIC_ACTUAL_PART]
6644 -- [ASPECT_SPECIFICATIONS];
6645 -- | [[not] overriding]
6646 -- procedure DEFINING_PROGRAM_UNIT_NAME is
6647 -- new generic_procedure_NAME [GENERIC_ACTUAL_PART]
6648 -- [ASPECT_SPECIFICATIONS];
6649 -- | [[not] overriding]
6650 -- function DEFINING_DESIGNATOR is
6651 -- new generic_function_NAME [GENERIC_ACTUAL_PART]
6652 -- [ASPECT_SPECIFICATIONS];
6653
6654 -- N_Package_Instantiation
6655 -- Sloc points to PACKAGE
6656 -- Defining_Unit_Name (Node1)
6657 -- Name (Node2)
6658 -- Generic_Associations (List3) (set to No_List if no
6659 -- generic actual part)
6660 -- Parent_Spec (Node4-Sem)
6661 -- Instance_Spec (Node5-Sem)
6662 -- ABE_Is_Certain (Flag18-Sem)
6663
6664 -- N_Procedure_Instantiation
6665 -- Sloc points to PROCEDURE
6666 -- Defining_Unit_Name (Node1)
6667 -- Name (Node2)
6668 -- Parent_Spec (Node4-Sem)
6669 -- Generic_Associations (List3) (set to No_List if no
6670 -- generic actual part)
6671 -- Instance_Spec (Node5-Sem)
6672 -- Must_Override (Flag14) set if overriding indicator present
6673 -- Must_Not_Override (Flag15) set if not_overriding indicator present
6674 -- ABE_Is_Certain (Flag18-Sem)
6675
6676 -- N_Function_Instantiation
6677 -- Sloc points to FUNCTION
6678 -- Defining_Unit_Name (Node1)
6679 -- Name (Node2)
6680 -- Generic_Associations (List3) (set to No_List if no
6681 -- generic actual part)
6682 -- Parent_Spec (Node4-Sem)
6683 -- Instance_Spec (Node5-Sem)
6684 -- Must_Override (Flag14) set if overriding indicator present
6685 -- Must_Not_Override (Flag15) set if not_overriding indicator present
6686 -- ABE_Is_Certain (Flag18-Sem)
6687
6688 -- Note: overriding indicator is an Ada 2005 feature
6689
6690 -------------------------------
6691 -- 12.3 Generic Actual Part --
6692 -------------------------------
6693
6694 -- GENERIC_ACTUAL_PART ::=
6695 -- (GENERIC_ASSOCIATION {, GENERIC_ASSOCIATION})
6696
6697 -------------------------------
6698 -- 12.3 Generic Association --
6699 -------------------------------
6700
6701 -- GENERIC_ASSOCIATION ::=
6702 -- [generic_formal_parameter_SELECTOR_NAME =>]
6703
6704 -- Note: unlike the procedure call case, a generic association node
6705 -- is generated for every association, even if no formal parameter
6706 -- selector name is present. In this case the parser will leave the
6707 -- Selector_Name field set to Empty, to be filled in later by the
6708 -- semantic pass.
6709
6710 -- In Ada 2005, a formal may be associated with a box, if the
6711 -- association is part of the list of actuals for a formal package.
6712 -- If the association is given by OTHERS => <>, the association is
6713 -- an N_Others_Choice.
6714
6715 -- N_Generic_Association
6716 -- Sloc points to first token of generic association
6717 -- Selector_Name (Node2) (set to Empty if no formal
6718 -- parameter selector name)
6719 -- Explicit_Generic_Actual_Parameter (Node1) (Empty if box present)
6720 -- Box_Present (Flag15) (for formal_package associations with a box)
6721
6722 ---------------------------------------------
6723 -- 12.3 Explicit Generic Actual Parameter --
6724 ---------------------------------------------
6725
6726 -- EXPLICIT_GENERIC_ACTUAL_PARAMETER ::=
6727 -- EXPRESSION | variable_NAME | subprogram_NAME
6728 -- | entry_NAME | SUBTYPE_MARK | package_instance_NAME
6729
6730 -------------------------------------
6731 -- 12.4 Formal Object Declaration --
6732 -------------------------------------
6733
6734 -- FORMAL_OBJECT_DECLARATION ::=
6735 -- DEFINING_IDENTIFIER_LIST :
6736 -- MODE [NULL_EXCLUSION] SUBTYPE_MARK [:= DEFAULT_EXPRESSION]
6737 -- [ASPECT_SPECIFICATIONS];
6738 -- | DEFINING_IDENTIFIER_LIST :
6739 -- MODE ACCESS_DEFINITION [:= DEFAULT_EXPRESSION]
6740 -- [ASPECT_SPECIFICATIONS];
6741
6742 -- Although the syntax allows multiple identifiers in the list, the
6743 -- semantics is as though successive declarations were given with
6744 -- identical type definition and expression components. To simplify
6745 -- semantic processing, the parser represents a multiple declaration
6746 -- case as a sequence of single declarations, using the More_Ids and
6747 -- Prev_Ids flags to preserve the original source form as described
6748 -- in the section on "Handling of Defining Identifier Lists".
6749
6750 -- N_Formal_Object_Declaration
6751 -- Sloc points to first identifier
6752 -- Defining_Identifier (Node1)
6753 -- In_Present (Flag15)
6754 -- Out_Present (Flag17)
6755 -- Null_Exclusion_Present (Flag11) (set to False if not present)
6756 -- Subtype_Mark (Node4) (set to Empty if not present)
6757 -- Access_Definition (Node3) (set to Empty if not present)
6758 -- Default_Expression (Node5) (set to Empty if no default expression)
6759 -- More_Ids (Flag5) (set to False if no more identifiers in list)
6760 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
6761
6762 -----------------------------------
6763 -- 12.5 Formal Type Declaration --
6764 -----------------------------------
6765
6766 -- FORMAL_TYPE_DECLARATION ::=
6767 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART]
6768 -- is FORMAL_TYPE_DEFINITION
6769 -- [ASPECT_SPECIFICATIONS];
6770 -- | type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [is tagged]
6771
6772 -- N_Formal_Type_Declaration
6773 -- Sloc points to TYPE
6774 -- Defining_Identifier (Node1)
6775 -- Formal_Type_Definition (Node3)
6776 -- Discriminant_Specifications (List4) (set to No_List if no
6777 -- discriminant part)
6778 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
6779
6780 ----------------------------------
6781 -- 12.5 Formal type definition --
6782 ----------------------------------
6783
6784 -- FORMAL_TYPE_DEFINITION ::=
6785 -- FORMAL_PRIVATE_TYPE_DEFINITION
6786 -- | FORMAL_DERIVED_TYPE_DEFINITION
6787 -- | FORMAL_DISCRETE_TYPE_DEFINITION
6788 -- | FORMAL_SIGNED_INTEGER_TYPE_DEFINITION
6789 -- | FORMAL_MODULAR_TYPE_DEFINITION
6790 -- | FORMAL_FLOATING_POINT_DEFINITION
6791 -- | FORMAL_ORDINARY_FIXED_POINT_DEFINITION
6792 -- | FORMAL_DECIMAL_FIXED_POINT_DEFINITION
6793 -- | FORMAL_ARRAY_TYPE_DEFINITION
6794 -- | FORMAL_ACCESS_TYPE_DEFINITION
6795 -- | FORMAL_INTERFACE_TYPE_DEFINITION
6796 -- | FORMAL_INCOMPLETE_TYPE_DEFINITION
6797
6798 -- The Ada 2012 syntax introduces two new non-terminals:
6799 -- Formal_{Complete,Incomplete}_Type_Declaration just to introduce
6800 -- the latter category. Here we introduce an incomplete type definition
6801 -- in order to preserve as much as possible the existing structure.
6802
6803 ---------------------------------------------
6804 -- 12.5.1 Formal Private Type Definition --
6805 ---------------------------------------------
6806
6807 -- FORMAL_PRIVATE_TYPE_DEFINITION ::=
6808 -- [[abstract] tagged] [limited] private
6809
6810 -- Note: TAGGED is not allowed in Ada 83 mode
6811
6812 -- N_Formal_Private_Type_Definition
6813 -- Sloc points to PRIVATE
6814 -- Uninitialized_Variable (Node3-Sem)
6815 -- Abstract_Present (Flag4)
6816 -- Tagged_Present (Flag15)
6817 -- Limited_Present (Flag17)
6818
6819 --------------------------------------------
6820 -- 12.5.1 Formal Derived Type Definition --
6821 --------------------------------------------
6822
6823 -- FORMAL_DERIVED_TYPE_DEFINITION ::=
6824 -- [abstract] [limited | synchronized]
6825 -- new SUBTYPE_MARK [[and INTERFACE_LIST] with private]
6826 -- Note: this construct is not allowed in Ada 83 mode
6827
6828 -- N_Formal_Derived_Type_Definition
6829 -- Sloc points to NEW
6830 -- Subtype_Mark (Node4)
6831 -- Private_Present (Flag15)
6832 -- Abstract_Present (Flag4)
6833 -- Limited_Present (Flag17)
6834 -- Synchronized_Present (Flag7)
6835 -- Interface_List (List2) (set to No_List if none)
6836
6837 -----------------------------------------------
6838 -- 12.5.1 Formal Incomplete Type Definition --
6839 -----------------------------------------------
6840
6841 -- FORMAL_INCOMPLETE_TYPE_DEFINITION ::= [tagged]
6842
6843 -- N_Formal_Incomplete_Type_Definition
6844 -- Sloc points to identifier of parent
6845 -- Tagged_Present (Flag15)
6846
6847 ---------------------------------------------
6848 -- 12.5.2 Formal Discrete Type Definition --
6849 ---------------------------------------------
6850
6851 -- FORMAL_DISCRETE_TYPE_DEFINITION ::= (<>)
6852
6853 -- N_Formal_Discrete_Type_Definition
6854 -- Sloc points to (
6855
6856 ---------------------------------------------------
6857 -- 12.5.2 Formal Signed Integer Type Definition --
6858 ---------------------------------------------------
6859
6860 -- FORMAL_SIGNED_INTEGER_TYPE_DEFINITION ::= range <>
6861
6862 -- N_Formal_Signed_Integer_Type_Definition
6863 -- Sloc points to RANGE
6864
6865 --------------------------------------------
6866 -- 12.5.2 Formal Modular Type Definition --
6867 --------------------------------------------
6868
6869 -- FORMAL_MODULAR_TYPE_DEFINITION ::= mod <>
6870
6871 -- N_Formal_Modular_Type_Definition
6872 -- Sloc points to MOD
6873
6874 ----------------------------------------------
6875 -- 12.5.2 Formal Floating Point Definition --
6876 ----------------------------------------------
6877
6878 -- FORMAL_FLOATING_POINT_DEFINITION ::= digits <>
6879
6880 -- N_Formal_Floating_Point_Definition
6881 -- Sloc points to DIGITS
6882
6883 ----------------------------------------------------
6884 -- 12.5.2 Formal Ordinary Fixed Point Definition --
6885 ----------------------------------------------------
6886
6887 -- FORMAL_ORDINARY_FIXED_POINT_DEFINITION ::= delta <>
6888
6889 -- N_Formal_Ordinary_Fixed_Point_Definition
6890 -- Sloc points to DELTA
6891
6892 ---------------------------------------------------
6893 -- 12.5.2 Formal Decimal Fixed Point Definition --
6894 ---------------------------------------------------
6895
6896 -- FORMAL_DECIMAL_FIXED_POINT_DEFINITION ::= delta <> digits <>
6897
6898 -- Note: formal decimal fixed point definition not allowed in Ada 83
6899
6900 -- N_Formal_Decimal_Fixed_Point_Definition
6901 -- Sloc points to DELTA
6902
6903 ------------------------------------------
6904 -- 12.5.3 Formal Array Type Definition --
6905 ------------------------------------------
6906
6907 -- FORMAL_ARRAY_TYPE_DEFINITION ::= ARRAY_TYPE_DEFINITION
6908
6909 -------------------------------------------
6910 -- 12.5.4 Formal Access Type Definition --
6911 -------------------------------------------
6912
6913 -- FORMAL_ACCESS_TYPE_DEFINITION ::= ACCESS_TYPE_DEFINITION
6914
6915 ----------------------------------------------
6916 -- 12.5.5 Formal Interface Type Definition --
6917 ----------------------------------------------
6918
6919 -- FORMAL_INTERFACE_TYPE_DEFINITION ::= INTERFACE_TYPE_DEFINITION
6920
6921 -----------------------------------------
6922 -- 12.6 Formal Subprogram Declaration --
6923 -----------------------------------------
6924
6925 -- FORMAL_SUBPROGRAM_DECLARATION ::=
6926 -- FORMAL_CONCRETE_SUBPROGRAM_DECLARATION
6927 -- | FORMAL_ABSTRACT_SUBPROGRAM_DECLARATION
6928
6929 --------------------------------------------------
6930 -- 12.6 Formal Concrete Subprogram Declaration --
6931 --------------------------------------------------
6932
6933 -- FORMAL_CONCRETE_SUBPROGRAM_DECLARATION ::=
6934 -- with SUBPROGRAM_SPECIFICATION [is SUBPROGRAM_DEFAULT]
6935 -- [ASPECT_SPECIFICATIONS];
6936
6937 -- N_Formal_Concrete_Subprogram_Declaration
6938 -- Sloc points to WITH
6939 -- Specification (Node1)
6940 -- Default_Name (Node2) (set to Empty if no subprogram default)
6941 -- Box_Present (Flag15)
6942
6943 -- Note: if no subprogram default is present, then Name is set
6944 -- to Empty, and Box_Present is False.
6945
6946 --------------------------------------------------
6947 -- 12.6 Formal Abstract Subprogram Declaration --
6948 --------------------------------------------------
6949
6950 -- FORMAL_ABSTRACT_SUBPROGRAM_DECLARATION ::=
6951 -- with SUBPROGRAM_SPECIFICATION is abstract [SUBPROGRAM_DEFAULT]
6952 -- [ASPECT_SPECIFICATIONS];
6953
6954 -- N_Formal_Abstract_Subprogram_Declaration
6955 -- Sloc points to WITH
6956 -- Specification (Node1)
6957 -- Default_Name (Node2) (set to Empty if no subprogram default)
6958 -- Box_Present (Flag15)
6959
6960 -- Note: if no subprogram default is present, then Name is set
6961 -- to Empty, and Box_Present is False.
6962
6963 ------------------------------
6964 -- 12.6 Subprogram Default --
6965 ------------------------------
6966
6967 -- SUBPROGRAM_DEFAULT ::= DEFAULT_NAME | <>
6968
6969 -- There is no separate node in the tree for a subprogram default.
6970 -- Instead the parent (N_Formal_Concrete_Subprogram_Declaration
6971 -- or N_Formal_Abstract_Subprogram_Declaration) node contains the
6972 -- default name or box indication, as needed.
6973
6974 ------------------------
6975 -- 12.6 Default Name --
6976 ------------------------
6977
6978 -- DEFAULT_NAME ::= NAME
6979
6980 --------------------------------------
6981 -- 12.7 Formal Package Declaration --
6982 --------------------------------------
6983
6984 -- FORMAL_PACKAGE_DECLARATION ::=
6985 -- with package DEFINING_IDENTIFIER
6986 -- is new generic_package_NAME FORMAL_PACKAGE_ACTUAL_PART
6987 -- [ASPECT_SPECIFICATIONS];
6988
6989 -- Note: formal package declarations not allowed in Ada 83 mode
6990
6991 -- N_Formal_Package_Declaration
6992 -- Sloc points to WITH
6993 -- Defining_Identifier (Node1)
6994 -- Name (Node2)
6995 -- Generic_Associations (List3) (set to No_List if (<>) case or
6996 -- empty generic actual part)
6997 -- Box_Present (Flag15)
6998 -- Instance_Spec (Node5-Sem)
6999 -- ABE_Is_Certain (Flag18-Sem)
7000
7001 --------------------------------------
7002 -- 12.7 Formal Package Actual Part --
7003 --------------------------------------
7004
7005 -- FORMAL_PACKAGE_ACTUAL_PART ::=
7006 -- ([OTHERS] => <>)
7007 -- | [GENERIC_ACTUAL_PART]
7008 -- (FORMAL_PACKAGE_ASSOCIATION {. FORMAL_PACKAGE_ASSOCIATION}
7009
7010 -- FORMAL_PACKAGE_ASSOCIATION ::=
7011 -- GENERIC_ASSOCIATION
7012 -- | GENERIC_FORMAL_PARAMETER_SELECTOR_NAME => <>
7013
7014 -- There is no explicit node in the tree for a formal package actual
7015 -- part. Instead the information appears in the parent node (i.e. the
7016 -- formal package declaration node itself).
7017
7018 -- There is no explicit node for a formal package association. All of
7019 -- them are represented either by a generic association, possibly with
7020 -- Box_Present, or by an N_Others_Choice.
7021
7022 ---------------------------------
7023 -- 13.1 Representation clause --
7024 ---------------------------------
7025
7026 -- REPRESENTATION_CLAUSE ::=
7027 -- ATTRIBUTE_DEFINITION_CLAUSE
7028 -- | ENUMERATION_REPRESENTATION_CLAUSE
7029 -- | RECORD_REPRESENTATION_CLAUSE
7030 -- | AT_CLAUSE
7031
7032 ----------------------
7033 -- 13.1 Local Name --
7034 ----------------------
7035
7036 -- LOCAL_NAME :=
7037 -- DIRECT_NAME
7038 -- | DIRECT_NAME'ATTRIBUTE_DESIGNATOR
7039 -- | library_unit_NAME
7040
7041 -- The construct DIRECT_NAME'ATTRIBUTE_DESIGNATOR appears in the tree
7042 -- as an attribute reference, which has essentially the same form.
7043
7044 ---------------------------------------
7045 -- 13.3 Attribute definition clause --
7046 ---------------------------------------
7047
7048 -- ATTRIBUTE_DEFINITION_CLAUSE ::=
7049 -- for LOCAL_NAME'ATTRIBUTE_DESIGNATOR use EXPRESSION;
7050 -- | for LOCAL_NAME'ATTRIBUTE_DESIGNATOR use NAME;
7051
7052 -- In Ada 83, the expression must be a simple expression and the
7053 -- local name must be a direct name.
7054
7055 -- Note: the only attribute definition clause that is processed by
7056 -- gigi is an address clause. For all other cases, the information
7057 -- is extracted by the front end and either results in setting entity
7058 -- information, e.g. Esize for the Size clause, or in appropriate
7059 -- expansion actions (e.g. in the case of Storage_Size).
7060
7061 -- For an address clause, Gigi constructs the appropriate addressing
7062 -- code. It also ensures that no aliasing optimizations are made
7063 -- for the object for which the address clause appears.
7064
7065 -- Note: for an address clause used to achieve an overlay:
7066
7067 -- A : Integer;
7068 -- B : Integer;
7069 -- for B'Address use A'Address;
7070
7071 -- the above rule means that Gigi will ensure that no optimizations
7072 -- will be made for B that would violate the implementation advice
7073 -- of RM 13.3(19). However, this advice applies only to B and not
7074 -- to A, which seems unfortunate. The GNAT front end will mark the
7075 -- object A as volatile to also prevent unwanted optimization
7076 -- assumptions based on no aliasing being made for B.
7077
7078 -- N_Attribute_Definition_Clause
7079 -- Sloc points to FOR
7080 -- Name (Node2) the local name
7081 -- Chars (Name1) the identifier name from the attribute designator
7082 -- Expression (Node3) the expression or name
7083 -- Entity (Node4-Sem)
7084 -- Next_Rep_Item (Node5-Sem)
7085 -- From_At_Mod (Flag4-Sem)
7086 -- Check_Address_Alignment (Flag11-Sem)
7087 -- From_Aspect_Specification (Flag13-Sem)
7088 -- Is_Delayed_Aspect (Flag14-Sem)
7089 -- Address_Warning_Posted (Flag18-Sem)
7090
7091 -- Note: if From_Aspect_Specification is set, then Sloc points to the
7092 -- aspect name, and Entity is resolved already to reference the entity
7093 -- to which the aspect applies.
7094
7095 -----------------------------------
7096 -- 13.3.1 Aspect Specifications --
7097 -----------------------------------
7098
7099 -- We modify the RM grammar here, the RM grammar is:
7100
7101 -- ASPECT_SPECIFICATION ::=
7102 -- with ASPECT_MARK [=> ASPECT_DEFINITION] {,
7103 -- ASPECT_MARK [=> ASPECT_DEFINITION] }
7104
7105 -- ASPECT_MARK ::= aspect_IDENTIFIER['Class]
7106
7107 -- ASPECT_DEFINITION ::= NAME | EXPRESSION
7108
7109 -- That's inconvenient, since there is no non-terminal name for a single
7110 -- entry in the list of aspects. So we use this grammar instead:
7111
7112 -- ASPECT_SPECIFICATIONS ::=
7113 -- with ASPECT_SPECIFICATION {, ASPECT_SPECIFICATION}
7114
7115 -- ASPECT_SPECIFICATION =>
7116 -- ASPECT_MARK [=> ASPECT_DEFINITION]
7117
7118 -- ASPECT_MARK ::= aspect_IDENTIFIER['Class]
7119
7120 -- ASPECT_DEFINITION ::= NAME | EXPRESSION
7121
7122 -- Note that for Annotate, the ASPECT_DEFINITION is a pure positional
7123 -- aggregate with the elements of the aggregate corresponding to the
7124 -- successive arguments of the corresponding pragma.
7125
7126 -- See separate package Aspects for details on the incorporation of
7127 -- these nodes into the tree, and how aspect specifications for a given
7128 -- declaration node are associated with that node.
7129
7130 -- N_Aspect_Specification
7131 -- Sloc points to aspect identifier
7132 -- Identifier (Node1) aspect identifier
7133 -- Aspect_Rep_Item (Node2-Sem)
7134 -- Expression (Node3) Aspect_Definition (set to Empty if none)
7135 -- Entity (Node4-Sem) entity to which the aspect applies
7136 -- Next_Rep_Item (Node5-Sem)
7137 -- Class_Present (Flag6) Set if 'Class present
7138 -- Is_Ignored (Flag9-Sem)
7139 -- Is_Checked (Flag11-Sem)
7140 -- Is_Delayed_Aspect (Flag14-Sem)
7141 -- Is_Disabled (Flag15-Sem)
7142 -- Is_Boolean_Aspect (Flag16-Sem)
7143 -- Split_PPC (Flag17) Set if split pre/post attribute
7144
7145 -- Note: Aspect_Specification is an Ada 2012 feature
7146
7147 -- Note: The Identifier serves to identify the aspect involved (it
7148 -- is the aspect whose name corresponds to the Chars field). This
7149 -- means that the other fields of this identifier are unused, and
7150 -- in particular we use the Entity field of this identifier to save
7151 -- a copy of the expression for visibility analysis, see spec of
7152 -- Sem_Ch13 for full details of this usage.
7153
7154 -- In the case of aspects of the form xxx'Class, the aspect identifier
7155 -- is for xxx, and Class_Present is set to True.
7156
7157 -- Note: When a Pre or Post aspect specification is processed, it is
7158 -- broken into AND THEN sections. The left most section has Split_PPC
7159 -- set to False, indicating that it is the original specification (e.g.
7160 -- for posting errors). For the other sections, Split_PPC is set True.
7161
7162 ---------------------------------------------
7163 -- 13.4 Enumeration representation clause --
7164 ---------------------------------------------
7165
7166 -- ENUMERATION_REPRESENTATION_CLAUSE ::=
7167 -- for first_subtype_LOCAL_NAME use ENUMERATION_AGGREGATE;
7168
7169 -- In Ada 83, the name must be a direct name
7170
7171 -- N_Enumeration_Representation_Clause
7172 -- Sloc points to FOR
7173 -- Identifier (Node1) direct name
7174 -- Array_Aggregate (Node3)
7175 -- Next_Rep_Item (Node5-Sem)
7176
7177 ---------------------------------
7178 -- 13.4 Enumeration aggregate --
7179 ---------------------------------
7180
7181 -- ENUMERATION_AGGREGATE ::= ARRAY_AGGREGATE
7182
7183 ------------------------------------------
7184 -- 13.5.1 Record representation clause --
7185 ------------------------------------------
7186
7187 -- RECORD_REPRESENTATION_CLAUSE ::=
7188 -- for first_subtype_LOCAL_NAME use
7189 -- record [MOD_CLAUSE]
7190 -- {COMPONENT_CLAUSE}
7191 -- end record;
7192
7193 -- Gigi restriction: Mod_Clause is always Empty (if present it is
7194 -- replaced by a corresponding Alignment attribute definition clause).
7195
7196 -- Note: Component_Clauses can include pragmas
7197
7198 -- N_Record_Representation_Clause
7199 -- Sloc points to FOR
7200 -- Identifier (Node1) direct name
7201 -- Mod_Clause (Node2) (set to Empty if no mod clause present)
7202 -- Component_Clauses (List3)
7203 -- Next_Rep_Item (Node5-Sem)
7204
7205 ------------------------------
7206 -- 13.5.1 Component clause --
7207 ------------------------------
7208
7209 -- COMPONENT_CLAUSE ::=
7210 -- component_LOCAL_NAME at POSITION
7211 -- range FIRST_BIT .. LAST_BIT;
7212
7213 -- N_Component_Clause
7214 -- Sloc points to AT
7215 -- Component_Name (Node1) points to Name or Attribute_Reference
7216 -- Position (Node2)
7217 -- First_Bit (Node3)
7218 -- Last_Bit (Node4)
7219
7220 ----------------------
7221 -- 13.5.1 Position --
7222 ----------------------
7223
7224 -- POSITION ::= static_EXPRESSION
7225
7226 -----------------------
7227 -- 13.5.1 First_Bit --
7228 -----------------------
7229
7230 -- FIRST_BIT ::= static_SIMPLE_EXPRESSION
7231
7232 ----------------------
7233 -- 13.5.1 Last_Bit --
7234 ----------------------
7235
7236 -- LAST_BIT ::= static_SIMPLE_EXPRESSION
7237
7238 --------------------------
7239 -- 13.8 Code statement --
7240 --------------------------
7241
7242 -- CODE_STATEMENT ::= QUALIFIED_EXPRESSION;
7243
7244 -- Note: in GNAT, the qualified expression has the form
7245
7246 -- Asm_Insn'(Asm (...));
7247
7248 -- See package System.Machine_Code in file s-maccod.ads for details on
7249 -- the allowed parameters to Asm. There are two ways this node can
7250 -- arise, as a code statement, in which case the expression is the
7251 -- qualified expression, or as a result of the expansion of an intrinsic
7252 -- call to the Asm or Asm_Input procedure.
7253
7254 -- N_Code_Statement
7255 -- Sloc points to first token of the expression
7256 -- Expression (Node3)
7257
7258 -- Note: package Exp_Code contains an abstract functional interface
7259 -- for use by Gigi in accessing the data from N_Code_Statement nodes.
7260
7261 ------------------------
7262 -- 13.12 Restriction --
7263 ------------------------
7264
7265 -- RESTRICTION ::=
7266 -- restriction_IDENTIFIER
7267 -- | restriction_parameter_IDENTIFIER => EXPRESSION
7268
7269 -- There is no explicit node for restrictions. Instead the restriction
7270 -- appears in normal pragma syntax as a pragma argument association,
7271 -- which has the same syntactic form.
7272
7273 --------------------------
7274 -- B.2 Shift Operators --
7275 --------------------------
7276
7277 -- Calls to the intrinsic shift functions are converted to one of
7278 -- the following shift nodes, which have the form of normal binary
7279 -- operator names. Note that for a given shift operation, one node
7280 -- covers all possible types, as for normal operators.
7281
7282 -- Note: it is perfectly permissible for the expander to generate
7283 -- shift operation nodes directly, in which case they will be analyzed
7284 -- and parsed in the usual manner.
7285
7286 -- Sprint syntax: shift-function-name!(expr, count)
7287
7288 -- Note: the Left_Opnd field holds the first argument (the value to
7289 -- be shifted). The Right_Opnd field holds the second argument (the
7290 -- shift count). The Chars field is the name of the intrinsic function.
7291
7292 -- N_Op_Rotate_Left
7293 -- Sloc points to the function name
7294 -- plus fields for binary operator
7295 -- plus fields for expression
7296 -- Shift_Count_OK (Flag4-Sem)
7297
7298 -- N_Op_Rotate_Right
7299 -- Sloc points to the function name
7300 -- plus fields for binary operator
7301 -- plus fields for expression
7302 -- Shift_Count_OK (Flag4-Sem)
7303
7304 -- N_Op_Shift_Left
7305 -- Sloc points to the function name
7306 -- plus fields for binary operator
7307 -- plus fields for expression
7308 -- Shift_Count_OK (Flag4-Sem)
7309
7310 -- N_Op_Shift_Right_Arithmetic
7311 -- Sloc points to the function name
7312 -- plus fields for binary operator
7313 -- plus fields for expression
7314 -- Shift_Count_OK (Flag4-Sem)
7315
7316 -- N_Op_Shift_Right
7317 -- Sloc points to the function name
7318 -- plus fields for binary operator
7319 -- plus fields for expression
7320 -- Shift_Count_OK (Flag4-Sem)
7321
7322 -- Note: N_Op_Rotate_Left, N_Op_Rotate_Right, N_Shift_Right_Arithmetic
7323 -- never appear in the expanded tree if Modify_Tree_For_C mode is set.
7324
7325 -- Note: For N_Op_Shift_Left and N_Op_Shift_Right, the right operand is
7326 -- always less than the word size if Modify_Tree_For_C mode is set.
7327
7328 --------------------------
7329 -- Obsolescent Features --
7330 --------------------------
7331
7332 -- The syntax descriptions and tree nodes for obsolescent features are
7333 -- grouped together, corresponding to their location in appendix I in
7334 -- the RM. However, parsing and semantic analysis for these constructs
7335 -- is located in an appropriate chapter (see individual notes).
7336
7337 ---------------------------
7338 -- J.3 Delta Constraint --
7339 ---------------------------
7340
7341 -- Note: the parse routine for this construct is located in section
7342 -- 3.5.9 of Par-Ch3, and semantic analysis is in Sem_Ch3, which is
7343 -- where delta constraint logically belongs.
7344
7345 -- DELTA_CONSTRAINT ::= DELTA static_EXPRESSION [RANGE_CONSTRAINT]
7346
7347 -- N_Delta_Constraint
7348 -- Sloc points to DELTA
7349 -- Delta_Expression (Node3)
7350 -- Range_Constraint (Node4) (set to Empty if not present)
7351
7352 --------------------
7353 -- J.7 At Clause --
7354 --------------------
7355
7356 -- AT_CLAUSE ::= for DIRECT_NAME use at EXPRESSION;
7357
7358 -- Note: the parse routine for this construct is located in Par-Ch13,
7359 -- and the semantic analysis is in Sem_Ch13, where at clause logically
7360 -- belongs if it were not obsolescent.
7361
7362 -- Note: in Ada 83 the expression must be a simple expression
7363
7364 -- Gigi restriction: This node never appears, it is rewritten as an
7365 -- address attribute definition clause.
7366
7367 -- N_At_Clause
7368 -- Sloc points to FOR
7369 -- Identifier (Node1)
7370 -- Expression (Node3)
7371
7372 ---------------------
7373 -- J.8 Mod clause --
7374 ---------------------
7375
7376 -- MOD_CLAUSE ::= at mod static_EXPRESSION;
7377
7378 -- Note: the parse routine for this construct is located in Par-Ch13,
7379 -- and the semantic analysis is in Sem_Ch13, where mod clause logically
7380 -- belongs if it were not obsolescent.
7381
7382 -- Note: in Ada 83, the expression must be a simple expression
7383
7384 -- Gigi restriction: this node never appears. It is replaced
7385 -- by a corresponding Alignment attribute definition clause.
7386
7387 -- Note: pragmas can appear before and after the MOD_CLAUSE since
7388 -- its name has "clause" in it. This is rather strange, but is quite
7389 -- definitely specified. The pragmas before are collected in the
7390 -- Pragmas_Before field of the mod clause node itself, and pragmas
7391 -- after are simply swallowed up in the list of component clauses.
7392
7393 -- N_Mod_Clause
7394 -- Sloc points to AT
7395 -- Expression (Node3)
7396 -- Pragmas_Before (List4) Pragmas before mod clause (No_List if none)
7397
7398 --------------------
7399 -- Semantic Nodes --
7400 --------------------
7401
7402 -- These semantic nodes are used to hold additional semantic information.
7403 -- They are inserted into the tree as a result of semantic processing.
7404 -- Although there are no legitimate source syntax constructions that
7405 -- correspond directly to these nodes, we need a source syntax for the
7406 -- reconstructed tree printed by Sprint, and the node descriptions here
7407 -- show this syntax.
7408
7409 ------------------------
7410 -- Compound Statement --
7411 ------------------------
7412
7413 -- This node is created by the analyzer/expander to handle some
7414 -- expansion cases where a sequence of actions needs to be captured
7415 -- within a single node (which acts as a container and allows the
7416 -- entire list of actions to be moved around as a whole) appearing
7417 -- in a sequence of statements.
7418
7419 -- This is the statement counterpart to the expression node
7420 -- N_Expression_With_Actions.
7421
7422 -- The required semantics is that the set of actions is executed in
7423 -- the order in which it appears, as though they appeared by themselves
7424 -- in the enclosing list of declarations of statements. Unlike what
7425 -- happens when using an N_Block_Statement, no new scope is introduced.
7426
7427 -- Note: for the time being, this is used only as a transient
7428 -- representation during expansion, and all compound statement nodes
7429 -- must be exploded back to their constituent statements before handing
7430 -- the tree to the back end.
7431
7432 -- Sprint syntax: do
7433 -- action;
7434 -- action;
7435 -- ...
7436 -- action;
7437 -- end;
7438
7439 -- N_Compound_Statement
7440 -- Actions (List1)
7441
7442 --------------
7443 -- Contract --
7444 --------------
7445
7446 -- This node is used to hold the various parts of an entry, subprogram
7447 -- [body] or package [body] contract, in particular:
7448 -- Abstract states declared by a package declaration
7449 -- Contract cases that apply to a subprogram
7450 -- Dependency relations of inputs and output of a subprogram
7451 -- Global annotations classifying data as input or output
7452 -- Initialization sequences for a package declaration
7453 -- Pre- and postconditions that apply to a subprogram
7454
7455 -- The node appears in an entry and [generic] subprogram [body] entity.
7456
7457 -- Sprint syntax: <none> as the node should not appear in the tree, but
7458 -- only attached to an entry or [generic] subprogram
7459 -- entity.
7460
7461 -- N_Contract
7462 -- Sloc points to the subprogram's name
7463 -- Pre_Post_Conditions (Node1) (set to Empty if none)
7464 -- Contract_Test_Cases (Node2) (set to Empty if none)
7465 -- Classifications (Node3) (set to Empty if none)
7466
7467 -- Pre_Post_Conditions contains a collection of pragmas that correspond
7468 -- to pre- and postconditions associated with an entry or a subprogram
7469 -- [body or stub]. The pragmas can either come from source or be the
7470 -- byproduct of aspect expansion. Currently the following pragmas appear
7471 -- in this list:
7472 -- Post
7473 -- Postcondition
7474 -- Pre
7475 -- Precondition
7476 -- Refined_Post
7477 -- The ordering in the list is in LIFO fashion.
7478
7479 -- Note that there might be multiple preconditions or postconditions
7480 -- in this list, either because they come from separate pragmas in the
7481 -- source, or because a Pre (resp. Post) aspect specification has been
7482 -- broken into AND THEN sections. See Split_PPC for details.
7483
7484 -- Contract_Test_Cases contains a collection of pragmas that correspond
7485 -- to aspects/pragmas Contract_Cases and Test_Case. The ordering in the
7486 -- list is in LIFO fashion.
7487
7488 -- Classifications contains pragmas that either declare, categorize or
7489 -- establish dependencies between subprogram or package inputs and
7490 -- outputs. Currently the following pragmas appear in this list:
7491 -- Abstract_States
7492 -- Async_Readers
7493 -- Async_Writers
7494 -- Depends
7495 -- Effective_Reads
7496 -- Effective_Writes
7497 -- Global
7498 -- Initial_Condition
7499 -- Initializes
7500 -- Part_Of
7501 -- Refined_Depends
7502 -- Refined_Global
7503 -- Refined_States
7504 -- The ordering is in LIFO fashion.
7505
7506 -------------------
7507 -- Expanded Name --
7508 -------------------
7509
7510 -- The N_Expanded_Name node is used to represent a selected component
7511 -- name that has been resolved to an expanded name. The semantic phase
7512 -- replaces N_Selected_Component nodes that represent names by the use
7513 -- of this node, leaving the N_Selected_Component node used only when
7514 -- the prefix is a record or protected type.
7515
7516 -- The fields of the N_Expanded_Name node are layed out identically
7517 -- to those of the N_Selected_Component node, allowing conversion of
7518 -- an expanded name node to a selected component node to be done
7519 -- easily, see Sinfo.CN.Change_Selected_Component_To_Expanded_Name.
7520
7521 -- There is no special sprint syntax for an expanded name
7522
7523 -- N_Expanded_Name
7524 -- Sloc points to the period
7525 -- Chars (Name1) copy of Chars field of selector name
7526 -- Prefix (Node3)
7527 -- Selector_Name (Node2)
7528 -- Entity (Node4-Sem)
7529 -- Associated_Node (Node4-Sem)
7530 -- Has_Private_View (Flag11-Sem) set in generic units.
7531 -- Redundant_Use (Flag13-Sem)
7532 -- Atomic_Sync_Required (Flag14-Sem)
7533 -- plus fields for expression
7534
7535 -----------------------------
7536 -- Expression With Actions --
7537 -----------------------------
7538
7539 -- This node is created by the analyzer/expander to handle some
7540 -- expansion cases, notably short circuit forms where there are
7541 -- actions associated with the right-hand side operand.
7542
7543 -- The N_Expression_With_Actions node represents an expression with
7544 -- an associated set of actions (which are executable statements and
7545 -- declarations, as might occur in a handled statement sequence).
7546
7547 -- The required semantics is that the set of actions is executed in
7548 -- the order in which it appears just before the expression is
7549 -- evaluated (and these actions must only be executed if the value
7550 -- of the expression is evaluated). The node is considered to be
7551 -- a subexpression, whose value is the value of the Expression after
7552 -- executing all the actions.
7553
7554 -- If the actions contain declarations, then these declarations may
7555 -- be referenced within the expression. However note that there is
7556 -- no proper scope associated with the expression-with-action, so the
7557 -- back-end will elaborate them in the context of the enclosing scope.
7558
7559 -- Sprint syntax: do
7560 -- action;
7561 -- action;
7562 -- ...
7563 -- action;
7564 -- in expression end
7565
7566 -- N_Expression_With_Actions
7567 -- Actions (List1)
7568 -- Expression (Node3)
7569 -- plus fields for expression
7570
7571 -- Note: In the final generated tree presented to the code generator,
7572 -- the actions list is always non-null, since there is no point in this
7573 -- node if the actions are Empty. During semantic analysis there are
7574 -- cases where it is convenient to temporarily generate an empty actions
7575 -- list. This arises in cases where we create such an empty actions
7576 -- list, and it may or may not end up being a place where additional
7577 -- actions are inserted. The expander removes such empty cases after
7578 -- the expression of the node is fully analyzed and expanded, at which
7579 -- point it is safe to remove it, since no more actions can be inserted.
7580
7581 -- Note: In Modify_Tree_For_C, we never generate any declarations in
7582 -- the action list, which can contain only non-declarative statements.
7583
7584 --------------------
7585 -- Free Statement --
7586 --------------------
7587
7588 -- The N_Free_Statement node is generated as a result of a call to an
7589 -- instantiation of Unchecked_Deallocation. The instantiation of this
7590 -- generic is handled specially and generates this node directly.
7591
7592 -- Sprint syntax: free expression
7593
7594 -- N_Free_Statement
7595 -- Sloc is copied from the unchecked deallocation call
7596 -- Expression (Node3) argument to unchecked deallocation call
7597 -- Storage_Pool (Node1-Sem)
7598 -- Procedure_To_Call (Node2-Sem)
7599 -- Actual_Designated_Subtype (Node4-Sem)
7600
7601 -- Note: in the case where a debug source file is generated, the Sloc
7602 -- for this node points to the FREE keyword in the Sprint file output.
7603
7604 -------------------
7605 -- Freeze Entity --
7606 -------------------
7607
7608 -- This node marks the point in a declarative part at which an entity
7609 -- declared therein becomes frozen. The expander places initialization
7610 -- procedures for types at those points. Gigi uses the freezing point
7611 -- to elaborate entities that may depend on previous private types.
7612
7613 -- See the section in Einfo "Delayed Freezing and Elaboration" for
7614 -- a full description of the use of this node.
7615
7616 -- The Entity field points back to the entity for the type (whose
7617 -- Freeze_Node field points back to this freeze node).
7618
7619 -- The Actions field contains a list of declarations and statements
7620 -- generated by the expander which are associated with the freeze
7621 -- node, and are elaborated as though the freeze node were replaced
7622 -- by this sequence of actions.
7623
7624 -- Note: the Sloc field in the freeze node references a construct
7625 -- associated with the freezing point. This is used for posting
7626 -- messages in some error/warning situations, e.g. the case where
7627 -- a primitive operation of a tagged type is declared too late.
7628
7629 -- Sprint syntax: freeze entity-name [
7630 -- freeze actions
7631 -- ]
7632
7633 -- N_Freeze_Entity
7634 -- Sloc points near freeze point (see above special note)
7635 -- Entity (Node4-Sem)
7636 -- Access_Types_To_Process (Elist2-Sem) (set to No_Elist if none)
7637 -- TSS_Elist (Elist3-Sem) (set to No_Elist if no associated TSS's)
7638 -- Actions (List1) (set to No_List if no freeze actions)
7639 -- First_Subtype_Link (Node5-Sem) (set to Empty if no link)
7640
7641 -- The Actions field holds actions associated with the freeze. These
7642 -- actions are elaborated at the point where the type is frozen.
7643
7644 -- Note: in the case where a debug source file is generated, the Sloc
7645 -- for this node points to the FREEZE keyword in the Sprint file output.
7646
7647 ---------------------------
7648 -- Freeze Generic Entity --
7649 ---------------------------
7650
7651 -- The freeze point of an entity indicates the point at which the
7652 -- information needed to generate code for the entity is complete.
7653 -- The freeze node for an entity triggers expander activities, such as
7654 -- build initialization procedures, and backend activities, such as
7655 -- completing the elaboration of packages.
7656
7657 -- For entities declared within a generic unit, for which no code is
7658 -- generated, the freeze point is not equally meaningful. However, in
7659 -- Ada 2012 several semantic checks on declarations must be delayed to
7660 -- the freeze point, and we need to include such a mark in the tree to
7661 -- trigger these checks. The Freeze_Generic_Entity node plays no other
7662 -- role, and is ignored by the expander and the back-end.
7663
7664 -- Sprint syntax: freeze_generic entity-name
7665
7666 -- N_Freeze_Generic_Entity
7667 -- Sloc points near freeze point
7668 -- Entity (Node4-Sem)
7669
7670 --------------------------------
7671 -- Implicit Label Declaration --
7672 --------------------------------
7673
7674 -- An implicit label declaration is created for every occurrence of a
7675 -- label on a statement or a label on a block or loop. It is chained
7676 -- in the declarations of the innermost enclosing block as specified
7677 -- in RM section 5.1 (3).
7678
7679 -- The Defining_Identifier is the actual identifier for the statement
7680 -- identifier. Note that the occurrence of the label is a reference, NOT
7681 -- the defining occurrence. The defining occurrence occurs at the head
7682 -- of the innermost enclosing block, and is represented by this node.
7683
7684 -- Note: from the grammar, this might better be called an implicit
7685 -- statement identifier declaration, but the term we choose seems
7686 -- friendlier, since at least informally statement identifiers are
7687 -- called labels in both cases (i.e. when used in labels, and when
7688 -- used as the identifiers of blocks and loops).
7689
7690 -- Note: although this is logically a semantic node, since it does not
7691 -- correspond directly to a source syntax construction, these nodes are
7692 -- actually created by the parser in a post pass done just after parsing
7693 -- is complete, before semantic analysis is started (see Par.Labl).
7694
7695 -- Sprint syntax: labelname : label;
7696
7697 -- N_Implicit_Label_Declaration
7698 -- Sloc points to the << token for a statement identifier, or to the
7699 -- LOOP, DECLARE, or BEGIN token for a loop or block identifier
7700 -- Defining_Identifier (Node1)
7701 -- Label_Construct (Node2-Sem)
7702
7703 -- Note: in the case where a debug source file is generated, the Sloc
7704 -- for this node points to the label name in the generated declaration.
7705
7706 ---------------------
7707 -- Itype Reference --
7708 ---------------------
7709
7710 -- This node is used to create a reference to an Itype. The only purpose
7711 -- is to make sure the Itype is defined if this is the first reference.
7712
7713 -- A typical use of this node is when an Itype is to be referenced in
7714 -- two branches of an IF statement. In this case it is important that
7715 -- the first use of the Itype not be inside the conditional, since then
7716 -- it might not be defined if the other branch of the IF is taken, in
7717 -- the case where the definition generates elaboration code.
7718
7719 -- The Itype field points to the referenced Itype
7720
7721 -- Sprint syntax: reference itype-name
7722
7723 -- N_Itype_Reference
7724 -- Sloc points to the node generating the reference
7725 -- Itype (Node1-Sem)
7726
7727 -- Note: in the case where a debug source file is generated, the Sloc
7728 -- for this node points to the REFERENCE keyword in the file output.
7729
7730 ---------------------
7731 -- Raise xxx Error --
7732 ---------------------
7733
7734 -- One of these nodes is created during semantic analysis to replace
7735 -- a node for an expression that is determined to definitely raise
7736 -- the corresponding exception.
7737
7738 -- The N_Raise_xxx_Error node may also stand alone in place
7739 -- of a declaration or statement, in which case it simply causes
7740 -- the exception to be raised (i.e. it is equivalent to a raise
7741 -- statement that raises the corresponding exception). This use
7742 -- is distinguished by the fact that the Etype in this case is
7743 -- Standard_Void_Type; in the subexpression case, the Etype is the
7744 -- same as the type of the subexpression which it replaces.
7745
7746 -- If Condition is empty, then the raise is unconditional. If the
7747 -- Condition field is non-empty, it is a boolean expression which
7748 -- is first evaluated, and the exception is raised only if the
7749 -- value of the expression is True. In the unconditional case, the
7750 -- creation of this node is usually accompanied by a warning message
7751 -- error. The creation of this node will usually be accompanied by a
7752 -- message (unless it appears within the right operand of a short
7753 -- circuit form whose left argument is static and decisively
7754 -- eliminates elaboration of the raise operation. The condition field
7755 -- can ONLY be present when the node is used as a statement form, it
7756 -- may NOT be present in the case where the node appears within an
7757 -- expression.
7758
7759 -- The exception is generated with a message that contains the
7760 -- file name and line number, and then appended text. The Reason
7761 -- code shows the text to be added. The Reason code is an element
7762 -- of the type Types.RT_Exception_Code, and indicates both the
7763 -- message to be added, and the exception to be raised (which must
7764 -- match the node type). The value is stored by storing a Uint which
7765 -- is the Pos value of the enumeration element in this type.
7766
7767 -- Gigi restriction: This expander ensures that the type of the
7768 -- Condition field is always Standard.Boolean, even if the type
7769 -- in the source is some non-standard boolean type.
7770
7771 -- Sprint syntax: [xxx_error "msg"]
7772 -- or: [xxx_error when condition "msg"]
7773
7774 -- N_Raise_Constraint_Error
7775 -- Sloc references related construct
7776 -- Condition (Node1) (set to Empty if no condition)
7777 -- Reason (Uint3)
7778 -- plus fields for expression
7779
7780 -- N_Raise_Program_Error
7781 -- Sloc references related construct
7782 -- Condition (Node1) (set to Empty if no condition)
7783 -- Reason (Uint3)
7784 -- plus fields for expression
7785
7786 -- N_Raise_Storage_Error
7787 -- Sloc references related construct
7788 -- Condition (Node1) (set to Empty if no condition)
7789 -- Reason (Uint3)
7790 -- plus fields for expression
7791
7792 -- Note: Sloc is copied from the expression generating the exception.
7793 -- In the case where a debug source file is generated, the Sloc for
7794 -- this node points to the left bracket in the Sprint file output.
7795
7796 -- Note: the back end may be required to translate these nodes into
7797 -- appropriate goto statements. See description of N_Push/Pop_xxx_Label.
7798
7799 ---------------------------------------------
7800 -- Optimization of Exception Raise to Goto --
7801 ---------------------------------------------
7802
7803 -- In some cases, the front end will determine that any exception raised
7804 -- by the back end for a certain exception should be transformed into a
7805 -- goto statement.
7806
7807 -- There are three kinds of exceptions raised by the back end (note that
7808 -- for this purpose we consider gigi to be part of the back end in the
7809 -- gcc case):
7810
7811 -- 1. Exceptions resulting from N_Raise_xxx_Error nodes
7812 -- 2. Exceptions from checks triggered by Do_xxx_Check flags
7813 -- 3. Other cases not specifically marked by the front end
7814
7815 -- Normally all such exceptions are translated into calls to the proper
7816 -- Rcheck_xx procedure, where xx encodes both the exception to be raised
7817 -- and the exception message.
7818
7819 -- The front end may determine that for a particular sequence of code,
7820 -- exceptions in any of these three categories for a particular builtin
7821 -- exception should result in a goto, rather than a call to Rcheck_xx.
7822 -- The exact sequence to be generated is:
7823
7824 -- Local_Raise (exception'Identity);
7825 -- goto Label
7826
7827 -- The front end marks such a sequence of code by bracketing it with
7828 -- push and pop nodes:
7829
7830 -- N_Push_xxx_Label (referencing the label)
7831 -- ...
7832 -- (code where transformation is expected for exception xxx)
7833 -- ...
7834 -- N_Pop_xxx_Label
7835
7836 -- The use of push/pop reflects the fact that such regions can properly
7837 -- nest, and one special case is a subregion in which no transformation
7838 -- is allowed. Such a region is marked by a N_Push_xxx_Label node whose
7839 -- Exception_Label field is Empty.
7840
7841 -- N_Push_Constraint_Error_Label
7842 -- Sloc references first statement in region covered
7843 -- Exception_Label (Node5-Sem)
7844
7845 -- N_Push_Program_Error_Label
7846 -- Sloc references first statement in region covered
7847 -- Exception_Label (Node5-Sem)
7848
7849 -- N_Push_Storage_Error_Label
7850 -- Sloc references first statement in region covered
7851 -- Exception_Label (Node5-Sem)
7852
7853 -- N_Pop_Constraint_Error_Label
7854 -- Sloc references last statement in region covered
7855
7856 -- N_Pop_Program_Error_Label
7857 -- Sloc references last statement in region covered
7858
7859 -- N_Pop_Storage_Error_Label
7860 -- Sloc references last statement in region covered
7861
7862 ---------------
7863 -- Reference --
7864 ---------------
7865
7866 -- For a number of purposes, we need to construct references to objects.
7867 -- These references are subsequently treated as normal access values.
7868 -- An example is the construction of the parameter block passed to a
7869 -- task entry. The N_Reference node is provided for this purpose. It is
7870 -- similar in effect to the use of the Unrestricted_Access attribute,
7871 -- and like Unrestricted_Access can be applied to objects which would
7872 -- not be valid prefixes for the Unchecked_Access attribute (e.g.
7873 -- objects which are not aliased, and slices). In addition it can be
7874 -- applied to composite type values as well as objects, including string
7875 -- values and aggregates.
7876
7877 -- Note: we use the Prefix field for this expression so that the
7878 -- resulting node can be treated using common code with the attribute
7879 -- nodes for the 'Access and related attributes. Logically it would make
7880 -- more sense to call it an Expression field, but then we would have to
7881 -- special case the treatment of the N_Reference node.
7882
7883 -- Note: evaluating a N_Reference node is guaranteed to yield a non-null
7884 -- value at run time. Therefore, it is valid to set Is_Known_Non_Null on
7885 -- a temporary initialized to a N_Reference node in order to eliminate
7886 -- superfluous access checks.
7887
7888 -- Sprint syntax: prefix'reference
7889
7890 -- N_Reference
7891 -- Sloc is copied from the expression
7892 -- Prefix (Node3)
7893 -- plus fields for expression
7894
7895 -- Note: in the case where a debug source file is generated, the Sloc
7896 -- for this node points to the quote in the Sprint file output.
7897
7898 ----------------
7899 -- SCIL Nodes --
7900 ----------------
7901
7902 -- SCIL nodes are special nodes added to the tree when the CodePeer mode
7903 -- is active. They are only generated if SCIL generation is enabled.
7904 -- A standard tree-walk will not encounter these nodes even if they
7905 -- are present; these nodes are only accessible via the function
7906 -- SCIL_LL.Get_SCIL_Node. These nodes have no associated dynamic
7907 -- semantics.
7908
7909 -- Sprint syntax: [ <node kind> ]
7910 -- No semantic field values are displayed.
7911
7912 -- N_SCIL_Dispatch_Table_Tag_Init
7913 -- Sloc references a node for a tag initialization
7914 -- SCIL_Entity (Node4-Sem)
7915 --
7916 -- An N_SCIL_Dispatch_Table_Tag_Init node may be associated (via
7917 -- Get_SCIL_Node) with the N_Object_Declaration node corresponding to
7918 -- the declaration of the dispatch table for a tagged type.
7919
7920 -- N_SCIL_Dispatching_Call
7921 -- Sloc references the node of a dispatching call
7922 -- SCIL_Target_Prim (Node2-Sem)
7923 -- SCIL_Entity (Node4-Sem)
7924 -- SCIL_Controlling_Tag (Node5-Sem)
7925 --
7926 -- An N_Scil_Dispatching call node may be associated (via Get_SCIL_Node)
7927 -- with the N_Procedure_Call or N_Function_Call node (or a rewriting
7928 -- thereof) corresponding to a dispatching call.
7929
7930 -- N_SCIL_Membership_Test
7931 -- Sloc references the node of a membership test
7932 -- SCIL_Tag_Value (Node5-Sem)
7933 -- SCIL_Entity (Node4-Sem)
7934 --
7935 -- An N_Scil_Membership_Test node may be associated (via Get_SCIL_Node)
7936 -- with the N_In node (or a rewriting thereof) corresponding to a
7937 -- classwide membership test.
7938
7939 --------------------------
7940 -- Unchecked Expression --
7941 --------------------------
7942
7943 -- An unchecked expression is one that must be analyzed and resolved
7944 -- with all checks off, regardless of the current setting of scope
7945 -- suppress flags.
7946
7947 -- Sprint syntax: `(expression)
7948
7949 -- Note: this node is always removed from the tree (and replaced by
7950 -- its constituent expression) on completion of analysis, so it only
7951 -- appears in intermediate trees, and will never be seen by Gigi.
7952
7953 -- N_Unchecked_Expression
7954 -- Sloc is a copy of the Sloc of the expression
7955 -- Expression (Node3)
7956 -- plus fields for expression
7957
7958 -- Note: in the case where a debug source file is generated, the Sloc
7959 -- for this node points to the back quote in the Sprint file output.
7960
7961 -------------------------------
7962 -- Unchecked Type Conversion --
7963 -------------------------------
7964
7965 -- An unchecked type conversion node represents the semantic action
7966 -- corresponding to a call to an instantiation of Unchecked_Conversion.
7967 -- It is generated as a result of actual use of Unchecked_Conversion
7968 -- and also the expander generates unchecked type conversion nodes
7969 -- directly for expansion of complex semantic actions.
7970
7971 -- Note: an unchecked type conversion is a variable as far as the
7972 -- semantics are concerned, which is convenient for the expander.
7973 -- This does not change what Ada source programs are legal, since
7974 -- clearly a function call to an instantiation of Unchecked_Conversion
7975 -- is not a variable in any case.
7976
7977 -- Sprint syntax: subtype-mark!(expression)
7978
7979 -- N_Unchecked_Type_Conversion
7980 -- Sloc points to related node in source
7981 -- Subtype_Mark (Node4)
7982 -- Expression (Node3)
7983 -- Kill_Range_Check (Flag11-Sem)
7984 -- No_Truncation (Flag17-Sem)
7985 -- plus fields for expression
7986
7987 -- Note: in the case where a debug source file is generated, the Sloc
7988 -- for this node points to the exclamation in the Sprint file output.
7989
7990 -----------------------------------
7991 -- Validate_Unchecked_Conversion --
7992 -----------------------------------
7993
7994 -- The front end does most of the validation of unchecked conversion,
7995 -- including checking sizes (this is done after the back end is called
7996 -- to take advantage of back-annotation of calculated sizes).
7997
7998 -- The front end also deals with specific cases that are not allowed
7999 -- e.g. involving unconstrained array types.
8000
8001 -- For the case of the standard gigi backend, this means that all
8002 -- checks are done in the front end.
8003
8004 -- However, in the case of specialized back-ends, notably the JVM
8005 -- backend for JGNAT, additional requirements and restrictions apply
8006 -- to unchecked conversion, and these are most conveniently performed
8007 -- in the specialized back-end.
8008
8009 -- To accommodate this requirement, for such back ends, the following
8010 -- special node is generated recording an unchecked conversion that
8011 -- needs to be validated. The back end should post an appropriate
8012 -- error message if the unchecked conversion is invalid or warrants
8013 -- a special warning message.
8014
8015 -- Source_Type and Target_Type point to the entities for the two
8016 -- types involved in the unchecked conversion instantiation that
8017 -- is to be validated.
8018
8019 -- Sprint syntax: validate Unchecked_Conversion (source, target);
8020
8021 -- N_Validate_Unchecked_Conversion
8022 -- Sloc points to instantiation (location for warning message)
8023 -- Source_Type (Node1-Sem)
8024 -- Target_Type (Node2-Sem)
8025
8026 -- Note: in the case where a debug source file is generated, the Sloc
8027 -- for this node points to the VALIDATE keyword in the file output.
8028
8029 -----------
8030 -- Empty --
8031 -----------
8032
8033 -- Used as the contents of the Nkind field of the dummy Empty node
8034 -- and in some other situations to indicate an uninitialized value.
8035
8036 -- N_Empty
8037 -- Chars (Name1) is set to No_Name
8038
8039 -----------
8040 -- Error --
8041 -----------
8042
8043 -- Used as the contents of the Nkind field of the dummy Error node.
8044 -- Has an Etype field, which gets set to Any_Type later on, to help
8045 -- error recovery (Error_Posted is also set in the Error node).
8046
8047 -- N_Error
8048 -- Chars (Name1) is set to Error_Name
8049 -- Etype (Node5-Sem)
8050
8051 --------------------------
8052 -- Node Type Definition --
8053 --------------------------
8054
8055 -- The following is the definition of the Node_Kind type. As previously
8056 -- discussed, this is separated off to allow rearrangement of the order to
8057 -- facilitate definition of subtype ranges. The comments show the subtype
8058 -- classes which apply to each set of node kinds. The first entry in the
8059 -- comment characterizes the following list of nodes.
8060
8061 type Node_Kind is (
8062 N_Unused_At_Start,
8063
8064 -- N_Representation_Clause
8065
8066 N_At_Clause,
8067 N_Component_Clause,
8068 N_Enumeration_Representation_Clause,
8069 N_Mod_Clause,
8070 N_Record_Representation_Clause,
8071
8072 -- N_Representation_Clause, N_Has_Chars
8073
8074 N_Attribute_Definition_Clause,
8075
8076 -- N_Has_Chars
8077
8078 N_Empty,
8079 N_Pragma_Argument_Association,
8080
8081 -- N_Has_Etype, N_Has_Chars
8082
8083 -- Note: of course N_Error does not really have Etype or Chars fields,
8084 -- and any attempt to access these fields in N_Error will cause an
8085 -- error, but historically this always has been positioned so that an
8086 -- "in N_Has_Chars" or "in N_Has_Etype" test yields true for N_Error.
8087 -- Most likely this makes coding easier somewhere but still seems
8088 -- undesirable. To be investigated some time ???
8089
8090 N_Error,
8091
8092 -- N_Entity, N_Has_Etype, N_Has_Chars
8093
8094 N_Defining_Character_Literal,
8095 N_Defining_Identifier,
8096 N_Defining_Operator_Symbol,
8097
8098 -- N_Subexpr, N_Has_Etype, N_Has_Chars, N_Has_Entity
8099
8100 N_Expanded_Name,
8101
8102 -- N_Direct_Name, N_Subexpr, N_Has_Etype,
8103 -- N_Has_Chars, N_Has_Entity
8104
8105 N_Identifier,
8106 N_Operator_Symbol,
8107
8108 -- N_Direct_Name, N_Subexpr, N_Has_Etype,
8109 -- N_Has_Chars, N_Has_Entity
8110
8111 N_Character_Literal,
8112
8113 -- N_Binary_Op, N_Op, N_Subexpr,
8114 -- N_Has_Etype, N_Has_Chars, N_Has_Entity
8115
8116 N_Op_Add,
8117 N_Op_Concat,
8118 N_Op_Expon,
8119 N_Op_Subtract,
8120
8121 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Treat_Fixed_As_Integer
8122 -- N_Has_Etype, N_Has_Chars, N_Has_Entity, N_Multiplying_Operator
8123
8124 N_Op_Divide,
8125 N_Op_Mod,
8126 N_Op_Multiply,
8127 N_Op_Rem,
8128
8129 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
8130 -- N_Has_Entity, N_Has_Chars, N_Op_Boolean
8131
8132 N_Op_And,
8133
8134 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
8135 -- N_Has_Entity, N_Has_Chars, N_Op_Boolean, N_Op_Compare
8136
8137 N_Op_Eq,
8138 N_Op_Ge,
8139 N_Op_Gt,
8140 N_Op_Le,
8141 N_Op_Lt,
8142 N_Op_Ne,
8143
8144 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
8145 -- N_Has_Entity, N_Has_Chars, N_Op_Boolean
8146
8147 N_Op_Or,
8148 N_Op_Xor,
8149
8150 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype,
8151 -- N_Op_Shift, N_Has_Chars, N_Has_Entity
8152
8153 N_Op_Rotate_Left,
8154 N_Op_Rotate_Right,
8155 N_Op_Shift_Left,
8156 N_Op_Shift_Right,
8157 N_Op_Shift_Right_Arithmetic,
8158
8159 -- N_Unary_Op, N_Op, N_Subexpr, N_Has_Etype,
8160 -- N_Has_Chars, N_Has_Entity
8161
8162 N_Op_Abs,
8163 N_Op_Minus,
8164 N_Op_Not,
8165 N_Op_Plus,
8166
8167 -- N_Subexpr, N_Has_Etype, N_Has_Entity
8168
8169 N_Attribute_Reference,
8170
8171 -- N_Subexpr, N_Has_Etype, N_Membership_Test
8172
8173 N_In,
8174 N_Not_In,
8175
8176 -- N_Subexpr, N_Has_Etype, N_Short_Circuit
8177
8178 N_And_Then,
8179 N_Or_Else,
8180
8181 -- N_Subexpr, N_Has_Etype, N_Subprogram_Call
8182
8183 N_Function_Call,
8184 N_Procedure_Call_Statement,
8185
8186 -- N_Subexpr, N_Has_Etype, N_Raise_xxx_Error
8187
8188 N_Raise_Constraint_Error,
8189 N_Raise_Program_Error,
8190 N_Raise_Storage_Error,
8191
8192 -- N_Subexpr, N_Has_Etype, N_Numeric_Or_String_Literal
8193
8194 N_Integer_Literal,
8195 N_Real_Literal,
8196 N_String_Literal,
8197
8198 -- N_Subexpr, N_Has_Etype
8199
8200 N_Explicit_Dereference,
8201 N_Expression_With_Actions,
8202 N_If_Expression,
8203 N_Indexed_Component,
8204 N_Null,
8205 N_Qualified_Expression,
8206 N_Quantified_Expression,
8207 N_Aggregate,
8208 N_Allocator,
8209 N_Case_Expression,
8210 N_Extension_Aggregate,
8211 N_Raise_Expression,
8212 N_Range,
8213 N_Reference,
8214 N_Selected_Component,
8215 N_Slice,
8216 N_Type_Conversion,
8217 N_Unchecked_Expression,
8218 N_Unchecked_Type_Conversion,
8219
8220 -- N_Has_Etype
8221
8222 N_Subtype_Indication,
8223
8224 -- N_Declaration
8225
8226 N_Component_Declaration,
8227 N_Entry_Declaration,
8228 N_Expression_Function,
8229 N_Formal_Object_Declaration,
8230 N_Formal_Type_Declaration,
8231 N_Full_Type_Declaration,
8232 N_Incomplete_Type_Declaration,
8233 N_Iterator_Specification,
8234 N_Loop_Parameter_Specification,
8235 N_Object_Declaration,
8236 N_Protected_Type_Declaration,
8237 N_Private_Extension_Declaration,
8238 N_Private_Type_Declaration,
8239 N_Subtype_Declaration,
8240
8241 -- N_Subprogram_Specification, N_Declaration
8242
8243 N_Function_Specification,
8244 N_Procedure_Specification,
8245
8246 -- N_Access_To_Subprogram_Definition
8247
8248 N_Access_Function_Definition,
8249 N_Access_Procedure_Definition,
8250
8251 -- N_Later_Decl_Item
8252
8253 N_Task_Type_Declaration,
8254
8255 -- N_Body_Stub, N_Later_Decl_Item
8256
8257 N_Package_Body_Stub,
8258 N_Protected_Body_Stub,
8259 N_Subprogram_Body_Stub,
8260 N_Task_Body_Stub,
8261
8262 -- N_Generic_Instantiation, N_Later_Decl_Item
8263 -- N_Subprogram_Instantiation
8264
8265 N_Function_Instantiation,
8266 N_Procedure_Instantiation,
8267
8268 -- N_Generic_Instantiation, N_Later_Decl_Item
8269
8270 N_Package_Instantiation,
8271
8272 -- N_Unit_Body, N_Later_Decl_Item, N_Proper_Body
8273
8274 N_Package_Body,
8275 N_Subprogram_Body,
8276
8277 -- N_Later_Decl_Item, N_Proper_Body
8278
8279 N_Protected_Body,
8280 N_Task_Body,
8281
8282 -- N_Later_Decl_Item
8283
8284 N_Implicit_Label_Declaration,
8285 N_Package_Declaration,
8286 N_Single_Task_Declaration,
8287 N_Subprogram_Declaration,
8288 N_Use_Package_Clause,
8289
8290 -- N_Generic_Declaration, N_Later_Decl_Item
8291
8292 N_Generic_Package_Declaration,
8293 N_Generic_Subprogram_Declaration,
8294
8295 -- N_Array_Type_Definition
8296
8297 N_Constrained_Array_Definition,
8298 N_Unconstrained_Array_Definition,
8299
8300 -- N_Renaming_Declaration
8301
8302 N_Exception_Renaming_Declaration,
8303 N_Object_Renaming_Declaration,
8304 N_Package_Renaming_Declaration,
8305 N_Subprogram_Renaming_Declaration,
8306
8307 -- N_Generic_Renaming_Declaration, N_Renaming_Declaration
8308
8309 N_Generic_Function_Renaming_Declaration,
8310 N_Generic_Package_Renaming_Declaration,
8311 N_Generic_Procedure_Renaming_Declaration,
8312
8313 -- N_Statement_Other_Than_Procedure_Call
8314
8315 N_Abort_Statement,
8316 N_Accept_Statement,
8317 N_Assignment_Statement,
8318 N_Asynchronous_Select,
8319 N_Block_Statement,
8320 N_Case_Statement,
8321 N_Code_Statement,
8322 N_Compound_Statement,
8323 N_Conditional_Entry_Call,
8324
8325 -- N_Statement_Other_Than_Procedure_Call, N_Delay_Statement
8326
8327 N_Delay_Relative_Statement,
8328 N_Delay_Until_Statement,
8329
8330 -- N_Statement_Other_Than_Procedure_Call
8331
8332 N_Entry_Call_Statement,
8333 N_Free_Statement,
8334 N_Goto_Statement,
8335 N_Loop_Statement,
8336 N_Null_Statement,
8337 N_Raise_Statement,
8338 N_Requeue_Statement,
8339 N_Simple_Return_Statement,
8340 N_Extended_Return_Statement,
8341 N_Selective_Accept,
8342 N_Timed_Entry_Call,
8343
8344 -- N_Statement_Other_Than_Procedure_Call, N_Has_Condition
8345
8346 N_Exit_Statement,
8347 N_If_Statement,
8348
8349 -- N_Has_Condition
8350
8351 N_Accept_Alternative,
8352 N_Delay_Alternative,
8353 N_Elsif_Part,
8354 N_Entry_Body_Formal_Part,
8355 N_Iteration_Scheme,
8356 N_Terminate_Alternative,
8357
8358 -- N_Formal_Subprogram_Declaration
8359
8360 N_Formal_Abstract_Subprogram_Declaration,
8361 N_Formal_Concrete_Subprogram_Declaration,
8362
8363 -- N_Push_xxx_Label, N_Push_Pop_xxx_Label
8364
8365 N_Push_Constraint_Error_Label,
8366 N_Push_Program_Error_Label,
8367 N_Push_Storage_Error_Label,
8368
8369 -- N_Pop_xxx_Label, N_Push_Pop_xxx_Label
8370
8371 N_Pop_Constraint_Error_Label,
8372 N_Pop_Program_Error_Label,
8373 N_Pop_Storage_Error_Label,
8374
8375 -- SCIL nodes
8376
8377 N_SCIL_Dispatch_Table_Tag_Init,
8378 N_SCIL_Dispatching_Call,
8379 N_SCIL_Membership_Test,
8380
8381 -- Other nodes (not part of any subtype class)
8382
8383 N_Abortable_Part,
8384 N_Abstract_Subprogram_Declaration,
8385 N_Access_Definition,
8386 N_Access_To_Object_Definition,
8387 N_Aspect_Specification,
8388 N_Case_Expression_Alternative,
8389 N_Case_Statement_Alternative,
8390 N_Compilation_Unit,
8391 N_Compilation_Unit_Aux,
8392 N_Component_Association,
8393 N_Component_Definition,
8394 N_Component_List,
8395 N_Contract,
8396 N_Derived_Type_Definition,
8397 N_Decimal_Fixed_Point_Definition,
8398 N_Defining_Program_Unit_Name,
8399 N_Delta_Constraint,
8400 N_Designator,
8401 N_Digits_Constraint,
8402 N_Discriminant_Association,
8403 N_Discriminant_Specification,
8404 N_Enumeration_Type_Definition,
8405 N_Entry_Body,
8406 N_Entry_Call_Alternative,
8407 N_Entry_Index_Specification,
8408 N_Exception_Declaration,
8409 N_Exception_Handler,
8410 N_Floating_Point_Definition,
8411 N_Formal_Decimal_Fixed_Point_Definition,
8412 N_Formal_Derived_Type_Definition,
8413 N_Formal_Discrete_Type_Definition,
8414 N_Formal_Floating_Point_Definition,
8415 N_Formal_Modular_Type_Definition,
8416 N_Formal_Ordinary_Fixed_Point_Definition,
8417 N_Formal_Package_Declaration,
8418 N_Formal_Private_Type_Definition,
8419 N_Formal_Incomplete_Type_Definition,
8420 N_Formal_Signed_Integer_Type_Definition,
8421 N_Freeze_Entity,
8422 N_Freeze_Generic_Entity,
8423 N_Generic_Association,
8424 N_Handled_Sequence_Of_Statements,
8425 N_Index_Or_Discriminant_Constraint,
8426 N_Itype_Reference,
8427 N_Label,
8428 N_Modular_Type_Definition,
8429 N_Number_Declaration,
8430 N_Ordinary_Fixed_Point_Definition,
8431 N_Others_Choice,
8432 N_Package_Specification,
8433 N_Parameter_Association,
8434 N_Parameter_Specification,
8435 N_Pragma,
8436 N_Protected_Definition,
8437 N_Range_Constraint,
8438 N_Real_Range_Specification,
8439 N_Record_Definition,
8440 N_Signed_Integer_Type_Definition,
8441 N_Single_Protected_Declaration,
8442 N_Subunit,
8443 N_Task_Definition,
8444 N_Triggering_Alternative,
8445 N_Use_Type_Clause,
8446 N_Validate_Unchecked_Conversion,
8447 N_Variant,
8448 N_Variant_Part,
8449 N_With_Clause,
8450 N_Unused_At_End);
8451
8452 for Node_Kind'Size use 8;
8453 -- The data structures in Atree assume this
8454
8455 ----------------------------
8456 -- Node Class Definitions --
8457 ----------------------------
8458
8459 subtype N_Access_To_Subprogram_Definition is Node_Kind range
8460 N_Access_Function_Definition ..
8461 N_Access_Procedure_Definition;
8462
8463 subtype N_Array_Type_Definition is Node_Kind range
8464 N_Constrained_Array_Definition ..
8465 N_Unconstrained_Array_Definition;
8466
8467 subtype N_Binary_Op is Node_Kind range
8468 N_Op_Add ..
8469 N_Op_Shift_Right_Arithmetic;
8470
8471 subtype N_Body_Stub is Node_Kind range
8472 N_Package_Body_Stub ..
8473 N_Task_Body_Stub;
8474
8475 subtype N_Declaration is Node_Kind range
8476 N_Component_Declaration ..
8477 N_Procedure_Specification;
8478 -- Note: this includes all constructs normally thought of as declarations
8479 -- except those which are separately grouped as later declarations.
8480
8481 subtype N_Delay_Statement is Node_Kind range
8482 N_Delay_Relative_Statement ..
8483 N_Delay_Until_Statement;
8484
8485 subtype N_Direct_Name is Node_Kind range
8486 N_Identifier ..
8487 N_Character_Literal;
8488
8489 subtype N_Entity is Node_Kind range
8490 N_Defining_Character_Literal ..
8491 N_Defining_Operator_Symbol;
8492
8493 subtype N_Formal_Subprogram_Declaration is Node_Kind range
8494 N_Formal_Abstract_Subprogram_Declaration ..
8495 N_Formal_Concrete_Subprogram_Declaration;
8496
8497 subtype N_Generic_Declaration is Node_Kind range
8498 N_Generic_Package_Declaration ..
8499 N_Generic_Subprogram_Declaration;
8500
8501 subtype N_Generic_Instantiation is Node_Kind range
8502 N_Function_Instantiation ..
8503 N_Package_Instantiation;
8504
8505 subtype N_Generic_Renaming_Declaration is Node_Kind range
8506 N_Generic_Function_Renaming_Declaration ..
8507 N_Generic_Procedure_Renaming_Declaration;
8508
8509 subtype N_Has_Chars is Node_Kind range
8510 N_Attribute_Definition_Clause ..
8511 N_Op_Plus;
8512
8513 subtype N_Has_Entity is Node_Kind range
8514 N_Expanded_Name ..
8515 N_Attribute_Reference;
8516 -- Nodes that have Entity fields
8517 -- Warning: DOES NOT INCLUDE N_Freeze_Entity, N_Freeze_Generic_Entity,
8518 -- N_Aspect_Specification, or N_Attribute_Definition_Clause.
8519
8520 subtype N_Has_Etype is Node_Kind range
8521 N_Error ..
8522 N_Subtype_Indication;
8523
8524 subtype N_Has_Treat_Fixed_As_Integer is Node_Kind range
8525 N_Op_Divide ..
8526 N_Op_Rem;
8527
8528 subtype N_Multiplying_Operator is Node_Kind range
8529 N_Op_Divide ..
8530 N_Op_Rem;
8531
8532 subtype N_Later_Decl_Item is Node_Kind range
8533 N_Task_Type_Declaration ..
8534 N_Generic_Subprogram_Declaration;
8535 -- Note: this is Ada 83 relevant only (see Ada 83 RM 3.9 (2)) and includes
8536 -- only those items which can appear as later declarative items. This also
8537 -- includes N_Implicit_Label_Declaration which is not specifically in the
8538 -- grammar but may appear as a valid later declarative items. It does NOT
8539 -- include N_Pragma which can also appear among later declarative items.
8540 -- It does however include N_Protected_Body, which is a bit peculiar, but
8541 -- harmless since this cannot appear in Ada 83 mode anyway.
8542
8543 subtype N_Membership_Test is Node_Kind range
8544 N_In ..
8545 N_Not_In;
8546
8547 subtype N_Numeric_Or_String_Literal is Node_Kind range
8548 N_Integer_Literal ..
8549 N_String_Literal;
8550
8551 subtype N_Op is Node_Kind range
8552 N_Op_Add ..
8553 N_Op_Plus;
8554
8555 subtype N_Op_Boolean is Node_Kind range
8556 N_Op_And ..
8557 N_Op_Xor;
8558 -- Binary operators which take operands of a boolean type, and yield
8559 -- a result of a boolean type.
8560
8561 subtype N_Op_Compare is Node_Kind range
8562 N_Op_Eq ..
8563 N_Op_Ne;
8564
8565 subtype N_Op_Shift is Node_Kind range
8566 N_Op_Rotate_Left ..
8567 N_Op_Shift_Right_Arithmetic;
8568
8569 subtype N_Proper_Body is Node_Kind range
8570 N_Package_Body ..
8571 N_Task_Body;
8572
8573 subtype N_Push_xxx_Label is Node_Kind range
8574 N_Push_Constraint_Error_Label ..
8575 N_Push_Storage_Error_Label;
8576
8577 subtype N_Pop_xxx_Label is Node_Kind range
8578 N_Pop_Constraint_Error_Label ..
8579 N_Pop_Storage_Error_Label;
8580
8581 subtype N_Push_Pop_xxx_Label is Node_Kind range
8582 N_Push_Constraint_Error_Label ..
8583 N_Pop_Storage_Error_Label;
8584
8585 subtype N_Raise_xxx_Error is Node_Kind range
8586 N_Raise_Constraint_Error ..
8587 N_Raise_Storage_Error;
8588
8589 subtype N_Renaming_Declaration is Node_Kind range
8590 N_Exception_Renaming_Declaration ..
8591 N_Generic_Procedure_Renaming_Declaration;
8592
8593 subtype N_Representation_Clause is Node_Kind range
8594 N_At_Clause ..
8595 N_Attribute_Definition_Clause;
8596
8597 subtype N_Short_Circuit is Node_Kind range
8598 N_And_Then ..
8599 N_Or_Else;
8600
8601 subtype N_SCIL_Node is Node_Kind range
8602 N_SCIL_Dispatch_Table_Tag_Init ..
8603 N_SCIL_Membership_Test;
8604
8605 subtype N_Statement_Other_Than_Procedure_Call is Node_Kind range
8606 N_Abort_Statement ..
8607 N_If_Statement;
8608 -- Note that this includes all statement types except for the cases of the
8609 -- N_Procedure_Call_Statement which is considered to be a subexpression
8610 -- (since overloading is possible, so it needs to go through the normal
8611 -- overloading resolution for expressions).
8612
8613 subtype N_Subprogram_Call is Node_Kind range
8614 N_Function_Call ..
8615 N_Procedure_Call_Statement;
8616
8617 subtype N_Subprogram_Instantiation is Node_Kind range
8618 N_Function_Instantiation ..
8619 N_Procedure_Instantiation;
8620
8621 subtype N_Has_Condition is Node_Kind range
8622 N_Exit_Statement ..
8623 N_Terminate_Alternative;
8624 -- Nodes with condition fields (does not include N_Raise_xxx_Error)
8625
8626 subtype N_Subexpr is Node_Kind range
8627 N_Expanded_Name ..
8628 N_Unchecked_Type_Conversion;
8629 -- Nodes with expression fields
8630
8631 subtype N_Subprogram_Specification is Node_Kind range
8632 N_Function_Specification ..
8633 N_Procedure_Specification;
8634
8635 subtype N_Unary_Op is Node_Kind range
8636 N_Op_Abs ..
8637 N_Op_Plus;
8638
8639 subtype N_Unit_Body is Node_Kind range
8640 N_Package_Body ..
8641 N_Subprogram_Body;
8642
8643 ---------------------------
8644 -- Node Access Functions --
8645 ---------------------------
8646
8647 -- The following functions return the contents of the indicated field of
8648 -- the node referenced by the argument, which is a Node_Id. They provide
8649 -- logical access to fields in the node which could be accessed using the
8650 -- Atree.Unchecked_Access package, but the idea is always to use these
8651 -- higher level routines which preserve strong typing. In debug mode,
8652 -- these routines check that they are being applied to an appropriate
8653 -- node, as well as checking that the node is in range.
8654
8655 function ABE_Is_Certain
8656 (N : Node_Id) return Boolean; -- Flag18
8657
8658 function Abort_Present
8659 (N : Node_Id) return Boolean; -- Flag15
8660
8661 function Abortable_Part
8662 (N : Node_Id) return Node_Id; -- Node2
8663
8664 function Abstract_Present
8665 (N : Node_Id) return Boolean; -- Flag4
8666
8667 function Accept_Handler_Records
8668 (N : Node_Id) return List_Id; -- List5
8669
8670 function Accept_Statement
8671 (N : Node_Id) return Node_Id; -- Node2
8672
8673 function Access_Definition
8674 (N : Node_Id) return Node_Id; -- Node3
8675
8676 function Access_To_Subprogram_Definition
8677 (N : Node_Id) return Node_Id; -- Node3
8678
8679 function Access_Types_To_Process
8680 (N : Node_Id) return Elist_Id; -- Elist2
8681
8682 function Actions
8683 (N : Node_Id) return List_Id; -- List1
8684
8685 function Activation_Chain_Entity
8686 (N : Node_Id) return Node_Id; -- Node3
8687
8688 function Acts_As_Spec
8689 (N : Node_Id) return Boolean; -- Flag4
8690
8691 function Actual_Designated_Subtype
8692 (N : Node_Id) return Node_Id; -- Node4
8693
8694 function Address_Warning_Posted
8695 (N : Node_Id) return Boolean; -- Flag18
8696
8697 function Aggregate_Bounds
8698 (N : Node_Id) return Node_Id; -- Node3
8699
8700 function Aliased_Present
8701 (N : Node_Id) return Boolean; -- Flag4
8702
8703 function All_Others
8704 (N : Node_Id) return Boolean; -- Flag11
8705
8706 function All_Present
8707 (N : Node_Id) return Boolean; -- Flag15
8708
8709 function Alternatives
8710 (N : Node_Id) return List_Id; -- List4
8711
8712 function Ancestor_Part
8713 (N : Node_Id) return Node_Id; -- Node3
8714
8715 function Atomic_Sync_Required
8716 (N : Node_Id) return Boolean; -- Flag14
8717
8718 function Array_Aggregate
8719 (N : Node_Id) return Node_Id; -- Node3
8720
8721 function Aspect_Rep_Item
8722 (N : Node_Id) return Node_Id; -- Node2
8723
8724 function Assignment_OK
8725 (N : Node_Id) return Boolean; -- Flag15
8726
8727 function Associated_Node
8728 (N : Node_Id) return Node_Id; -- Node4
8729
8730 function At_End_Proc
8731 (N : Node_Id) return Node_Id; -- Node1
8732
8733 function Attribute_Name
8734 (N : Node_Id) return Name_Id; -- Name2
8735
8736 function Aux_Decls_Node
8737 (N : Node_Id) return Node_Id; -- Node5
8738
8739 function Backwards_OK
8740 (N : Node_Id) return Boolean; -- Flag6
8741
8742 function Bad_Is_Detected
8743 (N : Node_Id) return Boolean; -- Flag15
8744
8745 function By_Ref
8746 (N : Node_Id) return Boolean; -- Flag5
8747
8748 function Body_Required
8749 (N : Node_Id) return Boolean; -- Flag13
8750
8751 function Body_To_Inline
8752 (N : Node_Id) return Node_Id; -- Node3
8753
8754 function Box_Present
8755 (N : Node_Id) return Boolean; -- Flag15
8756
8757 function Char_Literal_Value
8758 (N : Node_Id) return Uint; -- Uint2
8759
8760 function Chars
8761 (N : Node_Id) return Name_Id; -- Name1
8762
8763 function Check_Address_Alignment
8764 (N : Node_Id) return Boolean; -- Flag11
8765
8766 function Choice_Parameter
8767 (N : Node_Id) return Node_Id; -- Node2
8768
8769 function Choices
8770 (N : Node_Id) return List_Id; -- List1
8771
8772 function Class_Present
8773 (N : Node_Id) return Boolean; -- Flag6
8774
8775 function Classifications
8776 (N : Node_Id) return Node_Id; -- Node3
8777
8778 function Cleanup_Actions
8779 (N : Node_Id) return List_Id; -- List5
8780
8781 function Comes_From_Extended_Return_Statement
8782 (N : Node_Id) return Boolean; -- Flag18
8783
8784 function Compile_Time_Known_Aggregate
8785 (N : Node_Id) return Boolean; -- Flag18
8786
8787 function Component_Associations
8788 (N : Node_Id) return List_Id; -- List2
8789
8790 function Component_Clauses
8791 (N : Node_Id) return List_Id; -- List3
8792
8793 function Component_Definition
8794 (N : Node_Id) return Node_Id; -- Node4
8795
8796 function Component_Items
8797 (N : Node_Id) return List_Id; -- List3
8798
8799 function Component_List
8800 (N : Node_Id) return Node_Id; -- Node1
8801
8802 function Component_Name
8803 (N : Node_Id) return Node_Id; -- Node1
8804
8805 function Componentwise_Assignment
8806 (N : Node_Id) return Boolean; -- Flag14
8807
8808 function Condition
8809 (N : Node_Id) return Node_Id; -- Node1
8810
8811 function Condition_Actions
8812 (N : Node_Id) return List_Id; -- List3
8813
8814 function Config_Pragmas
8815 (N : Node_Id) return List_Id; -- List4
8816
8817 function Constant_Present
8818 (N : Node_Id) return Boolean; -- Flag17
8819
8820 function Constraint
8821 (N : Node_Id) return Node_Id; -- Node3
8822
8823 function Constraints
8824 (N : Node_Id) return List_Id; -- List1
8825
8826 function Context_Installed
8827 (N : Node_Id) return Boolean; -- Flag13
8828
8829 function Context_Pending
8830 (N : Node_Id) return Boolean; -- Flag16
8831
8832 function Context_Items
8833 (N : Node_Id) return List_Id; -- List1
8834
8835 function Contract_Test_Cases
8836 (N : Node_Id) return Node_Id; -- Node2
8837
8838 function Controlling_Argument
8839 (N : Node_Id) return Node_Id; -- Node1
8840
8841 function Conversion_OK
8842 (N : Node_Id) return Boolean; -- Flag14
8843
8844 function Convert_To_Return_False
8845 (N : Node_Id) return Boolean; -- Flag13
8846
8847 function Corresponding_Aspect
8848 (N : Node_Id) return Node_Id; -- Node3
8849
8850 function Corresponding_Body
8851 (N : Node_Id) return Node_Id; -- Node5
8852
8853 function Corresponding_Formal_Spec
8854 (N : Node_Id) return Node_Id; -- Node3
8855
8856 function Corresponding_Generic_Association
8857 (N : Node_Id) return Node_Id; -- Node5
8858
8859 function Corresponding_Integer_Value
8860 (N : Node_Id) return Uint; -- Uint4
8861
8862 function Corresponding_Spec
8863 (N : Node_Id) return Node_Id; -- Node5
8864
8865 function Corresponding_Spec_Of_Stub
8866 (N : Node_Id) return Node_Id; -- Node2
8867
8868 function Corresponding_Stub
8869 (N : Node_Id) return Node_Id; -- Node3
8870
8871 function Dcheck_Function
8872 (N : Node_Id) return Entity_Id; -- Node5
8873
8874 function Declarations
8875 (N : Node_Id) return List_Id; -- List2
8876
8877 function Default_Expression
8878 (N : Node_Id) return Node_Id; -- Node5
8879
8880 function Default_Storage_Pool
8881 (N : Node_Id) return Node_Id; -- Node3
8882
8883 function Default_Name
8884 (N : Node_Id) return Node_Id; -- Node2
8885
8886 function Defining_Identifier
8887 (N : Node_Id) return Entity_Id; -- Node1
8888
8889 function Defining_Unit_Name
8890 (N : Node_Id) return Node_Id; -- Node1
8891
8892 function Delay_Alternative
8893 (N : Node_Id) return Node_Id; -- Node4
8894
8895 function Delay_Statement
8896 (N : Node_Id) return Node_Id; -- Node2
8897
8898 function Delta_Expression
8899 (N : Node_Id) return Node_Id; -- Node3
8900
8901 function Digits_Expression
8902 (N : Node_Id) return Node_Id; -- Node2
8903
8904 function Discr_Check_Funcs_Built
8905 (N : Node_Id) return Boolean; -- Flag11
8906
8907 function Discrete_Choices
8908 (N : Node_Id) return List_Id; -- List4
8909
8910 function Discrete_Range
8911 (N : Node_Id) return Node_Id; -- Node4
8912
8913 function Discrete_Subtype_Definition
8914 (N : Node_Id) return Node_Id; -- Node4
8915
8916 function Discrete_Subtype_Definitions
8917 (N : Node_Id) return List_Id; -- List2
8918
8919 function Discriminant_Specifications
8920 (N : Node_Id) return List_Id; -- List4
8921
8922 function Discriminant_Type
8923 (N : Node_Id) return Node_Id; -- Node5
8924
8925 function Do_Accessibility_Check
8926 (N : Node_Id) return Boolean; -- Flag13
8927
8928 function Do_Discriminant_Check
8929 (N : Node_Id) return Boolean; -- Flag1
8930
8931 function Do_Division_Check
8932 (N : Node_Id) return Boolean; -- Flag13
8933
8934 function Do_Length_Check
8935 (N : Node_Id) return Boolean; -- Flag4
8936
8937 function Do_Overflow_Check
8938 (N : Node_Id) return Boolean; -- Flag17
8939
8940 function Do_Range_Check
8941 (N : Node_Id) return Boolean; -- Flag9
8942
8943 function Do_Storage_Check
8944 (N : Node_Id) return Boolean; -- Flag17
8945
8946 function Do_Tag_Check
8947 (N : Node_Id) return Boolean; -- Flag13
8948
8949 function Elaborate_All_Desirable
8950 (N : Node_Id) return Boolean; -- Flag9
8951
8952 function Elaborate_All_Present
8953 (N : Node_Id) return Boolean; -- Flag14
8954
8955 function Elaborate_Desirable
8956 (N : Node_Id) return Boolean; -- Flag11
8957
8958 function Elaborate_Present
8959 (N : Node_Id) return Boolean; -- Flag4
8960
8961 function Elaboration_Boolean
8962 (N : Node_Id) return Node_Id; -- Node2
8963
8964 function Else_Actions
8965 (N : Node_Id) return List_Id; -- List3
8966
8967 function Else_Statements
8968 (N : Node_Id) return List_Id; -- List4
8969
8970 function Elsif_Parts
8971 (N : Node_Id) return List_Id; -- List3
8972
8973 function Enclosing_Variant
8974 (N : Node_Id) return Node_Id; -- Node2
8975
8976 function End_Label
8977 (N : Node_Id) return Node_Id; -- Node4
8978
8979 function End_Span
8980 (N : Node_Id) return Uint; -- Uint5
8981
8982 function Entity
8983 (N : Node_Id) return Node_Id; -- Node4
8984
8985 function Entity_Or_Associated_Node
8986 (N : Node_Id) return Node_Id; -- Node4
8987
8988 function Entry_Body_Formal_Part
8989 (N : Node_Id) return Node_Id; -- Node5
8990
8991 function Entry_Call_Alternative
8992 (N : Node_Id) return Node_Id; -- Node1
8993
8994 function Entry_Call_Statement
8995 (N : Node_Id) return Node_Id; -- Node1
8996
8997 function Entry_Direct_Name
8998 (N : Node_Id) return Node_Id; -- Node1
8999
9000 function Entry_Index
9001 (N : Node_Id) return Node_Id; -- Node5
9002
9003 function Entry_Index_Specification
9004 (N : Node_Id) return Node_Id; -- Node4
9005
9006 function Etype
9007 (N : Node_Id) return Node_Id; -- Node5
9008
9009 function Exception_Choices
9010 (N : Node_Id) return List_Id; -- List4
9011
9012 function Exception_Handlers
9013 (N : Node_Id) return List_Id; -- List5
9014
9015 function Exception_Junk
9016 (N : Node_Id) return Boolean; -- Flag8
9017
9018 function Exception_Label
9019 (N : Node_Id) return Node_Id; -- Node5
9020
9021 function Explicit_Actual_Parameter
9022 (N : Node_Id) return Node_Id; -- Node3
9023
9024 function Expansion_Delayed
9025 (N : Node_Id) return Boolean; -- Flag11
9026
9027 function Explicit_Generic_Actual_Parameter
9028 (N : Node_Id) return Node_Id; -- Node1
9029
9030 function Expression
9031 (N : Node_Id) return Node_Id; -- Node3
9032
9033 function Expressions
9034 (N : Node_Id) return List_Id; -- List1
9035
9036 function First_Bit
9037 (N : Node_Id) return Node_Id; -- Node3
9038
9039 function First_Inlined_Subprogram
9040 (N : Node_Id) return Entity_Id; -- Node3
9041
9042 function First_Name
9043 (N : Node_Id) return Boolean; -- Flag5
9044
9045 function First_Named_Actual
9046 (N : Node_Id) return Node_Id; -- Node4
9047
9048 function First_Real_Statement
9049 (N : Node_Id) return Node_Id; -- Node2
9050
9051 function First_Subtype_Link
9052 (N : Node_Id) return Entity_Id; -- Node5
9053
9054 function Float_Truncate
9055 (N : Node_Id) return Boolean; -- Flag11
9056
9057 function Formal_Type_Definition
9058 (N : Node_Id) return Node_Id; -- Node3
9059
9060 function Forwards_OK
9061 (N : Node_Id) return Boolean; -- Flag5
9062
9063 function From_Aspect_Specification
9064 (N : Node_Id) return Boolean; -- Flag13
9065
9066 function From_At_End
9067 (N : Node_Id) return Boolean; -- Flag4
9068
9069 function From_At_Mod
9070 (N : Node_Id) return Boolean; -- Flag4
9071
9072 function From_Conditional_Expression
9073 (N : Node_Id) return Boolean; -- Flag1
9074
9075 function From_Default
9076 (N : Node_Id) return Boolean; -- Flag6
9077
9078 function Generalized_Indexing
9079 (N : Node_Id) return Node_Id; -- Node4
9080 function Generic_Associations
9081 (N : Node_Id) return List_Id; -- List3
9082
9083 function Generic_Formal_Declarations
9084 (N : Node_Id) return List_Id; -- List2
9085
9086 function Generic_Parent
9087 (N : Node_Id) return Node_Id; -- Node5
9088
9089 function Generic_Parent_Type
9090 (N : Node_Id) return Node_Id; -- Node4
9091
9092 function Handled_Statement_Sequence
9093 (N : Node_Id) return Node_Id; -- Node4
9094
9095 function Handler_List_Entry
9096 (N : Node_Id) return Node_Id; -- Node2
9097
9098 function Has_Created_Identifier
9099 (N : Node_Id) return Boolean; -- Flag15
9100
9101 function Has_Dereference_Action
9102 (N : Node_Id) return Boolean; -- Flag13
9103
9104 function Has_Dynamic_Length_Check
9105 (N : Node_Id) return Boolean; -- Flag10
9106
9107 function Has_Dynamic_Range_Check
9108 (N : Node_Id) return Boolean; -- Flag12
9109
9110 function Has_Init_Expression
9111 (N : Node_Id) return Boolean; -- Flag14
9112
9113 function Has_Local_Raise
9114 (N : Node_Id) return Boolean; -- Flag8
9115
9116 function Has_No_Elaboration_Code
9117 (N : Node_Id) return Boolean; -- Flag17
9118
9119 function Has_Pragma_Suppress_All
9120 (N : Node_Id) return Boolean; -- Flag14
9121
9122 function Has_Private_View
9123 (N : Node_Id) return Boolean; -- Flag11
9124
9125 function Has_Relative_Deadline_Pragma
9126 (N : Node_Id) return Boolean; -- Flag9
9127
9128 function Has_Self_Reference
9129 (N : Node_Id) return Boolean; -- Flag13
9130
9131 function Has_SP_Choice
9132 (N : Node_Id) return Boolean; -- Flag15
9133
9134 function Has_Storage_Size_Pragma
9135 (N : Node_Id) return Boolean; -- Flag5
9136
9137 function Has_Wide_Character
9138 (N : Node_Id) return Boolean; -- Flag11
9139
9140 function Has_Wide_Wide_Character
9141 (N : Node_Id) return Boolean; -- Flag13
9142
9143 function Header_Size_Added
9144 (N : Node_Id) return Boolean; -- Flag11
9145
9146 function Hidden_By_Use_Clause
9147 (N : Node_Id) return Elist_Id; -- Elist4
9148
9149 function High_Bound
9150 (N : Node_Id) return Node_Id; -- Node2
9151
9152 function Identifier
9153 (N : Node_Id) return Node_Id; -- Node1
9154
9155 function Interface_List
9156 (N : Node_Id) return List_Id; -- List2
9157
9158 function Interface_Present
9159 (N : Node_Id) return Boolean; -- Flag16
9160
9161 function Implicit_With
9162 (N : Node_Id) return Boolean; -- Flag16
9163
9164 function Implicit_With_From_Instantiation
9165 (N : Node_Id) return Boolean; -- Flag12
9166
9167 function Import_Interface_Present
9168 (N : Node_Id) return Boolean; -- Flag16
9169
9170 function In_Present
9171 (N : Node_Id) return Boolean; -- Flag15
9172
9173 function Includes_Infinities
9174 (N : Node_Id) return Boolean; -- Flag11
9175
9176 function Incomplete_View
9177 (N : Node_Id) return Node_Id; -- Node2
9178
9179 function Inherited_Discriminant
9180 (N : Node_Id) return Boolean; -- Flag13
9181
9182 function Instance_Spec
9183 (N : Node_Id) return Node_Id; -- Node5
9184
9185 function Intval
9186 (N : Node_Id) return Uint; -- Uint3
9187
9188 function Is_Accessibility_Actual
9189 (N : Node_Id) return Boolean; -- Flag13
9190
9191 function Is_Asynchronous_Call_Block
9192 (N : Node_Id) return Boolean; -- Flag7
9193
9194 function Is_Boolean_Aspect
9195 (N : Node_Id) return Boolean; -- Flag16
9196
9197 function Is_Checked
9198 (N : Node_Id) return Boolean; -- Flag11
9199
9200 function Is_Component_Left_Opnd
9201 (N : Node_Id) return Boolean; -- Flag13
9202
9203 function Is_Component_Right_Opnd
9204 (N : Node_Id) return Boolean; -- Flag14
9205
9206 function Is_Controlling_Actual
9207 (N : Node_Id) return Boolean; -- Flag16
9208
9209 function Is_Delayed_Aspect
9210 (N : Node_Id) return Boolean; -- Flag14
9211
9212 function Is_Disabled
9213 (N : Node_Id) return Boolean; -- Flag15
9214
9215 function Is_Dynamic_Coextension
9216 (N : Node_Id) return Boolean; -- Flag18
9217
9218 function Is_Elsif
9219 (N : Node_Id) return Boolean; -- Flag13
9220
9221 function Is_Entry_Barrier_Function
9222 (N : Node_Id) return Boolean; -- Flag8
9223
9224 function Is_Expanded_Build_In_Place_Call
9225 (N : Node_Id) return Boolean; -- Flag11
9226
9227 function Is_Finalization_Wrapper
9228 (N : Node_Id) return Boolean; -- Flag9
9229
9230 function Is_Folded_In_Parser
9231 (N : Node_Id) return Boolean; -- Flag4
9232
9233 function Is_Ignored
9234 (N : Node_Id) return Boolean; -- Flag9
9235
9236 function Is_In_Discriminant_Check
9237 (N : Node_Id) return Boolean; -- Flag11
9238
9239 function Is_Machine_Number
9240 (N : Node_Id) return Boolean; -- Flag11
9241
9242 function Is_Null_Loop
9243 (N : Node_Id) return Boolean; -- Flag16
9244
9245 function Is_Overloaded
9246 (N : Node_Id) return Boolean; -- Flag5
9247
9248 function Is_Power_Of_2_For_Shift
9249 (N : Node_Id) return Boolean; -- Flag13
9250
9251 function Is_Prefixed_Call
9252 (N : Node_Id) return Boolean; -- Flag17
9253
9254 function Is_Protected_Subprogram_Body
9255 (N : Node_Id) return Boolean; -- Flag7
9256
9257 function Is_Static_Coextension
9258 (N : Node_Id) return Boolean; -- Flag14
9259
9260 function Is_Static_Expression
9261 (N : Node_Id) return Boolean; -- Flag6
9262
9263 function Is_Subprogram_Descriptor
9264 (N : Node_Id) return Boolean; -- Flag16
9265
9266 function Is_Task_Allocation_Block
9267 (N : Node_Id) return Boolean; -- Flag6
9268
9269 function Is_Task_Master
9270 (N : Node_Id) return Boolean; -- Flag5
9271
9272 function Iteration_Scheme
9273 (N : Node_Id) return Node_Id; -- Node2
9274
9275 function Iterator_Specification
9276 (N : Node_Id) return Node_Id; -- Node2
9277
9278 function Itype
9279 (N : Node_Id) return Entity_Id; -- Node1
9280
9281 function Kill_Range_Check
9282 (N : Node_Id) return Boolean; -- Flag11
9283
9284 function Label_Construct
9285 (N : Node_Id) return Node_Id; -- Node2
9286
9287 function Left_Opnd
9288 (N : Node_Id) return Node_Id; -- Node2
9289
9290 function Last_Bit
9291 (N : Node_Id) return Node_Id; -- Node4
9292
9293 function Last_Name
9294 (N : Node_Id) return Boolean; -- Flag6
9295
9296 function Library_Unit
9297 (N : Node_Id) return Node_Id; -- Node4
9298
9299 function Limited_View_Installed
9300 (N : Node_Id) return Boolean; -- Flag18
9301
9302 function Limited_Present
9303 (N : Node_Id) return Boolean; -- Flag17
9304
9305 function Literals
9306 (N : Node_Id) return List_Id; -- List1
9307
9308 function Local_Raise_Not_OK
9309 (N : Node_Id) return Boolean; -- Flag7
9310
9311 function Local_Raise_Statements
9312 (N : Node_Id) return Elist_Id; -- Elist1
9313
9314 function Loop_Actions
9315 (N : Node_Id) return List_Id; -- List2
9316
9317 function Loop_Parameter_Specification
9318 (N : Node_Id) return Node_Id; -- Node4
9319
9320 function Low_Bound
9321 (N : Node_Id) return Node_Id; -- Node1
9322
9323 function Mod_Clause
9324 (N : Node_Id) return Node_Id; -- Node2
9325
9326 function More_Ids
9327 (N : Node_Id) return Boolean; -- Flag5
9328
9329 function Must_Be_Byte_Aligned
9330 (N : Node_Id) return Boolean; -- Flag14
9331
9332 function Must_Not_Freeze
9333 (N : Node_Id) return Boolean; -- Flag8
9334
9335 function Must_Not_Override
9336 (N : Node_Id) return Boolean; -- Flag15
9337
9338 function Must_Override
9339 (N : Node_Id) return Boolean; -- Flag14
9340
9341 function Name
9342 (N : Node_Id) return Node_Id; -- Node2
9343
9344 function Names
9345 (N : Node_Id) return List_Id; -- List2
9346
9347 function Next_Entity
9348 (N : Node_Id) return Node_Id; -- Node2
9349
9350 function Next_Exit_Statement
9351 (N : Node_Id) return Node_Id; -- Node3
9352
9353 function Next_Implicit_With
9354 (N : Node_Id) return Node_Id; -- Node3
9355
9356 function Next_Named_Actual
9357 (N : Node_Id) return Node_Id; -- Node4
9358
9359 function Next_Pragma
9360 (N : Node_Id) return Node_Id; -- Node1
9361
9362 function Next_Rep_Item
9363 (N : Node_Id) return Node_Id; -- Node5
9364
9365 function Next_Use_Clause
9366 (N : Node_Id) return Node_Id; -- Node3
9367
9368 function No_Ctrl_Actions
9369 (N : Node_Id) return Boolean; -- Flag7
9370
9371 function No_Elaboration_Check
9372 (N : Node_Id) return Boolean; -- Flag14
9373
9374 function No_Entities_Ref_In_Spec
9375 (N : Node_Id) return Boolean; -- Flag8
9376
9377 function No_Initialization
9378 (N : Node_Id) return Boolean; -- Flag13
9379
9380 function No_Minimize_Eliminate
9381 (N : Node_Id) return Boolean; -- Flag17
9382
9383 function No_Truncation
9384 (N : Node_Id) return Boolean; -- Flag17
9385
9386 function Non_Aliased_Prefix
9387 (N : Node_Id) return Boolean; -- Flag18
9388
9389 function Null_Present
9390 (N : Node_Id) return Boolean; -- Flag13
9391
9392 function Null_Excluding_Subtype
9393 (N : Node_Id) return Boolean; -- Flag16
9394
9395 function Null_Exclusion_Present
9396 (N : Node_Id) return Boolean; -- Flag11
9397
9398 function Null_Exclusion_In_Return_Present
9399 (N : Node_Id) return Boolean; -- Flag14
9400
9401 function Null_Record_Present
9402 (N : Node_Id) return Boolean; -- Flag17
9403
9404 function Object_Definition
9405 (N : Node_Id) return Node_Id; -- Node4
9406
9407 function Of_Present
9408 (N : Node_Id) return Boolean; -- Flag16
9409
9410 function Original_Discriminant
9411 (N : Node_Id) return Node_Id; -- Node2
9412
9413 function Original_Entity
9414 (N : Node_Id) return Entity_Id; -- Node2
9415
9416 function Others_Discrete_Choices
9417 (N : Node_Id) return List_Id; -- List1
9418
9419 function Out_Present
9420 (N : Node_Id) return Boolean; -- Flag17
9421
9422 function Parameter_Associations
9423 (N : Node_Id) return List_Id; -- List3
9424
9425 function Parameter_Specifications
9426 (N : Node_Id) return List_Id; -- List3
9427
9428 function Parameter_Type
9429 (N : Node_Id) return Node_Id; -- Node2
9430
9431 function Parent_Spec
9432 (N : Node_Id) return Node_Id; -- Node4
9433
9434 function Position
9435 (N : Node_Id) return Node_Id; -- Node2
9436
9437 function Pragma_Argument_Associations
9438 (N : Node_Id) return List_Id; -- List2
9439
9440 function Pragma_Identifier
9441 (N : Node_Id) return Node_Id; -- Node4
9442
9443 function Pragmas_After
9444 (N : Node_Id) return List_Id; -- List5
9445
9446 function Pragmas_Before
9447 (N : Node_Id) return List_Id; -- List4
9448
9449 function Pre_Post_Conditions
9450 (N : Node_Id) return Node_Id; -- Node1
9451
9452 function Prefix
9453 (N : Node_Id) return Node_Id; -- Node3
9454
9455 function Premature_Use
9456 (N : Node_Id) return Node_Id; -- Node5
9457
9458 function Present_Expr
9459 (N : Node_Id) return Uint; -- Uint3
9460
9461 function Prev_Ids
9462 (N : Node_Id) return Boolean; -- Flag6
9463
9464 function Print_In_Hex
9465 (N : Node_Id) return Boolean; -- Flag13
9466
9467 function Private_Declarations
9468 (N : Node_Id) return List_Id; -- List3
9469
9470 function Private_Present
9471 (N : Node_Id) return Boolean; -- Flag15
9472
9473 function Procedure_To_Call
9474 (N : Node_Id) return Node_Id; -- Node2
9475
9476 function Proper_Body
9477 (N : Node_Id) return Node_Id; -- Node1
9478
9479 function Protected_Definition
9480 (N : Node_Id) return Node_Id; -- Node3
9481
9482 function Protected_Present
9483 (N : Node_Id) return Boolean; -- Flag6
9484
9485 function Raises_Constraint_Error
9486 (N : Node_Id) return Boolean; -- Flag7
9487
9488 function Range_Constraint
9489 (N : Node_Id) return Node_Id; -- Node4
9490
9491 function Range_Expression
9492 (N : Node_Id) return Node_Id; -- Node4
9493
9494 function Real_Range_Specification
9495 (N : Node_Id) return Node_Id; -- Node4
9496
9497 function Realval
9498 (N : Node_Id) return Ureal; -- Ureal3
9499
9500 function Reason
9501 (N : Node_Id) return Uint; -- Uint3
9502
9503 function Record_Extension_Part
9504 (N : Node_Id) return Node_Id; -- Node3
9505
9506 function Redundant_Use
9507 (N : Node_Id) return Boolean; -- Flag13
9508
9509 function Renaming_Exception
9510 (N : Node_Id) return Node_Id; -- Node2
9511
9512 function Result_Definition
9513 (N : Node_Id) return Node_Id; -- Node4
9514
9515 function Return_Object_Declarations
9516 (N : Node_Id) return List_Id; -- List3
9517
9518 function Return_Statement_Entity
9519 (N : Node_Id) return Node_Id; -- Node5
9520
9521 function Reverse_Present
9522 (N : Node_Id) return Boolean; -- Flag15
9523
9524 function Right_Opnd
9525 (N : Node_Id) return Node_Id; -- Node3
9526
9527 function Rounded_Result
9528 (N : Node_Id) return Boolean; -- Flag18
9529
9530 function SCIL_Controlling_Tag
9531 (N : Node_Id) return Node_Id; -- Node5
9532
9533 function SCIL_Entity
9534 (N : Node_Id) return Node_Id; -- Node4
9535
9536 function SCIL_Tag_Value
9537 (N : Node_Id) return Node_Id; -- Node5
9538
9539 function SCIL_Target_Prim
9540 (N : Node_Id) return Node_Id; -- Node2
9541
9542 function Scope
9543 (N : Node_Id) return Node_Id; -- Node3
9544
9545 function Select_Alternatives
9546 (N : Node_Id) return List_Id; -- List1
9547
9548 function Selector_Name
9549 (N : Node_Id) return Node_Id; -- Node2
9550
9551 function Selector_Names
9552 (N : Node_Id) return List_Id; -- List1
9553
9554 function Shift_Count_OK
9555 (N : Node_Id) return Boolean; -- Flag4
9556
9557 function Source_Type
9558 (N : Node_Id) return Entity_Id; -- Node1
9559
9560 function Specification
9561 (N : Node_Id) return Node_Id; -- Node1
9562
9563 function Split_PPC
9564 (N : Node_Id) return Boolean; -- Flag17
9565
9566 function Statements
9567 (N : Node_Id) return List_Id; -- List3
9568
9569 function Storage_Pool
9570 (N : Node_Id) return Node_Id; -- Node1
9571
9572 function Subpool_Handle_Name
9573 (N : Node_Id) return Node_Id; -- Node4
9574
9575 function Strval
9576 (N : Node_Id) return String_Id; -- Str3
9577
9578 function Subtype_Indication
9579 (N : Node_Id) return Node_Id; -- Node5
9580
9581 function Subtype_Mark
9582 (N : Node_Id) return Node_Id; -- Node4
9583
9584 function Subtype_Marks
9585 (N : Node_Id) return List_Id; -- List2
9586
9587 function Suppress_Assignment_Checks
9588 (N : Node_Id) return Boolean; -- Flag18
9589
9590 function Suppress_Loop_Warnings
9591 (N : Node_Id) return Boolean; -- Flag17
9592
9593 function Synchronized_Present
9594 (N : Node_Id) return Boolean; -- Flag7
9595
9596 function Tagged_Present
9597 (N : Node_Id) return Boolean; -- Flag15
9598
9599 function Target_Type
9600 (N : Node_Id) return Entity_Id; -- Node2
9601
9602 function Task_Definition
9603 (N : Node_Id) return Node_Id; -- Node3
9604
9605 function Task_Present
9606 (N : Node_Id) return Boolean; -- Flag5
9607
9608 function Then_Actions
9609 (N : Node_Id) return List_Id; -- List2
9610
9611 function Then_Statements
9612 (N : Node_Id) return List_Id; -- List2
9613
9614 function Treat_Fixed_As_Integer
9615 (N : Node_Id) return Boolean; -- Flag14
9616
9617 function Triggering_Alternative
9618 (N : Node_Id) return Node_Id; -- Node1
9619
9620 function Triggering_Statement
9621 (N : Node_Id) return Node_Id; -- Node1
9622
9623 function TSS_Elist
9624 (N : Node_Id) return Elist_Id; -- Elist3
9625
9626 function Type_Definition
9627 (N : Node_Id) return Node_Id; -- Node3
9628
9629 function Uneval_Old_Accept
9630 (N : Node_Id) return Boolean; -- Flag7
9631
9632 function Uneval_Old_Warn
9633 (N : Node_Id) return Boolean; -- Flag18
9634
9635 function Unit
9636 (N : Node_Id) return Node_Id; -- Node2
9637
9638 function Unknown_Discriminants_Present
9639 (N : Node_Id) return Boolean; -- Flag13
9640
9641 function Unreferenced_In_Spec
9642 (N : Node_Id) return Boolean; -- Flag7
9643
9644 function Variant_Part
9645 (N : Node_Id) return Node_Id; -- Node4
9646
9647 function Variants
9648 (N : Node_Id) return List_Id; -- List1
9649
9650 function Visible_Declarations
9651 (N : Node_Id) return List_Id; -- List2
9652
9653 function Uninitialized_Variable
9654 (N : Node_Id) return Node_Id; -- Node3
9655
9656 function Used_Operations
9657 (N : Node_Id) return Elist_Id; -- Elist5
9658
9659 function Was_Originally_Stub
9660 (N : Node_Id) return Boolean; -- Flag13
9661
9662 function Withed_Body
9663 (N : Node_Id) return Node_Id; -- Node1
9664
9665 -- End functions (note used by xsinfo utility program to end processing)
9666
9667 ----------------------------
9668 -- Node Update Procedures --
9669 ----------------------------
9670
9671 -- These are the corresponding node update routines, which again provide
9672 -- a high level logical access with type checking. In addition to setting
9673 -- the indicated field of the node N to the given Val, in the case of
9674 -- tree pointers (List1-4), the parent pointer of the Val node is set to
9675 -- point back to node N. This automates the setting of the parent pointer.
9676
9677 procedure Set_ABE_Is_Certain
9678 (N : Node_Id; Val : Boolean := True); -- Flag18
9679
9680 procedure Set_Abort_Present
9681 (N : Node_Id; Val : Boolean := True); -- Flag15
9682
9683 procedure Set_Abortable_Part
9684 (N : Node_Id; Val : Node_Id); -- Node2
9685
9686 procedure Set_Abstract_Present
9687 (N : Node_Id; Val : Boolean := True); -- Flag4
9688
9689 procedure Set_Accept_Handler_Records
9690 (N : Node_Id; Val : List_Id); -- List5
9691
9692 procedure Set_Accept_Statement
9693 (N : Node_Id; Val : Node_Id); -- Node2
9694
9695 procedure Set_Access_Definition
9696 (N : Node_Id; Val : Node_Id); -- Node3
9697
9698 procedure Set_Access_To_Subprogram_Definition
9699 (N : Node_Id; Val : Node_Id); -- Node3
9700
9701 procedure Set_Access_Types_To_Process
9702 (N : Node_Id; Val : Elist_Id); -- Elist2
9703
9704 procedure Set_Actions
9705 (N : Node_Id; Val : List_Id); -- List1
9706
9707 procedure Set_Activation_Chain_Entity
9708 (N : Node_Id; Val : Node_Id); -- Node3
9709
9710 procedure Set_Acts_As_Spec
9711 (N : Node_Id; Val : Boolean := True); -- Flag4
9712
9713 procedure Set_Actual_Designated_Subtype
9714 (N : Node_Id; Val : Node_Id); -- Node4
9715
9716 procedure Set_Address_Warning_Posted
9717 (N : Node_Id; Val : Boolean := True); -- Flag18
9718
9719 procedure Set_Aggregate_Bounds
9720 (N : Node_Id; Val : Node_Id); -- Node3
9721
9722 procedure Set_Aliased_Present
9723 (N : Node_Id; Val : Boolean := True); -- Flag4
9724
9725 procedure Set_All_Others
9726 (N : Node_Id; Val : Boolean := True); -- Flag11
9727
9728 procedure Set_All_Present
9729 (N : Node_Id; Val : Boolean := True); -- Flag15
9730
9731 procedure Set_Alternatives
9732 (N : Node_Id; Val : List_Id); -- List4
9733
9734 procedure Set_Ancestor_Part
9735 (N : Node_Id; Val : Node_Id); -- Node3
9736
9737 procedure Set_Atomic_Sync_Required
9738 (N : Node_Id; Val : Boolean := True); -- Flag14
9739
9740 procedure Set_Array_Aggregate
9741 (N : Node_Id; Val : Node_Id); -- Node3
9742
9743 procedure Set_Aspect_Rep_Item
9744 (N : Node_Id; Val : Node_Id); -- Node2
9745
9746 procedure Set_Assignment_OK
9747 (N : Node_Id; Val : Boolean := True); -- Flag15
9748
9749 procedure Set_Associated_Node
9750 (N : Node_Id; Val : Node_Id); -- Node4
9751
9752 procedure Set_Attribute_Name
9753 (N : Node_Id; Val : Name_Id); -- Name2
9754
9755 procedure Set_At_End_Proc
9756 (N : Node_Id; Val : Node_Id); -- Node1
9757
9758 procedure Set_Aux_Decls_Node
9759 (N : Node_Id; Val : Node_Id); -- Node5
9760
9761 procedure Set_Backwards_OK
9762 (N : Node_Id; Val : Boolean := True); -- Flag6
9763
9764 procedure Set_Bad_Is_Detected
9765 (N : Node_Id; Val : Boolean := True); -- Flag15
9766
9767 procedure Set_Body_Required
9768 (N : Node_Id; Val : Boolean := True); -- Flag13
9769
9770 procedure Set_Body_To_Inline
9771 (N : Node_Id; Val : Node_Id); -- Node3
9772
9773 procedure Set_Box_Present
9774 (N : Node_Id; Val : Boolean := True); -- Flag15
9775
9776 procedure Set_By_Ref
9777 (N : Node_Id; Val : Boolean := True); -- Flag5
9778
9779 procedure Set_Char_Literal_Value
9780 (N : Node_Id; Val : Uint); -- Uint2
9781
9782 procedure Set_Chars
9783 (N : Node_Id; Val : Name_Id); -- Name1
9784
9785 procedure Set_Check_Address_Alignment
9786 (N : Node_Id; Val : Boolean := True); -- Flag11
9787
9788 procedure Set_Choice_Parameter
9789 (N : Node_Id; Val : Node_Id); -- Node2
9790
9791 procedure Set_Choices
9792 (N : Node_Id; Val : List_Id); -- List1
9793
9794 procedure Set_Class_Present
9795 (N : Node_Id; Val : Boolean := True); -- Flag6
9796
9797 procedure Set_Classifications
9798 (N : Node_Id; Val : Node_Id); -- Node3
9799
9800 procedure Set_Cleanup_Actions
9801 (N : Node_Id; Val : List_Id); -- List5
9802
9803 procedure Set_Comes_From_Extended_Return_Statement
9804 (N : Node_Id; Val : Boolean := True); -- Flag18
9805
9806 procedure Set_Compile_Time_Known_Aggregate
9807 (N : Node_Id; Val : Boolean := True); -- Flag18
9808
9809 procedure Set_Component_Associations
9810 (N : Node_Id; Val : List_Id); -- List2
9811
9812 procedure Set_Component_Clauses
9813 (N : Node_Id; Val : List_Id); -- List3
9814
9815 procedure Set_Component_Definition
9816 (N : Node_Id; Val : Node_Id); -- Node4
9817
9818 procedure Set_Component_Items
9819 (N : Node_Id; Val : List_Id); -- List3
9820
9821 procedure Set_Component_List
9822 (N : Node_Id; Val : Node_Id); -- Node1
9823
9824 procedure Set_Component_Name
9825 (N : Node_Id; Val : Node_Id); -- Node1
9826
9827 procedure Set_Componentwise_Assignment
9828 (N : Node_Id; Val : Boolean := True); -- Flag14
9829
9830 procedure Set_Condition
9831 (N : Node_Id; Val : Node_Id); -- Node1
9832
9833 procedure Set_Condition_Actions
9834 (N : Node_Id; Val : List_Id); -- List3
9835
9836 procedure Set_Config_Pragmas
9837 (N : Node_Id; Val : List_Id); -- List4
9838
9839 procedure Set_Constant_Present
9840 (N : Node_Id; Val : Boolean := True); -- Flag17
9841
9842 procedure Set_Constraint
9843 (N : Node_Id; Val : Node_Id); -- Node3
9844
9845 procedure Set_Constraints
9846 (N : Node_Id; Val : List_Id); -- List1
9847
9848 procedure Set_Context_Installed
9849 (N : Node_Id; Val : Boolean := True); -- Flag13
9850
9851 procedure Set_Context_Items
9852 (N : Node_Id; Val : List_Id); -- List1
9853
9854 procedure Set_Context_Pending
9855 (N : Node_Id; Val : Boolean := True); -- Flag16
9856
9857 procedure Set_Contract_Test_Cases
9858 (N : Node_Id; Val : Node_Id); -- Node2
9859
9860 procedure Set_Controlling_Argument
9861 (N : Node_Id; Val : Node_Id); -- Node1
9862
9863 procedure Set_Conversion_OK
9864 (N : Node_Id; Val : Boolean := True); -- Flag14
9865
9866 procedure Set_Convert_To_Return_False
9867 (N : Node_Id; Val : Boolean := True); -- Flag13
9868
9869 procedure Set_Corresponding_Aspect
9870 (N : Node_Id; Val : Node_Id); -- Node3
9871
9872 procedure Set_Corresponding_Body
9873 (N : Node_Id; Val : Node_Id); -- Node5
9874
9875 procedure Set_Corresponding_Formal_Spec
9876 (N : Node_Id; Val : Node_Id); -- Node3
9877
9878 procedure Set_Corresponding_Generic_Association
9879 (N : Node_Id; Val : Node_Id); -- Node5
9880
9881 procedure Set_Corresponding_Integer_Value
9882 (N : Node_Id; Val : Uint); -- Uint4
9883
9884 procedure Set_Corresponding_Spec
9885 (N : Node_Id; Val : Node_Id); -- Node5
9886
9887 procedure Set_Corresponding_Spec_Of_Stub
9888 (N : Node_Id; Val : Node_Id); -- Node2
9889
9890 procedure Set_Corresponding_Stub
9891 (N : Node_Id; Val : Node_Id); -- Node3
9892
9893 procedure Set_Dcheck_Function
9894 (N : Node_Id; Val : Entity_Id); -- Node5
9895
9896 procedure Set_Declarations
9897 (N : Node_Id; Val : List_Id); -- List2
9898
9899 procedure Set_Default_Expression
9900 (N : Node_Id; Val : Node_Id); -- Node5
9901
9902 procedure Set_Default_Storage_Pool
9903 (N : Node_Id; Val : Node_Id); -- Node3
9904
9905 procedure Set_Default_Name
9906 (N : Node_Id; Val : Node_Id); -- Node2
9907
9908 procedure Set_Defining_Identifier
9909 (N : Node_Id; Val : Entity_Id); -- Node1
9910
9911 procedure Set_Defining_Unit_Name
9912 (N : Node_Id; Val : Node_Id); -- Node1
9913
9914 procedure Set_Delay_Alternative
9915 (N : Node_Id; Val : Node_Id); -- Node4
9916
9917 procedure Set_Delay_Statement
9918 (N : Node_Id; Val : Node_Id); -- Node2
9919
9920 procedure Set_Delta_Expression
9921 (N : Node_Id; Val : Node_Id); -- Node3
9922
9923 procedure Set_Digits_Expression
9924 (N : Node_Id; Val : Node_Id); -- Node2
9925
9926 procedure Set_Discr_Check_Funcs_Built
9927 (N : Node_Id; Val : Boolean := True); -- Flag11
9928
9929 procedure Set_Discrete_Choices
9930 (N : Node_Id; Val : List_Id); -- List4
9931
9932 procedure Set_Discrete_Range
9933 (N : Node_Id; Val : Node_Id); -- Node4
9934
9935 procedure Set_Discrete_Subtype_Definition
9936 (N : Node_Id; Val : Node_Id); -- Node4
9937
9938 procedure Set_Discrete_Subtype_Definitions
9939 (N : Node_Id; Val : List_Id); -- List2
9940
9941 procedure Set_Discriminant_Specifications
9942 (N : Node_Id; Val : List_Id); -- List4
9943
9944 procedure Set_Discriminant_Type
9945 (N : Node_Id; Val : Node_Id); -- Node5
9946
9947 procedure Set_Do_Accessibility_Check
9948 (N : Node_Id; Val : Boolean := True); -- Flag13
9949
9950 procedure Set_Do_Discriminant_Check
9951 (N : Node_Id; Val : Boolean := True); -- Flag1
9952
9953 procedure Set_Do_Division_Check
9954 (N : Node_Id; Val : Boolean := True); -- Flag13
9955
9956 procedure Set_Do_Length_Check
9957 (N : Node_Id; Val : Boolean := True); -- Flag4
9958
9959 procedure Set_Do_Overflow_Check
9960 (N : Node_Id; Val : Boolean := True); -- Flag17
9961
9962 procedure Set_Do_Range_Check
9963 (N : Node_Id; Val : Boolean := True); -- Flag9
9964
9965 procedure Set_Do_Storage_Check
9966 (N : Node_Id; Val : Boolean := True); -- Flag17
9967
9968 procedure Set_Do_Tag_Check
9969 (N : Node_Id; Val : Boolean := True); -- Flag13
9970
9971 procedure Set_Elaborate_All_Desirable
9972 (N : Node_Id; Val : Boolean := True); -- Flag9
9973
9974 procedure Set_Elaborate_All_Present
9975 (N : Node_Id; Val : Boolean := True); -- Flag14
9976
9977 procedure Set_Elaborate_Desirable
9978 (N : Node_Id; Val : Boolean := True); -- Flag11
9979
9980 procedure Set_Elaborate_Present
9981 (N : Node_Id; Val : Boolean := True); -- Flag4
9982
9983 procedure Set_Elaboration_Boolean
9984 (N : Node_Id; Val : Node_Id); -- Node2
9985
9986 procedure Set_Else_Actions
9987 (N : Node_Id; Val : List_Id); -- List3
9988
9989 procedure Set_Else_Statements
9990 (N : Node_Id; Val : List_Id); -- List4
9991
9992 procedure Set_Elsif_Parts
9993 (N : Node_Id; Val : List_Id); -- List3
9994
9995 procedure Set_Enclosing_Variant
9996 (N : Node_Id; Val : Node_Id); -- Node2
9997
9998 procedure Set_End_Label
9999 (N : Node_Id; Val : Node_Id); -- Node4
10000
10001 procedure Set_End_Span
10002 (N : Node_Id; Val : Uint); -- Uint5
10003
10004 procedure Set_Entity
10005 (N : Node_Id; Val : Node_Id); -- Node4
10006
10007 procedure Set_Entry_Body_Formal_Part
10008 (N : Node_Id; Val : Node_Id); -- Node5
10009
10010 procedure Set_Entry_Call_Alternative
10011 (N : Node_Id; Val : Node_Id); -- Node1
10012
10013 procedure Set_Entry_Call_Statement
10014 (N : Node_Id; Val : Node_Id); -- Node1
10015
10016 procedure Set_Entry_Direct_Name
10017 (N : Node_Id; Val : Node_Id); -- Node1
10018
10019 procedure Set_Entry_Index
10020 (N : Node_Id; Val : Node_Id); -- Node5
10021
10022 procedure Set_Entry_Index_Specification
10023 (N : Node_Id; Val : Node_Id); -- Node4
10024
10025 procedure Set_Etype
10026 (N : Node_Id; Val : Node_Id); -- Node5
10027
10028 procedure Set_Exception_Choices
10029 (N : Node_Id; Val : List_Id); -- List4
10030
10031 procedure Set_Exception_Handlers
10032 (N : Node_Id; Val : List_Id); -- List5
10033
10034 procedure Set_Exception_Junk
10035 (N : Node_Id; Val : Boolean := True); -- Flag8
10036
10037 procedure Set_Exception_Label
10038 (N : Node_Id; Val : Node_Id); -- Node5
10039
10040 procedure Set_Expansion_Delayed
10041 (N : Node_Id; Val : Boolean := True); -- Flag11
10042
10043 procedure Set_Explicit_Actual_Parameter
10044 (N : Node_Id; Val : Node_Id); -- Node3
10045
10046 procedure Set_Explicit_Generic_Actual_Parameter
10047 (N : Node_Id; Val : Node_Id); -- Node1
10048
10049 procedure Set_Expression
10050 (N : Node_Id; Val : Node_Id); -- Node3
10051
10052 procedure Set_Expressions
10053 (N : Node_Id; Val : List_Id); -- List1
10054
10055 procedure Set_First_Bit
10056 (N : Node_Id; Val : Node_Id); -- Node3
10057
10058 procedure Set_First_Inlined_Subprogram
10059 (N : Node_Id; Val : Entity_Id); -- Node3
10060
10061 procedure Set_First_Name
10062 (N : Node_Id; Val : Boolean := True); -- Flag5
10063
10064 procedure Set_First_Named_Actual
10065 (N : Node_Id; Val : Node_Id); -- Node4
10066
10067 procedure Set_First_Real_Statement
10068 (N : Node_Id; Val : Node_Id); -- Node2
10069
10070 procedure Set_First_Subtype_Link
10071 (N : Node_Id; Val : Entity_Id); -- Node5
10072
10073 procedure Set_Float_Truncate
10074 (N : Node_Id; Val : Boolean := True); -- Flag11
10075
10076 procedure Set_Formal_Type_Definition
10077 (N : Node_Id; Val : Node_Id); -- Node3
10078
10079 procedure Set_Forwards_OK
10080 (N : Node_Id; Val : Boolean := True); -- Flag5
10081
10082 procedure Set_From_Aspect_Specification
10083 (N : Node_Id; Val : Boolean := True); -- Flag13
10084
10085 procedure Set_From_At_End
10086 (N : Node_Id; Val : Boolean := True); -- Flag4
10087
10088 procedure Set_From_At_Mod
10089 (N : Node_Id; Val : Boolean := True); -- Flag4
10090
10091 procedure Set_From_Conditional_Expression
10092 (N : Node_Id; Val : Boolean := True); -- Flag1
10093
10094 procedure Set_From_Default
10095 (N : Node_Id; Val : Boolean := True); -- Flag6
10096
10097 procedure Set_Generalized_Indexing
10098 (N : Node_Id; Val : Node_Id); -- Node4
10099
10100 procedure Set_Generic_Associations
10101 (N : Node_Id; Val : List_Id); -- List3
10102
10103 procedure Set_Generic_Formal_Declarations
10104 (N : Node_Id; Val : List_Id); -- List2
10105
10106 procedure Set_Generic_Parent
10107 (N : Node_Id; Val : Node_Id); -- Node5
10108
10109 procedure Set_Generic_Parent_Type
10110 (N : Node_Id; Val : Node_Id); -- Node4
10111
10112 procedure Set_Handled_Statement_Sequence
10113 (N : Node_Id; Val : Node_Id); -- Node4
10114
10115 procedure Set_Handler_List_Entry
10116 (N : Node_Id; Val : Node_Id); -- Node2
10117
10118 procedure Set_Has_Created_Identifier
10119 (N : Node_Id; Val : Boolean := True); -- Flag15
10120
10121 procedure Set_Has_Dereference_Action
10122 (N : Node_Id; Val : Boolean := True); -- Flag13
10123
10124 procedure Set_Has_Dynamic_Length_Check
10125 (N : Node_Id; Val : Boolean := True); -- Flag10
10126
10127 procedure Set_Has_Dynamic_Range_Check
10128 (N : Node_Id; Val : Boolean := True); -- Flag12
10129
10130 procedure Set_Has_Init_Expression
10131 (N : Node_Id; Val : Boolean := True); -- Flag14
10132
10133 procedure Set_Has_Local_Raise
10134 (N : Node_Id; Val : Boolean := True); -- Flag8
10135
10136 procedure Set_Has_No_Elaboration_Code
10137 (N : Node_Id; Val : Boolean := True); -- Flag17
10138
10139 procedure Set_Has_Pragma_Suppress_All
10140 (N : Node_Id; Val : Boolean := True); -- Flag14
10141
10142 procedure Set_Has_Private_View
10143 (N : Node_Id; Val : Boolean := True); -- Flag11
10144
10145 procedure Set_Has_Relative_Deadline_Pragma
10146 (N : Node_Id; Val : Boolean := True); -- Flag9
10147
10148 procedure Set_Has_Self_Reference
10149 (N : Node_Id; Val : Boolean := True); -- Flag13
10150
10151 procedure Set_Has_SP_Choice
10152 (N : Node_Id; Val : Boolean := True); -- Flag15
10153
10154 procedure Set_Has_Storage_Size_Pragma
10155 (N : Node_Id; Val : Boolean := True); -- Flag5
10156
10157 procedure Set_Has_Wide_Character
10158 (N : Node_Id; Val : Boolean := True); -- Flag11
10159
10160 procedure Set_Has_Wide_Wide_Character
10161 (N : Node_Id; Val : Boolean := True); -- Flag13
10162
10163 procedure Set_Header_Size_Added
10164 (N : Node_Id; Val : Boolean := True); -- Flag11
10165
10166 procedure Set_Hidden_By_Use_Clause
10167 (N : Node_Id; Val : Elist_Id); -- Elist4
10168
10169 procedure Set_High_Bound
10170 (N : Node_Id; Val : Node_Id); -- Node2
10171
10172 procedure Set_Identifier
10173 (N : Node_Id; Val : Node_Id); -- Node1
10174
10175 procedure Set_Interface_List
10176 (N : Node_Id; Val : List_Id); -- List2
10177
10178 procedure Set_Interface_Present
10179 (N : Node_Id; Val : Boolean := True); -- Flag16
10180
10181 procedure Set_Implicit_With
10182 (N : Node_Id; Val : Boolean := True); -- Flag16
10183
10184 procedure Set_Implicit_With_From_Instantiation
10185 (N : Node_Id; Val : Boolean := True); -- Flag12
10186
10187 procedure Set_Import_Interface_Present
10188 (N : Node_Id; Val : Boolean := True); -- Flag16
10189
10190 procedure Set_In_Present
10191 (N : Node_Id; Val : Boolean := True); -- Flag15
10192
10193 procedure Set_Includes_Infinities
10194 (N : Node_Id; Val : Boolean := True); -- Flag11
10195
10196 procedure Set_Incomplete_View
10197 (N : Node_Id; Val : Node_Id); -- Node2
10198
10199 procedure Set_Inherited_Discriminant
10200 (N : Node_Id; Val : Boolean := True); -- Flag13
10201
10202 procedure Set_Instance_Spec
10203 (N : Node_Id; Val : Node_Id); -- Node5
10204
10205 procedure Set_Intval
10206 (N : Node_Id; Val : Uint); -- Uint3
10207
10208 procedure Set_Is_Accessibility_Actual
10209 (N : Node_Id; Val : Boolean := True); -- Flag13
10210
10211 procedure Set_Is_Asynchronous_Call_Block
10212 (N : Node_Id; Val : Boolean := True); -- Flag7
10213
10214 procedure Set_Is_Boolean_Aspect
10215 (N : Node_Id; Val : Boolean := True); -- Flag16
10216
10217 procedure Set_Is_Checked
10218 (N : Node_Id; Val : Boolean := True); -- Flag11
10219
10220 procedure Set_Is_Component_Left_Opnd
10221 (N : Node_Id; Val : Boolean := True); -- Flag13
10222
10223 procedure Set_Is_Component_Right_Opnd
10224 (N : Node_Id; Val : Boolean := True); -- Flag14
10225
10226 procedure Set_Is_Controlling_Actual
10227 (N : Node_Id; Val : Boolean := True); -- Flag16
10228
10229 procedure Set_Is_Delayed_Aspect
10230 (N : Node_Id; Val : Boolean := True); -- Flag14
10231
10232 procedure Set_Is_Disabled
10233 (N : Node_Id; Val : Boolean := True); -- Flag15
10234
10235 procedure Set_Is_Ignored
10236 (N : Node_Id; Val : Boolean := True); -- Flag9
10237
10238 procedure Set_Is_Dynamic_Coextension
10239 (N : Node_Id; Val : Boolean := True); -- Flag18
10240
10241 procedure Set_Is_Elsif
10242 (N : Node_Id; Val : Boolean := True); -- Flag13
10243
10244 procedure Set_Is_Entry_Barrier_Function
10245 (N : Node_Id; Val : Boolean := True); -- Flag8
10246
10247 procedure Set_Is_Expanded_Build_In_Place_Call
10248 (N : Node_Id; Val : Boolean := True); -- Flag11
10249
10250 procedure Set_Is_Finalization_Wrapper
10251 (N : Node_Id; Val : Boolean := True); -- Flag9
10252
10253 procedure Set_Is_Folded_In_Parser
10254 (N : Node_Id; Val : Boolean := True); -- Flag4
10255
10256 procedure Set_Is_In_Discriminant_Check
10257 (N : Node_Id; Val : Boolean := True); -- Flag11
10258
10259 procedure Set_Is_Machine_Number
10260 (N : Node_Id; Val : Boolean := True); -- Flag11
10261
10262 procedure Set_Is_Null_Loop
10263 (N : Node_Id; Val : Boolean := True); -- Flag16
10264
10265 procedure Set_Is_Overloaded
10266 (N : Node_Id; Val : Boolean := True); -- Flag5
10267
10268 procedure Set_Is_Power_Of_2_For_Shift
10269 (N : Node_Id; Val : Boolean := True); -- Flag13
10270
10271 procedure Set_Is_Prefixed_Call
10272 (N : Node_Id; Val : Boolean := True); -- Flag17
10273
10274 procedure Set_Is_Protected_Subprogram_Body
10275 (N : Node_Id; Val : Boolean := True); -- Flag7
10276
10277 procedure Set_Is_Static_Coextension
10278 (N : Node_Id; Val : Boolean := True); -- Flag14
10279
10280 procedure Set_Is_Static_Expression
10281 (N : Node_Id; Val : Boolean := True); -- Flag6
10282
10283 procedure Set_Is_Subprogram_Descriptor
10284 (N : Node_Id; Val : Boolean := True); -- Flag16
10285
10286 procedure Set_Is_Task_Allocation_Block
10287 (N : Node_Id; Val : Boolean := True); -- Flag6
10288
10289 procedure Set_Is_Task_Master
10290 (N : Node_Id; Val : Boolean := True); -- Flag5
10291
10292 procedure Set_Iteration_Scheme
10293 (N : Node_Id; Val : Node_Id); -- Node2
10294
10295 procedure Set_Iterator_Specification
10296 (N : Node_Id; Val : Node_Id); -- Node2
10297
10298 procedure Set_Itype
10299 (N : Node_Id; Val : Entity_Id); -- Node1
10300
10301 procedure Set_Kill_Range_Check
10302 (N : Node_Id; Val : Boolean := True); -- Flag11
10303
10304 procedure Set_Last_Bit
10305 (N : Node_Id; Val : Node_Id); -- Node4
10306
10307 procedure Set_Last_Name
10308 (N : Node_Id; Val : Boolean := True); -- Flag6
10309
10310 procedure Set_Library_Unit
10311 (N : Node_Id; Val : Node_Id); -- Node4
10312
10313 procedure Set_Label_Construct
10314 (N : Node_Id; Val : Node_Id); -- Node2
10315
10316 procedure Set_Left_Opnd
10317 (N : Node_Id; Val : Node_Id); -- Node2
10318
10319 procedure Set_Limited_View_Installed
10320 (N : Node_Id; Val : Boolean := True); -- Flag18
10321
10322 procedure Set_Limited_Present
10323 (N : Node_Id; Val : Boolean := True); -- Flag17
10324
10325 procedure Set_Literals
10326 (N : Node_Id; Val : List_Id); -- List1
10327
10328 procedure Set_Local_Raise_Not_OK
10329 (N : Node_Id; Val : Boolean := True); -- Flag7
10330
10331 procedure Set_Local_Raise_Statements
10332 (N : Node_Id; Val : Elist_Id); -- Elist1
10333
10334 procedure Set_Loop_Actions
10335 (N : Node_Id; Val : List_Id); -- List2
10336
10337 procedure Set_Loop_Parameter_Specification
10338 (N : Node_Id; Val : Node_Id); -- Node4
10339
10340 procedure Set_Low_Bound
10341 (N : Node_Id; Val : Node_Id); -- Node1
10342
10343 procedure Set_Mod_Clause
10344 (N : Node_Id; Val : Node_Id); -- Node2
10345
10346 procedure Set_More_Ids
10347 (N : Node_Id; Val : Boolean := True); -- Flag5
10348
10349 procedure Set_Must_Be_Byte_Aligned
10350 (N : Node_Id; Val : Boolean := True); -- Flag14
10351
10352 procedure Set_Must_Not_Freeze
10353 (N : Node_Id; Val : Boolean := True); -- Flag8
10354
10355 procedure Set_Must_Not_Override
10356 (N : Node_Id; Val : Boolean := True); -- Flag15
10357
10358 procedure Set_Must_Override
10359 (N : Node_Id; Val : Boolean := True); -- Flag14
10360
10361 procedure Set_Name
10362 (N : Node_Id; Val : Node_Id); -- Node2
10363
10364 procedure Set_Names
10365 (N : Node_Id; Val : List_Id); -- List2
10366
10367 procedure Set_Next_Entity
10368 (N : Node_Id; Val : Node_Id); -- Node2
10369
10370 procedure Set_Next_Exit_Statement
10371 (N : Node_Id; Val : Node_Id); -- Node3
10372
10373 procedure Set_Next_Implicit_With
10374 (N : Node_Id; Val : Node_Id); -- Node3
10375
10376 procedure Set_Next_Named_Actual
10377 (N : Node_Id; Val : Node_Id); -- Node4
10378
10379 procedure Set_Next_Pragma
10380 (N : Node_Id; Val : Node_Id); -- Node1
10381
10382 procedure Set_Next_Rep_Item
10383 (N : Node_Id; Val : Node_Id); -- Node5
10384
10385 procedure Set_Next_Use_Clause
10386 (N : Node_Id; Val : Node_Id); -- Node3
10387
10388 procedure Set_No_Ctrl_Actions
10389 (N : Node_Id; Val : Boolean := True); -- Flag7
10390
10391 procedure Set_No_Elaboration_Check
10392 (N : Node_Id; Val : Boolean := True); -- Flag14
10393
10394 procedure Set_No_Entities_Ref_In_Spec
10395 (N : Node_Id; Val : Boolean := True); -- Flag8
10396
10397 procedure Set_No_Initialization
10398 (N : Node_Id; Val : Boolean := True); -- Flag13
10399
10400 procedure Set_No_Minimize_Eliminate
10401 (N : Node_Id; Val : Boolean := True); -- Flag17
10402
10403 procedure Set_No_Truncation
10404 (N : Node_Id; Val : Boolean := True); -- Flag17
10405
10406 procedure Set_Non_Aliased_Prefix
10407 (N : Node_Id; Val : Boolean := True); -- Flag18
10408
10409 procedure Set_Null_Present
10410 (N : Node_Id; Val : Boolean := True); -- Flag13
10411
10412 procedure Set_Null_Excluding_Subtype
10413 (N : Node_Id; Val : Boolean := True); -- Flag16
10414
10415 procedure Set_Null_Exclusion_Present
10416 (N : Node_Id; Val : Boolean := True); -- Flag11
10417
10418 procedure Set_Null_Exclusion_In_Return_Present
10419 (N : Node_Id; Val : Boolean := True); -- Flag14
10420
10421 procedure Set_Null_Record_Present
10422 (N : Node_Id; Val : Boolean := True); -- Flag17
10423
10424 procedure Set_Object_Definition
10425 (N : Node_Id; Val : Node_Id); -- Node4
10426
10427 procedure Set_Of_Present
10428 (N : Node_Id; Val : Boolean := True); -- Flag16
10429
10430 procedure Set_Original_Discriminant
10431 (N : Node_Id; Val : Node_Id); -- Node2
10432
10433 procedure Set_Original_Entity
10434 (N : Node_Id; Val : Entity_Id); -- Node2
10435
10436 procedure Set_Others_Discrete_Choices
10437 (N : Node_Id; Val : List_Id); -- List1
10438
10439 procedure Set_Out_Present
10440 (N : Node_Id; Val : Boolean := True); -- Flag17
10441
10442 procedure Set_Parameter_Associations
10443 (N : Node_Id; Val : List_Id); -- List3
10444
10445 procedure Set_Parameter_Specifications
10446 (N : Node_Id; Val : List_Id); -- List3
10447
10448 procedure Set_Parameter_Type
10449 (N : Node_Id; Val : Node_Id); -- Node2
10450
10451 procedure Set_Parent_Spec
10452 (N : Node_Id; Val : Node_Id); -- Node4
10453
10454 procedure Set_Position
10455 (N : Node_Id; Val : Node_Id); -- Node2
10456
10457 procedure Set_Pragma_Argument_Associations
10458 (N : Node_Id; Val : List_Id); -- List2
10459
10460 procedure Set_Pragma_Identifier
10461 (N : Node_Id; Val : Node_Id); -- Node4
10462
10463 procedure Set_Pragmas_After
10464 (N : Node_Id; Val : List_Id); -- List5
10465
10466 procedure Set_Pragmas_Before
10467 (N : Node_Id; Val : List_Id); -- List4
10468
10469 procedure Set_Pre_Post_Conditions
10470 (N : Node_Id; Val : Node_Id); -- Node1
10471
10472 procedure Set_Prefix
10473 (N : Node_Id; Val : Node_Id); -- Node3
10474
10475 procedure Set_Premature_Use
10476 (N : Node_Id; Val : Node_Id); -- Node5
10477
10478 procedure Set_Present_Expr
10479 (N : Node_Id; Val : Uint); -- Uint3
10480
10481 procedure Set_Prev_Ids
10482 (N : Node_Id; Val : Boolean := True); -- Flag6
10483
10484 procedure Set_Print_In_Hex
10485 (N : Node_Id; Val : Boolean := True); -- Flag13
10486
10487 procedure Set_Private_Declarations
10488 (N : Node_Id; Val : List_Id); -- List3
10489
10490 procedure Set_Private_Present
10491 (N : Node_Id; Val : Boolean := True); -- Flag15
10492
10493 procedure Set_Procedure_To_Call
10494 (N : Node_Id; Val : Node_Id); -- Node2
10495
10496 procedure Set_Proper_Body
10497 (N : Node_Id; Val : Node_Id); -- Node1
10498
10499 procedure Set_Protected_Definition
10500 (N : Node_Id; Val : Node_Id); -- Node3
10501
10502 procedure Set_Protected_Present
10503 (N : Node_Id; Val : Boolean := True); -- Flag6
10504
10505 procedure Set_Raises_Constraint_Error
10506 (N : Node_Id; Val : Boolean := True); -- Flag7
10507
10508 procedure Set_Range_Constraint
10509 (N : Node_Id; Val : Node_Id); -- Node4
10510
10511 procedure Set_Range_Expression
10512 (N : Node_Id; Val : Node_Id); -- Node4
10513
10514 procedure Set_Real_Range_Specification
10515 (N : Node_Id; Val : Node_Id); -- Node4
10516
10517 procedure Set_Realval
10518 (N : Node_Id; Val : Ureal); -- Ureal3
10519
10520 procedure Set_Reason
10521 (N : Node_Id; Val : Uint); -- Uint3
10522
10523 procedure Set_Record_Extension_Part
10524 (N : Node_Id; Val : Node_Id); -- Node3
10525
10526 procedure Set_Redundant_Use
10527 (N : Node_Id; Val : Boolean := True); -- Flag13
10528
10529 procedure Set_Renaming_Exception
10530 (N : Node_Id; Val : Node_Id); -- Node2
10531
10532 procedure Set_Result_Definition
10533 (N : Node_Id; Val : Node_Id); -- Node4
10534
10535 procedure Set_Return_Object_Declarations
10536 (N : Node_Id; Val : List_Id); -- List3
10537
10538 procedure Set_Return_Statement_Entity
10539 (N : Node_Id; Val : Node_Id); -- Node5
10540
10541 procedure Set_Reverse_Present
10542 (N : Node_Id; Val : Boolean := True); -- Flag15
10543
10544 procedure Set_Right_Opnd
10545 (N : Node_Id; Val : Node_Id); -- Node3
10546
10547 procedure Set_Rounded_Result
10548 (N : Node_Id; Val : Boolean := True); -- Flag18
10549
10550 procedure Set_SCIL_Controlling_Tag
10551 (N : Node_Id; Val : Node_Id); -- Node5
10552
10553 procedure Set_SCIL_Entity
10554 (N : Node_Id; Val : Node_Id); -- Node4
10555
10556 procedure Set_SCIL_Tag_Value
10557 (N : Node_Id; Val : Node_Id); -- Node5
10558
10559 procedure Set_SCIL_Target_Prim
10560 (N : Node_Id; Val : Node_Id); -- Node2
10561
10562 procedure Set_Scope
10563 (N : Node_Id; Val : Node_Id); -- Node3
10564
10565 procedure Set_Select_Alternatives
10566 (N : Node_Id; Val : List_Id); -- List1
10567
10568 procedure Set_Selector_Name
10569 (N : Node_Id; Val : Node_Id); -- Node2
10570
10571 procedure Set_Selector_Names
10572 (N : Node_Id; Val : List_Id); -- List1
10573
10574 procedure Set_Shift_Count_OK
10575 (N : Node_Id; Val : Boolean := True); -- Flag4
10576
10577 procedure Set_Source_Type
10578 (N : Node_Id; Val : Entity_Id); -- Node1
10579
10580 procedure Set_Specification
10581 (N : Node_Id; Val : Node_Id); -- Node1
10582
10583 procedure Set_Split_PPC
10584 (N : Node_Id; Val : Boolean); -- Flag17
10585
10586 procedure Set_Statements
10587 (N : Node_Id; Val : List_Id); -- List3
10588
10589 procedure Set_Storage_Pool
10590 (N : Node_Id; Val : Node_Id); -- Node1
10591
10592 procedure Set_Subpool_Handle_Name
10593 (N : Node_Id; Val : Node_Id); -- Node4
10594
10595 procedure Set_Strval
10596 (N : Node_Id; Val : String_Id); -- Str3
10597
10598 procedure Set_Subtype_Indication
10599 (N : Node_Id; Val : Node_Id); -- Node5
10600
10601 procedure Set_Subtype_Mark
10602 (N : Node_Id; Val : Node_Id); -- Node4
10603
10604 procedure Set_Subtype_Marks
10605 (N : Node_Id; Val : List_Id); -- List2
10606
10607 procedure Set_Suppress_Assignment_Checks
10608 (N : Node_Id; Val : Boolean := True); -- Flag18
10609
10610 procedure Set_Suppress_Loop_Warnings
10611 (N : Node_Id; Val : Boolean := True); -- Flag17
10612
10613 procedure Set_Synchronized_Present
10614 (N : Node_Id; Val : Boolean := True); -- Flag7
10615
10616 procedure Set_Tagged_Present
10617 (N : Node_Id; Val : Boolean := True); -- Flag15
10618
10619 procedure Set_Target_Type
10620 (N : Node_Id; Val : Entity_Id); -- Node2
10621
10622 procedure Set_Task_Definition
10623 (N : Node_Id; Val : Node_Id); -- Node3
10624
10625 procedure Set_Task_Present
10626 (N : Node_Id; Val : Boolean := True); -- Flag5
10627
10628 procedure Set_Then_Actions
10629 (N : Node_Id; Val : List_Id); -- List2
10630
10631 procedure Set_Then_Statements
10632 (N : Node_Id; Val : List_Id); -- List2
10633
10634 procedure Set_Treat_Fixed_As_Integer
10635 (N : Node_Id; Val : Boolean := True); -- Flag14
10636
10637 procedure Set_Triggering_Alternative
10638 (N : Node_Id; Val : Node_Id); -- Node1
10639
10640 procedure Set_Triggering_Statement
10641 (N : Node_Id; Val : Node_Id); -- Node1
10642
10643 procedure Set_TSS_Elist
10644 (N : Node_Id; Val : Elist_Id); -- Elist3
10645
10646 procedure Set_Type_Definition
10647 (N : Node_Id; Val : Node_Id); -- Node3
10648
10649 procedure Set_Uneval_Old_Accept
10650 (N : Node_Id; Val : Boolean := True); -- Flag7
10651
10652 procedure Set_Uneval_Old_Warn
10653 (N : Node_Id; Val : Boolean := True); -- Flag18
10654
10655 procedure Set_Unit
10656 (N : Node_Id; Val : Node_Id); -- Node2
10657
10658 procedure Set_Unknown_Discriminants_Present
10659 (N : Node_Id; Val : Boolean := True); -- Flag13
10660
10661 procedure Set_Unreferenced_In_Spec
10662 (N : Node_Id; Val : Boolean := True); -- Flag7
10663
10664 procedure Set_Variant_Part
10665 (N : Node_Id; Val : Node_Id); -- Node4
10666
10667 procedure Set_Variants
10668 (N : Node_Id; Val : List_Id); -- List1
10669
10670 procedure Set_Visible_Declarations
10671 (N : Node_Id; Val : List_Id); -- List2
10672
10673 procedure Set_Uninitialized_Variable
10674 (N : Node_Id; Val : Node_Id); -- Node3
10675
10676 procedure Set_Used_Operations
10677 (N : Node_Id; Val : Elist_Id); -- Elist5
10678
10679 procedure Set_Was_Originally_Stub
10680 (N : Node_Id; Val : Boolean := True); -- Flag13
10681
10682 procedure Set_Withed_Body
10683 (N : Node_Id; Val : Node_Id); -- Node1
10684
10685 -------------------------
10686 -- Iterator Procedures --
10687 -------------------------
10688
10689 -- The call to Next_xxx (N) is equivalent to N := Next_xxx (N)
10690
10691 procedure Next_Entity (N : in out Node_Id);
10692 procedure Next_Named_Actual (N : in out Node_Id);
10693 procedure Next_Rep_Item (N : in out Node_Id);
10694 procedure Next_Use_Clause (N : in out Node_Id);
10695
10696 -------------------------------------------
10697 -- Miscellaneous Tree Access Subprograms --
10698 -------------------------------------------
10699
10700 function End_Location (N : Node_Id) return Source_Ptr;
10701 -- N is an N_If_Statement or N_Case_Statement node, and this function
10702 -- returns the location of the IF token in the END IF sequence by
10703 -- translating the value of the End_Span field.
10704
10705 procedure Set_End_Location (N : Node_Id; S : Source_Ptr);
10706 -- N is an N_If_Statement or N_Case_Statement node. This procedure sets
10707 -- the End_Span field to correspond to the given value S. In other words,
10708 -- End_Span is set to the difference between S and Sloc (N), the starting
10709 -- location.
10710
10711 function Get_Pragma_Arg (Arg : Node_Id) return Node_Id;
10712 -- Given an argument to a pragma Arg, this function returns the expression
10713 -- for the argument. This is Arg itself, or, in the case where Arg is a
10714 -- pragma argument association node, the expression from this node.
10715
10716 --------------------------------
10717 -- Node_Kind Membership Tests --
10718 --------------------------------
10719
10720 -- The following functions allow a convenient notation for testing whether
10721 -- a Node_Kind value matches any one of a list of possible values. In each
10722 -- case True is returned if the given T argument is equal to any of the V
10723 -- arguments. Note that there is a similar set of functions defined in
10724 -- Atree where the first argument is a Node_Id whose Nkind field is tested.
10725
10726 function Nkind_In
10727 (T : Node_Kind;
10728 V1 : Node_Kind;
10729 V2 : Node_Kind) return Boolean;
10730
10731 function Nkind_In
10732 (T : Node_Kind;
10733 V1 : Node_Kind;
10734 V2 : Node_Kind;
10735 V3 : Node_Kind) return Boolean;
10736
10737 function Nkind_In
10738 (T : Node_Kind;
10739 V1 : Node_Kind;
10740 V2 : Node_Kind;
10741 V3 : Node_Kind;
10742 V4 : Node_Kind) return Boolean;
10743
10744 function Nkind_In
10745 (T : Node_Kind;
10746 V1 : Node_Kind;
10747 V2 : Node_Kind;
10748 V3 : Node_Kind;
10749 V4 : Node_Kind;
10750 V5 : Node_Kind) return Boolean;
10751
10752 function Nkind_In
10753 (T : Node_Kind;
10754 V1 : Node_Kind;
10755 V2 : Node_Kind;
10756 V3 : Node_Kind;
10757 V4 : Node_Kind;
10758 V5 : Node_Kind;
10759 V6 : Node_Kind) return Boolean;
10760
10761 function Nkind_In
10762 (T : Node_Kind;
10763 V1 : Node_Kind;
10764 V2 : Node_Kind;
10765 V3 : Node_Kind;
10766 V4 : Node_Kind;
10767 V5 : Node_Kind;
10768 V6 : Node_Kind;
10769 V7 : Node_Kind) return Boolean;
10770
10771 function Nkind_In
10772 (T : Node_Kind;
10773 V1 : Node_Kind;
10774 V2 : Node_Kind;
10775 V3 : Node_Kind;
10776 V4 : Node_Kind;
10777 V5 : Node_Kind;
10778 V6 : Node_Kind;
10779 V7 : Node_Kind;
10780 V8 : Node_Kind) return Boolean;
10781
10782 function Nkind_In
10783 (T : Node_Kind;
10784 V1 : Node_Kind;
10785 V2 : Node_Kind;
10786 V3 : Node_Kind;
10787 V4 : Node_Kind;
10788 V5 : Node_Kind;
10789 V6 : Node_Kind;
10790 V7 : Node_Kind;
10791 V8 : Node_Kind;
10792 V9 : Node_Kind) return Boolean;
10793
10794 pragma Inline (Nkind_In);
10795 -- Inline all above functions
10796
10797 -----------------------
10798 -- Utility Functions --
10799 -----------------------
10800
10801 function Pragma_Name (N : Node_Id) return Name_Id;
10802 pragma Inline (Pragma_Name);
10803 -- Convenient function to obtain Chars field of Pragma_Identifier
10804
10805 -----------------------------
10806 -- Syntactic Parent Tables --
10807 -----------------------------
10808
10809 -- These tables show for each node, and for each of the five fields,
10810 -- whether the corresponding field is syntactic (True) or semantic (False).
10811 -- Unused entries are also set to False.
10812
10813 subtype Field_Num is Natural range 1 .. 5;
10814
10815 Is_Syntactic_Field : constant array (Node_Kind, Field_Num) of Boolean := (
10816
10817 -- Following entries can be built automatically from the sinfo sources
10818 -- using the makeisf utility (currently this program is in spitbol).
10819
10820 N_Identifier =>
10821 (1 => True, -- Chars (Name1)
10822 2 => False, -- Original_Discriminant (Node2-Sem)
10823 3 => False, -- unused
10824 4 => False, -- Entity (Node4-Sem)
10825 5 => False), -- Etype (Node5-Sem)
10826
10827 N_Integer_Literal =>
10828 (1 => False, -- unused
10829 2 => False, -- Original_Entity (Node2-Sem)
10830 3 => True, -- Intval (Uint3)
10831 4 => False, -- unused
10832 5 => False), -- Etype (Node5-Sem)
10833
10834 N_Real_Literal =>
10835 (1 => False, -- unused
10836 2 => False, -- Original_Entity (Node2-Sem)
10837 3 => True, -- Realval (Ureal3)
10838 4 => False, -- Corresponding_Integer_Value (Uint4-Sem)
10839 5 => False), -- Etype (Node5-Sem)
10840
10841 N_Character_Literal =>
10842 (1 => True, -- Chars (Name1)
10843 2 => True, -- Char_Literal_Value (Uint2)
10844 3 => False, -- unused
10845 4 => False, -- Entity (Node4-Sem)
10846 5 => False), -- Etype (Node5-Sem)
10847
10848 N_String_Literal =>
10849 (1 => False, -- unused
10850 2 => False, -- unused
10851 3 => True, -- Strval (Str3)
10852 4 => False, -- unused
10853 5 => False), -- Etype (Node5-Sem)
10854
10855 N_Pragma =>
10856 (1 => False, -- Next_Pragma (Node1-Sem)
10857 2 => True, -- Pragma_Argument_Associations (List2)
10858 3 => False, -- unused
10859 4 => True, -- Pragma_Identifier (Node4)
10860 5 => False), -- Next_Rep_Item (Node5-Sem)
10861
10862 N_Pragma_Argument_Association =>
10863 (1 => True, -- Chars (Name1)
10864 2 => False, -- unused
10865 3 => True, -- Expression (Node3)
10866 4 => False, -- unused
10867 5 => False), -- unused
10868
10869 N_Defining_Identifier =>
10870 (1 => True, -- Chars (Name1)
10871 2 => False, -- Next_Entity (Node2-Sem)
10872 3 => False, -- Scope (Node3-Sem)
10873 4 => False, -- unused
10874 5 => False), -- Etype (Node5-Sem)
10875
10876 N_Full_Type_Declaration =>
10877 (1 => True, -- Defining_Identifier (Node1)
10878 2 => False, -- Incomplete_View (Node2-Sem)
10879 3 => True, -- Type_Definition (Node3)
10880 4 => True, -- Discriminant_Specifications (List4)
10881 5 => False), -- unused
10882
10883 N_Subtype_Declaration =>
10884 (1 => True, -- Defining_Identifier (Node1)
10885 2 => False, -- unused
10886 3 => False, -- unused
10887 4 => False, -- Generic_Parent_Type (Node4-Sem)
10888 5 => True), -- Subtype_Indication (Node5)
10889
10890 N_Subtype_Indication =>
10891 (1 => False, -- unused
10892 2 => False, -- unused
10893 3 => True, -- Constraint (Node3)
10894 4 => True, -- Subtype_Mark (Node4)
10895 5 => False), -- Etype (Node5-Sem)
10896
10897 N_Object_Declaration =>
10898 (1 => True, -- Defining_Identifier (Node1)
10899 2 => False, -- Handler_List_Entry (Node2-Sem)
10900 3 => True, -- Expression (Node3)
10901 4 => True, -- Object_Definition (Node4)
10902 5 => False), -- Corresponding_Generic_Association (Node5-Sem)
10903
10904 N_Number_Declaration =>
10905 (1 => True, -- Defining_Identifier (Node1)
10906 2 => False, -- unused
10907 3 => True, -- Expression (Node3)
10908 4 => False, -- unused
10909 5 => False), -- unused
10910
10911 N_Derived_Type_Definition =>
10912 (1 => False, -- unused
10913 2 => True, -- Interface_List (List2)
10914 3 => True, -- Record_Extension_Part (Node3)
10915 4 => False, -- unused
10916 5 => True), -- Subtype_Indication (Node5)
10917
10918 N_Range_Constraint =>
10919 (1 => False, -- unused
10920 2 => False, -- unused
10921 3 => False, -- unused
10922 4 => True, -- Range_Expression (Node4)
10923 5 => False), -- unused
10924
10925 N_Range =>
10926 (1 => True, -- Low_Bound (Node1)
10927 2 => True, -- High_Bound (Node2)
10928 3 => False, -- unused
10929 4 => False, -- unused
10930 5 => False), -- Etype (Node5-Sem)
10931
10932 N_Enumeration_Type_Definition =>
10933 (1 => True, -- Literals (List1)
10934 2 => False, -- unused
10935 3 => False, -- unused
10936 4 => True, -- End_Label (Node4)
10937 5 => False), -- unused
10938
10939 N_Defining_Character_Literal =>
10940 (1 => True, -- Chars (Name1)
10941 2 => False, -- Next_Entity (Node2-Sem)
10942 3 => False, -- Scope (Node3-Sem)
10943 4 => False, -- unused
10944 5 => False), -- Etype (Node5-Sem)
10945
10946 N_Signed_Integer_Type_Definition =>
10947 (1 => True, -- Low_Bound (Node1)
10948 2 => True, -- High_Bound (Node2)
10949 3 => False, -- unused
10950 4 => False, -- unused
10951 5 => False), -- unused
10952
10953 N_Modular_Type_Definition =>
10954 (1 => False, -- unused
10955 2 => False, -- unused
10956 3 => True, -- Expression (Node3)
10957 4 => False, -- unused
10958 5 => False), -- unused
10959
10960 N_Floating_Point_Definition =>
10961 (1 => False, -- unused
10962 2 => True, -- Digits_Expression (Node2)
10963 3 => False, -- unused
10964 4 => True, -- Real_Range_Specification (Node4)
10965 5 => False), -- unused
10966
10967 N_Real_Range_Specification =>
10968 (1 => True, -- Low_Bound (Node1)
10969 2 => True, -- High_Bound (Node2)
10970 3 => False, -- unused
10971 4 => False, -- unused
10972 5 => False), -- unused
10973
10974 N_Ordinary_Fixed_Point_Definition =>
10975 (1 => False, -- unused
10976 2 => False, -- unused
10977 3 => True, -- Delta_Expression (Node3)
10978 4 => True, -- Real_Range_Specification (Node4)
10979 5 => False), -- unused
10980
10981 N_Decimal_Fixed_Point_Definition =>
10982 (1 => False, -- unused
10983 2 => True, -- Digits_Expression (Node2)
10984 3 => True, -- Delta_Expression (Node3)
10985 4 => True, -- Real_Range_Specification (Node4)
10986 5 => False), -- unused
10987
10988 N_Digits_Constraint =>
10989 (1 => False, -- unused
10990 2 => True, -- Digits_Expression (Node2)
10991 3 => False, -- unused
10992 4 => True, -- Range_Constraint (Node4)
10993 5 => False), -- unused
10994
10995 N_Unconstrained_Array_Definition =>
10996 (1 => False, -- unused
10997 2 => True, -- Subtype_Marks (List2)
10998 3 => False, -- unused
10999 4 => True, -- Component_Definition (Node4)
11000 5 => False), -- unused
11001
11002 N_Constrained_Array_Definition =>
11003 (1 => False, -- unused
11004 2 => True, -- Discrete_Subtype_Definitions (List2)
11005 3 => False, -- unused
11006 4 => True, -- Component_Definition (Node4)
11007 5 => False), -- unused
11008
11009 N_Component_Definition =>
11010 (1 => False, -- unused
11011 2 => False, -- unused
11012 3 => True, -- Access_Definition (Node3)
11013 4 => False, -- unused
11014 5 => True), -- Subtype_Indication (Node5)
11015
11016 N_Discriminant_Specification =>
11017 (1 => True, -- Defining_Identifier (Node1)
11018 2 => False, -- unused
11019 3 => True, -- Expression (Node3)
11020 4 => False, -- unused
11021 5 => True), -- Discriminant_Type (Node5)
11022
11023 N_Index_Or_Discriminant_Constraint =>
11024 (1 => True, -- Constraints (List1)
11025 2 => False, -- unused
11026 3 => False, -- unused
11027 4 => False, -- unused
11028 5 => False), -- unused
11029
11030 N_Discriminant_Association =>
11031 (1 => True, -- Selector_Names (List1)
11032 2 => False, -- unused
11033 3 => True, -- Expression (Node3)
11034 4 => False, -- unused
11035 5 => False), -- unused
11036
11037 N_Record_Definition =>
11038 (1 => True, -- Component_List (Node1)
11039 2 => True, -- Interface_List (List2)
11040 3 => False, -- unused
11041 4 => True, -- End_Label (Node4)
11042 5 => False), -- unused
11043
11044 N_Component_List =>
11045 (1 => False, -- unused
11046 2 => False, -- unused
11047 3 => True, -- Component_Items (List3)
11048 4 => True, -- Variant_Part (Node4)
11049 5 => False), -- unused
11050
11051 N_Component_Declaration =>
11052 (1 => True, -- Defining_Identifier (Node1)
11053 2 => False, -- unused
11054 3 => True, -- Expression (Node3)
11055 4 => True, -- Component_Definition (Node4)
11056 5 => False), -- unused
11057
11058 N_Variant_Part =>
11059 (1 => True, -- Variants (List1)
11060 2 => True, -- Name (Node2)
11061 3 => False, -- unused
11062 4 => False, -- unused
11063 5 => False), -- unused
11064
11065 N_Variant =>
11066 (1 => True, -- Component_List (Node1)
11067 2 => False, -- Enclosing_Variant (Node2-Sem)
11068 3 => False, -- Present_Expr (Uint3-Sem)
11069 4 => True, -- Discrete_Choices (List4)
11070 5 => False), -- Dcheck_Function (Node5-Sem)
11071
11072 N_Others_Choice =>
11073 (1 => False, -- Others_Discrete_Choices (List1-Sem)
11074 2 => False, -- unused
11075 3 => False, -- unused
11076 4 => False, -- unused
11077 5 => False), -- unused
11078
11079 N_Access_To_Object_Definition =>
11080 (1 => False, -- unused
11081 2 => False, -- unused
11082 3 => False, -- unused
11083 4 => False, -- unused
11084 5 => True), -- Subtype_Indication (Node5)
11085
11086 N_Access_Function_Definition =>
11087 (1 => False, -- unused
11088 2 => False, -- unused
11089 3 => True, -- Parameter_Specifications (List3)
11090 4 => True, -- Result_Definition (Node4)
11091 5 => False), -- unused
11092
11093 N_Access_Procedure_Definition =>
11094 (1 => False, -- unused
11095 2 => False, -- unused
11096 3 => True, -- Parameter_Specifications (List3)
11097 4 => False, -- unused
11098 5 => False), -- unused
11099
11100 N_Access_Definition =>
11101 (1 => False, -- unused
11102 2 => False, -- unused
11103 3 => True, -- Access_To_Subprogram_Definition (Node3)
11104 4 => True, -- Subtype_Mark (Node4)
11105 5 => False), -- unused
11106
11107 N_Incomplete_Type_Declaration =>
11108 (1 => True, -- Defining_Identifier (Node1)
11109 2 => False, -- unused
11110 3 => False, -- unused
11111 4 => True, -- Discriminant_Specifications (List4)
11112 5 => False), -- Premature_Use
11113
11114 N_Explicit_Dereference =>
11115 (1 => False, -- unused
11116 2 => False, -- unused
11117 3 => True, -- Prefix (Node3)
11118 4 => False, -- Actual_Designated_Subtype (Node4-Sem)
11119 5 => False), -- Etype (Node5-Sem)
11120
11121 N_Indexed_Component =>
11122 (1 => True, -- Expressions (List1)
11123 2 => False, -- unused
11124 3 => True, -- Prefix (Node3)
11125 4 => False, -- Generalized_Indexing (Node4-Sem)
11126 5 => False), -- Etype (Node5-Sem)
11127
11128 N_Slice =>
11129 (1 => False, -- unused
11130 2 => False, -- unused
11131 3 => True, -- Prefix (Node3)
11132 4 => True, -- Discrete_Range (Node4)
11133 5 => False), -- Etype (Node5-Sem)
11134
11135 N_Selected_Component =>
11136 (1 => False, -- unused
11137 2 => True, -- Selector_Name (Node2)
11138 3 => True, -- Prefix (Node3)
11139 4 => False, -- unused
11140 5 => False), -- Etype (Node5-Sem)
11141
11142 N_Attribute_Reference =>
11143 (1 => True, -- Expressions (List1)
11144 2 => True, -- Attribute_Name (Name2)
11145 3 => True, -- Prefix (Node3)
11146 4 => False, -- Entity (Node4-Sem)
11147 5 => False), -- Etype (Node5-Sem)
11148
11149 N_Aggregate =>
11150 (1 => True, -- Expressions (List1)
11151 2 => True, -- Component_Associations (List2)
11152 3 => False, -- Aggregate_Bounds (Node3-Sem)
11153 4 => False, -- unused
11154 5 => False), -- Etype (Node5-Sem)
11155
11156 N_Component_Association =>
11157 (1 => True, -- Choices (List1)
11158 2 => False, -- Loop_Actions (List2-Sem)
11159 3 => True, -- Expression (Node3)
11160 4 => False, -- unused
11161 5 => False), -- unused
11162
11163 N_Extension_Aggregate =>
11164 (1 => True, -- Expressions (List1)
11165 2 => True, -- Component_Associations (List2)
11166 3 => True, -- Ancestor_Part (Node3)
11167 4 => False, -- unused
11168 5 => False), -- Etype (Node5-Sem)
11169
11170 N_Null =>
11171 (1 => False, -- unused
11172 2 => False, -- unused
11173 3 => False, -- unused
11174 4 => False, -- unused
11175 5 => False), -- Etype (Node5-Sem)
11176
11177 N_And_Then =>
11178 (1 => False, -- Actions (List1-Sem)
11179 2 => True, -- Left_Opnd (Node2)
11180 3 => True, -- Right_Opnd (Node3)
11181 4 => False, -- unused
11182 5 => False), -- Etype (Node5-Sem)
11183
11184 N_Or_Else =>
11185 (1 => False, -- Actions (List1-Sem)
11186 2 => True, -- Left_Opnd (Node2)
11187 3 => True, -- Right_Opnd (Node3)
11188 4 => False, -- unused
11189 5 => False), -- Etype (Node5-Sem)
11190
11191 N_In =>
11192 (1 => False, -- unused
11193 2 => True, -- Left_Opnd (Node2)
11194 3 => True, -- Right_Opnd (Node3)
11195 4 => True, -- Alternatives (List4)
11196 5 => False), -- Etype (Node5-Sem)
11197
11198 N_Not_In =>
11199 (1 => False, -- unused
11200 2 => True, -- Left_Opnd (Node2)
11201 3 => True, -- Right_Opnd (Node3)
11202 4 => True, -- Alternatives (List4)
11203 5 => False), -- Etype (Node5-Sem)
11204
11205 N_Op_And =>
11206 (1 => True, -- Chars (Name1)
11207 2 => True, -- Left_Opnd (Node2)
11208 3 => True, -- Right_Opnd (Node3)
11209 4 => False, -- Entity (Node4-Sem)
11210 5 => False), -- Etype (Node5-Sem)
11211
11212 N_Op_Or =>
11213 (1 => True, -- Chars (Name1)
11214 2 => True, -- Left_Opnd (Node2)
11215 3 => True, -- Right_Opnd (Node3)
11216 4 => False, -- Entity (Node4-Sem)
11217 5 => False), -- Etype (Node5-Sem)
11218
11219 N_Op_Xor =>
11220 (1 => True, -- Chars (Name1)
11221 2 => True, -- Left_Opnd (Node2)
11222 3 => True, -- Right_Opnd (Node3)
11223 4 => False, -- Entity (Node4-Sem)
11224 5 => False), -- Etype (Node5-Sem)
11225
11226 N_Op_Eq =>
11227 (1 => True, -- Chars (Name1)
11228 2 => True, -- Left_Opnd (Node2)
11229 3 => True, -- Right_Opnd (Node3)
11230 4 => False, -- Entity (Node4-Sem)
11231 5 => False), -- Etype (Node5-Sem)
11232
11233 N_Op_Ne =>
11234 (1 => True, -- Chars (Name1)
11235 2 => True, -- Left_Opnd (Node2)
11236 3 => True, -- Right_Opnd (Node3)
11237 4 => False, -- Entity (Node4-Sem)
11238 5 => False), -- Etype (Node5-Sem)
11239
11240 N_Op_Lt =>
11241 (1 => True, -- Chars (Name1)
11242 2 => True, -- Left_Opnd (Node2)
11243 3 => True, -- Right_Opnd (Node3)
11244 4 => False, -- Entity (Node4-Sem)
11245 5 => False), -- Etype (Node5-Sem)
11246
11247 N_Op_Le =>
11248 (1 => True, -- Chars (Name1)
11249 2 => True, -- Left_Opnd (Node2)
11250 3 => True, -- Right_Opnd (Node3)
11251 4 => False, -- Entity (Node4-Sem)
11252 5 => False), -- Etype (Node5-Sem)
11253
11254 N_Op_Gt =>
11255 (1 => True, -- Chars (Name1)
11256 2 => True, -- Left_Opnd (Node2)
11257 3 => True, -- Right_Opnd (Node3)
11258 4 => False, -- Entity (Node4-Sem)
11259 5 => False), -- Etype (Node5-Sem)
11260
11261 N_Op_Ge =>
11262 (1 => True, -- Chars (Name1)
11263 2 => True, -- Left_Opnd (Node2)
11264 3 => True, -- Right_Opnd (Node3)
11265 4 => False, -- Entity (Node4-Sem)
11266 5 => False), -- Etype (Node5-Sem)
11267
11268 N_Op_Add =>
11269 (1 => True, -- Chars (Name1)
11270 2 => True, -- Left_Opnd (Node2)
11271 3 => True, -- Right_Opnd (Node3)
11272 4 => False, -- Entity (Node4-Sem)
11273 5 => False), -- Etype (Node5-Sem)
11274
11275 N_Op_Subtract =>
11276 (1 => True, -- Chars (Name1)
11277 2 => True, -- Left_Opnd (Node2)
11278 3 => True, -- Right_Opnd (Node3)
11279 4 => False, -- Entity (Node4-Sem)
11280 5 => False), -- Etype (Node5-Sem)
11281
11282 N_Op_Concat =>
11283 (1 => True, -- Chars (Name1)
11284 2 => True, -- Left_Opnd (Node2)
11285 3 => True, -- Right_Opnd (Node3)
11286 4 => False, -- Entity (Node4-Sem)
11287 5 => False), -- Etype (Node5-Sem)
11288
11289 N_Op_Multiply =>
11290 (1 => True, -- Chars (Name1)
11291 2 => True, -- Left_Opnd (Node2)
11292 3 => True, -- Right_Opnd (Node3)
11293 4 => False, -- Entity (Node4-Sem)
11294 5 => False), -- Etype (Node5-Sem)
11295
11296 N_Op_Divide =>
11297 (1 => True, -- Chars (Name1)
11298 2 => True, -- Left_Opnd (Node2)
11299 3 => True, -- Right_Opnd (Node3)
11300 4 => False, -- Entity (Node4-Sem)
11301 5 => False), -- Etype (Node5-Sem)
11302
11303 N_Op_Mod =>
11304 (1 => True, -- Chars (Name1)
11305 2 => True, -- Left_Opnd (Node2)
11306 3 => True, -- Right_Opnd (Node3)
11307 4 => False, -- Entity (Node4-Sem)
11308 5 => False), -- Etype (Node5-Sem)
11309
11310 N_Op_Rem =>
11311 (1 => True, -- Chars (Name1)
11312 2 => True, -- Left_Opnd (Node2)
11313 3 => True, -- Right_Opnd (Node3)
11314 4 => False, -- Entity (Node4-Sem)
11315 5 => False), -- Etype (Node5-Sem)
11316
11317 N_Op_Expon =>
11318 (1 => True, -- Chars (Name1)
11319 2 => True, -- Left_Opnd (Node2)
11320 3 => True, -- Right_Opnd (Node3)
11321 4 => False, -- Entity (Node4-Sem)
11322 5 => False), -- Etype (Node5-Sem)
11323
11324 N_Op_Plus =>
11325 (1 => True, -- Chars (Name1)
11326 2 => False, -- unused
11327 3 => True, -- Right_Opnd (Node3)
11328 4 => False, -- Entity (Node4-Sem)
11329 5 => False), -- Etype (Node5-Sem)
11330
11331 N_Op_Minus =>
11332 (1 => True, -- Chars (Name1)
11333 2 => False, -- unused
11334 3 => True, -- Right_Opnd (Node3)
11335 4 => False, -- Entity (Node4-Sem)
11336 5 => False), -- Etype (Node5-Sem)
11337
11338 N_Op_Abs =>
11339 (1 => True, -- Chars (Name1)
11340 2 => False, -- unused
11341 3 => True, -- Right_Opnd (Node3)
11342 4 => False, -- Entity (Node4-Sem)
11343 5 => False), -- Etype (Node5-Sem)
11344
11345 N_Op_Not =>
11346 (1 => True, -- Chars (Name1)
11347 2 => False, -- unused
11348 3 => True, -- Right_Opnd (Node3)
11349 4 => False, -- Entity (Node4-Sem)
11350 5 => False), -- Etype (Node5-Sem)
11351
11352 N_Type_Conversion =>
11353 (1 => False, -- unused
11354 2 => False, -- unused
11355 3 => True, -- Expression (Node3)
11356 4 => True, -- Subtype_Mark (Node4)
11357 5 => False), -- Etype (Node5-Sem)
11358
11359 N_Qualified_Expression =>
11360 (1 => False, -- unused
11361 2 => False, -- unused
11362 3 => True, -- Expression (Node3)
11363 4 => True, -- Subtype_Mark (Node4)
11364 5 => False), -- Etype (Node5-Sem)
11365
11366 N_Quantified_Expression =>
11367 (1 => True, -- Condition (Node1)
11368 2 => True, -- Iterator_Specification
11369 3 => False, -- unused
11370 4 => True, -- Loop_Parameter_Specification (Node4)
11371 5 => False), -- Etype (Node5-Sem)
11372
11373 N_Allocator =>
11374 (1 => False, -- Storage_Pool (Node1-Sem)
11375 2 => False, -- Procedure_To_Call (Node2-Sem)
11376 3 => True, -- Expression (Node3)
11377 4 => True, -- Subpool_Handle_Name (Node4)
11378 5 => False), -- Etype (Node5-Sem)
11379
11380 N_Null_Statement =>
11381 (1 => False, -- unused
11382 2 => False, -- unused
11383 3 => False, -- unused
11384 4 => False, -- unused
11385 5 => False), -- unused
11386
11387 N_Label =>
11388 (1 => True, -- Identifier (Node1)
11389 2 => False, -- unused
11390 3 => False, -- unused
11391 4 => False, -- unused
11392 5 => False), -- unused
11393
11394 N_Assignment_Statement =>
11395 (1 => False, -- unused
11396 2 => True, -- Name (Node2)
11397 3 => True, -- Expression (Node3)
11398 4 => False, -- unused
11399 5 => False), -- unused
11400
11401 N_If_Statement =>
11402 (1 => True, -- Condition (Node1)
11403 2 => True, -- Then_Statements (List2)
11404 3 => True, -- Elsif_Parts (List3)
11405 4 => True, -- Else_Statements (List4)
11406 5 => True), -- End_Span (Uint5)
11407
11408 N_Elsif_Part =>
11409 (1 => True, -- Condition (Node1)
11410 2 => True, -- Then_Statements (List2)
11411 3 => False, -- Condition_Actions (List3-Sem)
11412 4 => False, -- unused
11413 5 => False), -- unused
11414
11415 N_Case_Expression =>
11416 (1 => False, -- unused
11417 2 => False, -- unused
11418 3 => True, -- Expression (Node3)
11419 4 => True, -- Alternatives (List4)
11420 5 => False), -- unused
11421
11422 N_Case_Expression_Alternative =>
11423 (1 => False, -- Actions (List1-Sem)
11424 2 => False, -- unused
11425 3 => True, -- Statements (List3)
11426 4 => True, -- Expression (Node4)
11427 5 => False), -- unused
11428
11429 N_Case_Statement =>
11430 (1 => False, -- unused
11431 2 => False, -- unused
11432 3 => True, -- Expression (Node3)
11433 4 => True, -- Alternatives (List4)
11434 5 => True), -- End_Span (Uint5)
11435
11436 N_Case_Statement_Alternative =>
11437 (1 => False, -- unused
11438 2 => False, -- unused
11439 3 => True, -- Statements (List3)
11440 4 => True, -- Discrete_Choices (List4)
11441 5 => False), -- unused
11442
11443 N_Loop_Statement =>
11444 (1 => True, -- Identifier (Node1)
11445 2 => True, -- Iteration_Scheme (Node2)
11446 3 => True, -- Statements (List3)
11447 4 => True, -- End_Label (Node4)
11448 5 => False), -- unused
11449
11450 N_Iteration_Scheme =>
11451 (1 => True, -- Condition (Node1)
11452 2 => True, -- Iterator_Specification (Node2)
11453 3 => False, -- Condition_Actions (List3-Sem)
11454 4 => True, -- Loop_Parameter_Specification (Node4)
11455 5 => False), -- unused
11456
11457 N_Loop_Parameter_Specification =>
11458 (1 => True, -- Defining_Identifier (Node1)
11459 2 => False, -- unused
11460 3 => False, -- unused
11461 4 => True, -- Discrete_Subtype_Definition (Node4)
11462 5 => False), -- unused
11463
11464 N_Iterator_Specification =>
11465 (1 => True, -- Defining_Identifier (Node1)
11466 2 => True, -- Name (Node2)
11467 3 => False, -- Unused
11468 4 => False, -- Unused
11469 5 => True), -- Subtype_Indication (Node5)
11470
11471 N_Block_Statement =>
11472 (1 => True, -- Identifier (Node1)
11473 2 => True, -- Declarations (List2)
11474 3 => False, -- Activation_Chain_Entity (Node3-Sem)
11475 4 => True, -- Handled_Statement_Sequence (Node4)
11476 5 => False), -- unused
11477
11478 N_Exit_Statement =>
11479 (1 => True, -- Condition (Node1)
11480 2 => True, -- Name (Node2)
11481 3 => False, -- unused
11482 4 => False, -- unused
11483 5 => False), -- unused
11484
11485 N_Goto_Statement =>
11486 (1 => False, -- unused
11487 2 => True, -- Name (Node2)
11488 3 => False, -- unused
11489 4 => False, -- unused
11490 5 => False), -- unused
11491
11492 N_Subprogram_Declaration =>
11493 (1 => True, -- Specification (Node1)
11494 2 => False, -- unused
11495 3 => False, -- Body_To_Inline (Node3-Sem)
11496 4 => False, -- Parent_Spec (Node4-Sem)
11497 5 => False), -- Corresponding_Body (Node5-Sem)
11498
11499 N_Abstract_Subprogram_Declaration =>
11500 (1 => True, -- Specification (Node1)
11501 2 => False, -- unused
11502 3 => False, -- unused
11503 4 => False, -- unused
11504 5 => False), -- unused
11505
11506 N_Function_Specification =>
11507 (1 => True, -- Defining_Unit_Name (Node1)
11508 2 => False, -- Elaboration_Boolean (Node2-Sem)
11509 3 => True, -- Parameter_Specifications (List3)
11510 4 => True, -- Result_Definition (Node4)
11511 5 => False), -- Generic_Parent (Node5-Sem)
11512
11513 N_Procedure_Specification =>
11514 (1 => True, -- Defining_Unit_Name (Node1)
11515 2 => False, -- Elaboration_Boolean (Node2-Sem)
11516 3 => True, -- Parameter_Specifications (List3)
11517 4 => False, -- unused
11518 5 => False), -- Generic_Parent (Node5-Sem)
11519
11520 N_Designator =>
11521 (1 => True, -- Identifier (Node1)
11522 2 => True, -- Name (Node2)
11523 3 => False, -- unused
11524 4 => False, -- unused
11525 5 => False), -- unused
11526
11527 N_Defining_Program_Unit_Name =>
11528 (1 => True, -- Defining_Identifier (Node1)
11529 2 => True, -- Name (Node2)
11530 3 => False, -- unused
11531 4 => False, -- unused
11532 5 => False), -- unused
11533
11534 N_Operator_Symbol =>
11535 (1 => True, -- Chars (Name1)
11536 2 => False, -- unused
11537 3 => True, -- Strval (Str3)
11538 4 => False, -- Entity (Node4-Sem)
11539 5 => False), -- Etype (Node5-Sem)
11540
11541 N_Defining_Operator_Symbol =>
11542 (1 => True, -- Chars (Name1)
11543 2 => False, -- Next_Entity (Node2-Sem)
11544 3 => False, -- Scope (Node3-Sem)
11545 4 => False, -- unused
11546 5 => False), -- Etype (Node5-Sem)
11547
11548 N_Parameter_Specification =>
11549 (1 => True, -- Defining_Identifier (Node1)
11550 2 => True, -- Parameter_Type (Node2)
11551 3 => True, -- Expression (Node3)
11552 4 => False, -- unused
11553 5 => False), -- Default_Expression (Node5-Sem)
11554
11555 N_Subprogram_Body =>
11556 (1 => True, -- Specification (Node1)
11557 2 => True, -- Declarations (List2)
11558 3 => False, -- Activation_Chain_Entity (Node3-Sem)
11559 4 => True, -- Handled_Statement_Sequence (Node4)
11560 5 => False), -- Corresponding_Spec (Node5-Sem)
11561
11562 N_Expression_Function =>
11563 (1 => True, -- Specification (Node1)
11564 2 => False, -- unused
11565 3 => True, -- Expression (Node3)
11566 4 => False, -- unused
11567 5 => False), -- unused
11568
11569 N_Procedure_Call_Statement =>
11570 (1 => False, -- Controlling_Argument (Node1-Sem)
11571 2 => True, -- Name (Node2)
11572 3 => True, -- Parameter_Associations (List3)
11573 4 => False, -- First_Named_Actual (Node4-Sem)
11574 5 => False), -- Etype (Node5-Sem)
11575
11576 N_Function_Call =>
11577 (1 => False, -- Controlling_Argument (Node1-Sem)
11578 2 => True, -- Name (Node2)
11579 3 => True, -- Parameter_Associations (List3)
11580 4 => False, -- First_Named_Actual (Node4-Sem)
11581 5 => False), -- Etype (Node5-Sem)
11582
11583 N_Parameter_Association =>
11584 (1 => False, -- unused
11585 2 => True, -- Selector_Name (Node2)
11586 3 => True, -- Explicit_Actual_Parameter (Node3)
11587 4 => False, -- Next_Named_Actual (Node4-Sem)
11588 5 => False), -- unused
11589
11590 N_Simple_Return_Statement =>
11591 (1 => False, -- Storage_Pool (Node1-Sem)
11592 2 => False, -- Procedure_To_Call (Node2-Sem)
11593 3 => True, -- Expression (Node3)
11594 4 => False, -- unused
11595 5 => False), -- Return_Statement_Entity (Node5-Sem)
11596
11597 N_Extended_Return_Statement =>
11598 (1 => False, -- Storage_Pool (Node1-Sem)
11599 2 => False, -- Procedure_To_Call (Node2-Sem)
11600 3 => True, -- Return_Object_Declarations (List3)
11601 4 => True, -- Handled_Statement_Sequence (Node4)
11602 5 => False), -- Return_Statement_Entity (Node5-Sem)
11603
11604 N_Package_Declaration =>
11605 (1 => True, -- Specification (Node1)
11606 2 => False, -- unused
11607 3 => False, -- Activation_Chain_Entity (Node3-Sem)
11608 4 => False, -- Parent_Spec (Node4-Sem)
11609 5 => False), -- Corresponding_Body (Node5-Sem)
11610
11611 N_Package_Specification =>
11612 (1 => True, -- Defining_Unit_Name (Node1)
11613 2 => True, -- Visible_Declarations (List2)
11614 3 => True, -- Private_Declarations (List3)
11615 4 => True, -- End_Label (Node4)
11616 5 => False), -- Generic_Parent (Node5-Sem)
11617
11618 N_Package_Body =>
11619 (1 => True, -- Defining_Unit_Name (Node1)
11620 2 => True, -- Declarations (List2)
11621 3 => False, -- unused
11622 4 => True, -- Handled_Statement_Sequence (Node4)
11623 5 => False), -- Corresponding_Spec (Node5-Sem)
11624
11625 N_Private_Type_Declaration =>
11626 (1 => True, -- Defining_Identifier (Node1)
11627 2 => False, -- unused
11628 3 => False, -- unused
11629 4 => True, -- Discriminant_Specifications (List4)
11630 5 => False), -- unused
11631
11632 N_Private_Extension_Declaration =>
11633 (1 => True, -- Defining_Identifier (Node1)
11634 2 => True, -- Interface_List (List2)
11635 3 => False, -- unused
11636 4 => True, -- Discriminant_Specifications (List4)
11637 5 => True), -- Subtype_Indication (Node5)
11638
11639 N_Use_Package_Clause =>
11640 (1 => False, -- unused
11641 2 => True, -- Names (List2)
11642 3 => False, -- Next_Use_Clause (Node3-Sem)
11643 4 => False, -- Hidden_By_Use_Clause (Elist4-Sem)
11644 5 => False), -- unused
11645
11646 N_Use_Type_Clause =>
11647 (1 => False, -- unused
11648 2 => True, -- Subtype_Marks (List2)
11649 3 => False, -- Next_Use_Clause (Node3-Sem)
11650 4 => False, -- Hidden_By_Use_Clause (Elist4-Sem)
11651 5 => False), -- unused
11652
11653 N_Object_Renaming_Declaration =>
11654 (1 => True, -- Defining_Identifier (Node1)
11655 2 => True, -- Name (Node2)
11656 3 => True, -- Access_Definition (Node3)
11657 4 => True, -- Subtype_Mark (Node4)
11658 5 => False), -- Corresponding_Generic_Association (Node5-Sem)
11659
11660 N_Exception_Renaming_Declaration =>
11661 (1 => True, -- Defining_Identifier (Node1)
11662 2 => True, -- Name (Node2)
11663 3 => False, -- unused
11664 4 => False, -- unused
11665 5 => False), -- unused
11666
11667 N_Package_Renaming_Declaration =>
11668 (1 => True, -- Defining_Unit_Name (Node1)
11669 2 => True, -- Name (Node2)
11670 3 => False, -- unused
11671 4 => False, -- Parent_Spec (Node4-Sem)
11672 5 => False), -- unused
11673
11674 N_Subprogram_Renaming_Declaration =>
11675 (1 => True, -- Specification (Node1)
11676 2 => True, -- Name (Node2)
11677 3 => False, -- Corresponding_Formal_Spec (Node3-Sem)
11678 4 => False, -- Parent_Spec (Node4-Sem)
11679 5 => False), -- Corresponding_Spec (Node5-Sem)
11680
11681 N_Generic_Package_Renaming_Declaration =>
11682 (1 => True, -- Defining_Unit_Name (Node1)
11683 2 => True, -- Name (Node2)
11684 3 => False, -- unused
11685 4 => False, -- Parent_Spec (Node4-Sem)
11686 5 => False), -- unused
11687
11688 N_Generic_Procedure_Renaming_Declaration =>
11689 (1 => True, -- Defining_Unit_Name (Node1)
11690 2 => True, -- Name (Node2)
11691 3 => False, -- unused
11692 4 => False, -- Parent_Spec (Node4-Sem)
11693 5 => False), -- unused
11694
11695 N_Generic_Function_Renaming_Declaration =>
11696 (1 => True, -- Defining_Unit_Name (Node1)
11697 2 => True, -- Name (Node2)
11698 3 => False, -- unused
11699 4 => False, -- Parent_Spec (Node4-Sem)
11700 5 => False), -- unused
11701
11702 N_Task_Type_Declaration =>
11703 (1 => True, -- Defining_Identifier (Node1)
11704 2 => True, -- Interface_List (List2)
11705 3 => True, -- Task_Definition (Node3)
11706 4 => True, -- Discriminant_Specifications (List4)
11707 5 => False), -- Corresponding_Body (Node5-Sem)
11708
11709 N_Single_Task_Declaration =>
11710 (1 => True, -- Defining_Identifier (Node1)
11711 2 => True, -- Interface_List (List2)
11712 3 => True, -- Task_Definition (Node3)
11713 4 => False, -- unused
11714 5 => False), -- unused
11715
11716 N_Task_Definition =>
11717 (1 => False, -- unused
11718 2 => True, -- Visible_Declarations (List2)
11719 3 => True, -- Private_Declarations (List3)
11720 4 => True, -- End_Label (Node4)
11721 5 => False), -- unused
11722
11723 N_Task_Body =>
11724 (1 => True, -- Defining_Identifier (Node1)
11725 2 => True, -- Declarations (List2)
11726 3 => False, -- Activation_Chain_Entity (Node3-Sem)
11727 4 => True, -- Handled_Statement_Sequence (Node4)
11728 5 => False), -- Corresponding_Spec (Node5-Sem)
11729
11730 N_Protected_Type_Declaration =>
11731 (1 => True, -- Defining_Identifier (Node1)
11732 2 => True, -- Interface_List (List2)
11733 3 => True, -- Protected_Definition (Node3)
11734 4 => True, -- Discriminant_Specifications (List4)
11735 5 => False), -- Corresponding_Body (Node5-Sem)
11736
11737 N_Single_Protected_Declaration =>
11738 (1 => True, -- Defining_Identifier (Node1)
11739 2 => True, -- Interface_List (List2)
11740 3 => True, -- Protected_Definition (Node3)
11741 4 => False, -- unused
11742 5 => False), -- unused
11743
11744 N_Protected_Definition =>
11745 (1 => False, -- unused
11746 2 => True, -- Visible_Declarations (List2)
11747 3 => True, -- Private_Declarations (List3)
11748 4 => True, -- End_Label (Node4)
11749 5 => False), -- unused
11750
11751 N_Protected_Body =>
11752 (1 => True, -- Defining_Identifier (Node1)
11753 2 => True, -- Declarations (List2)
11754 3 => False, -- unused
11755 4 => True, -- End_Label (Node4)
11756 5 => False), -- Corresponding_Spec (Node5-Sem)
11757
11758 N_Entry_Declaration =>
11759 (1 => True, -- Defining_Identifier (Node1)
11760 2 => False, -- unused
11761 3 => True, -- Parameter_Specifications (List3)
11762 4 => True, -- Discrete_Subtype_Definition (Node4)
11763 5 => False), -- Corresponding_Body (Node5-Sem)
11764
11765 N_Accept_Statement =>
11766 (1 => True, -- Entry_Direct_Name (Node1)
11767 2 => True, -- Declarations (List2)
11768 3 => True, -- Parameter_Specifications (List3)
11769 4 => True, -- Handled_Statement_Sequence (Node4)
11770 5 => True), -- Entry_Index (Node5)
11771
11772 N_Entry_Body =>
11773 (1 => True, -- Defining_Identifier (Node1)
11774 2 => True, -- Declarations (List2)
11775 3 => False, -- Activation_Chain_Entity (Node3-Sem)
11776 4 => True, -- Handled_Statement_Sequence (Node4)
11777 5 => True), -- Entry_Body_Formal_Part (Node5)
11778
11779 N_Entry_Body_Formal_Part =>
11780 (1 => True, -- Condition (Node1)
11781 2 => False, -- unused
11782 3 => True, -- Parameter_Specifications (List3)
11783 4 => True, -- Entry_Index_Specification (Node4)
11784 5 => False), -- unused
11785
11786 N_Entry_Index_Specification =>
11787 (1 => True, -- Defining_Identifier (Node1)
11788 2 => False, -- unused
11789 3 => False, -- unused
11790 4 => True, -- Discrete_Subtype_Definition (Node4)
11791 5 => False), -- unused
11792
11793 N_Entry_Call_Statement =>
11794 (1 => False, -- unused
11795 2 => True, -- Name (Node2)
11796 3 => True, -- Parameter_Associations (List3)
11797 4 => False, -- First_Named_Actual (Node4-Sem)
11798 5 => False), -- unused
11799
11800 N_Requeue_Statement =>
11801 (1 => False, -- unused
11802 2 => True, -- Name (Node2)
11803 3 => False, -- unused
11804 4 => False, -- unused
11805 5 => False), -- unused
11806
11807 N_Delay_Until_Statement =>
11808 (1 => False, -- unused
11809 2 => False, -- unused
11810 3 => True, -- Expression (Node3)
11811 4 => False, -- unused
11812 5 => False), -- unused
11813
11814 N_Delay_Relative_Statement =>
11815 (1 => False, -- unused
11816 2 => False, -- unused
11817 3 => True, -- Expression (Node3)
11818 4 => False, -- unused
11819 5 => False), -- unused
11820
11821 N_Selective_Accept =>
11822 (1 => True, -- Select_Alternatives (List1)
11823 2 => False, -- unused
11824 3 => False, -- unused
11825 4 => True, -- Else_Statements (List4)
11826 5 => False), -- unused
11827
11828 N_Accept_Alternative =>
11829 (1 => True, -- Condition (Node1)
11830 2 => True, -- Accept_Statement (Node2)
11831 3 => True, -- Statements (List3)
11832 4 => True, -- Pragmas_Before (List4)
11833 5 => False), -- Accept_Handler_Records (List5-Sem)
11834
11835 N_Delay_Alternative =>
11836 (1 => True, -- Condition (Node1)
11837 2 => True, -- Delay_Statement (Node2)
11838 3 => True, -- Statements (List3)
11839 4 => True, -- Pragmas_Before (List4)
11840 5 => False), -- unused
11841
11842 N_Terminate_Alternative =>
11843 (1 => True, -- Condition (Node1)
11844 2 => False, -- unused
11845 3 => False, -- unused
11846 4 => True, -- Pragmas_Before (List4)
11847 5 => True), -- Pragmas_After (List5)
11848
11849 N_Timed_Entry_Call =>
11850 (1 => True, -- Entry_Call_Alternative (Node1)
11851 2 => False, -- unused
11852 3 => False, -- unused
11853 4 => True, -- Delay_Alternative (Node4)
11854 5 => False), -- unused
11855
11856 N_Entry_Call_Alternative =>
11857 (1 => True, -- Entry_Call_Statement (Node1)
11858 2 => False, -- unused
11859 3 => True, -- Statements (List3)
11860 4 => True, -- Pragmas_Before (List4)
11861 5 => False), -- unused
11862
11863 N_Conditional_Entry_Call =>
11864 (1 => True, -- Entry_Call_Alternative (Node1)
11865 2 => False, -- unused
11866 3 => False, -- unused
11867 4 => True, -- Else_Statements (List4)
11868 5 => False), -- unused
11869
11870 N_Asynchronous_Select =>
11871 (1 => True, -- Triggering_Alternative (Node1)
11872 2 => True, -- Abortable_Part (Node2)
11873 3 => False, -- unused
11874 4 => False, -- unused
11875 5 => False), -- unused
11876
11877 N_Triggering_Alternative =>
11878 (1 => True, -- Triggering_Statement (Node1)
11879 2 => False, -- unused
11880 3 => True, -- Statements (List3)
11881 4 => True, -- Pragmas_Before (List4)
11882 5 => False), -- unused
11883
11884 N_Abortable_Part =>
11885 (1 => False, -- unused
11886 2 => False, -- unused
11887 3 => True, -- Statements (List3)
11888 4 => False, -- unused
11889 5 => False), -- unused
11890
11891 N_Abort_Statement =>
11892 (1 => False, -- unused
11893 2 => True, -- Names (List2)
11894 3 => False, -- unused
11895 4 => False, -- unused
11896 5 => False), -- unused
11897
11898 N_Compilation_Unit =>
11899 (1 => True, -- Context_Items (List1)
11900 2 => True, -- Unit (Node2)
11901 3 => False, -- First_Inlined_Subprogram (Node3-Sem)
11902 4 => False, -- Library_Unit (Node4-Sem)
11903 5 => True), -- Aux_Decls_Node (Node5)
11904
11905 N_Compilation_Unit_Aux =>
11906 (1 => True, -- Actions (List1)
11907 2 => True, -- Declarations (List2)
11908 3 => False, -- Default_Storage_Pool (Node3)
11909 4 => True, -- Config_Pragmas (List4)
11910 5 => True), -- Pragmas_After (List5)
11911
11912 N_With_Clause =>
11913 (1 => False, -- unused
11914 2 => True, -- Name (Node2)
11915 3 => False, -- unused
11916 4 => False, -- Library_Unit (Node4-Sem)
11917 5 => False), -- Corresponding_Spec (Node5-Sem)
11918
11919 N_Subprogram_Body_Stub =>
11920 (1 => True, -- Specification (Node1)
11921 2 => False, -- Corresponding_Spec_Of_Stub (Node2-Sem)
11922 3 => False, -- unused
11923 4 => False, -- Library_Unit (Node4-Sem)
11924 5 => False), -- Corresponding_Body (Node5-Sem)
11925
11926 N_Package_Body_Stub =>
11927 (1 => True, -- Defining_Identifier (Node1)
11928 2 => False, -- Corresponding_Spec_Of_Stub (Node2-Sem)
11929 3 => False, -- unused
11930 4 => False, -- Library_Unit (Node4-Sem)
11931 5 => False), -- Corresponding_Body (Node5-Sem)
11932
11933 N_Task_Body_Stub =>
11934 (1 => True, -- Defining_Identifier (Node1)
11935 2 => False, -- Corresponding_Spec_Of_Stub (Node2-Sem)
11936 3 => False, -- unused
11937 4 => False, -- Library_Unit (Node4-Sem)
11938 5 => False), -- Corresponding_Body (Node5-Sem)
11939
11940 N_Protected_Body_Stub =>
11941 (1 => True, -- Defining_Identifier (Node1)
11942 2 => False, -- Corresponding_Spec_Of_Stub (Node2-Sem)
11943 3 => False, -- unused
11944 4 => False, -- Library_Unit (Node4-Sem)
11945 5 => False), -- Corresponding_Body (Node5-Sem)
11946
11947 N_Subunit =>
11948 (1 => True, -- Proper_Body (Node1)
11949 2 => True, -- Name (Node2)
11950 3 => False, -- Corresponding_Stub (Node3-Sem)
11951 4 => False, -- unused
11952 5 => False), -- unused
11953
11954 N_Exception_Declaration =>
11955 (1 => True, -- Defining_Identifier (Node1)
11956 2 => False, -- unused
11957 3 => False, -- Expression (Node3-Sem)
11958 4 => False, -- unused
11959 5 => False), -- unused
11960
11961 N_Handled_Sequence_Of_Statements =>
11962 (1 => True, -- At_End_Proc (Node1)
11963 2 => False, -- First_Real_Statement (Node2-Sem)
11964 3 => True, -- Statements (List3)
11965 4 => True, -- End_Label (Node4)
11966 5 => True), -- Exception_Handlers (List5)
11967
11968 N_Exception_Handler =>
11969 (1 => False, -- Local_Raise_Statements (Elist1)
11970 2 => True, -- Choice_Parameter (Node2)
11971 3 => True, -- Statements (List3)
11972 4 => True, -- Exception_Choices (List4)
11973 5 => False), -- Exception_Label (Node5)
11974
11975 N_Raise_Statement =>
11976 (1 => False, -- unused
11977 2 => True, -- Name (Node2)
11978 3 => True, -- Expression (Node3)
11979 4 => False, -- unused
11980 5 => False), -- unused
11981
11982 N_Raise_Expression =>
11983 (1 => False, -- unused
11984 2 => True, -- Name (Node2)
11985 3 => True, -- Expression (Node3)
11986 4 => False, -- unused
11987 5 => False), -- Etype (Node5-Sem)
11988
11989 N_Generic_Subprogram_Declaration =>
11990 (1 => True, -- Specification (Node1)
11991 2 => True, -- Generic_Formal_Declarations (List2)
11992 3 => False, -- unused
11993 4 => False, -- Parent_Spec (Node4-Sem)
11994 5 => False), -- Corresponding_Body (Node5-Sem)
11995
11996 N_Generic_Package_Declaration =>
11997 (1 => True, -- Specification (Node1)
11998 2 => True, -- Generic_Formal_Declarations (List2)
11999 3 => False, -- Activation_Chain_Entity (Node3-Sem)
12000 4 => False, -- Parent_Spec (Node4-Sem)
12001 5 => False), -- Corresponding_Body (Node5-Sem)
12002
12003 N_Package_Instantiation =>
12004 (1 => True, -- Defining_Unit_Name (Node1)
12005 2 => True, -- Name (Node2)
12006 3 => True, -- Generic_Associations (List3)
12007 4 => False, -- Parent_Spec (Node4-Sem)
12008 5 => False), -- Instance_Spec (Node5-Sem)
12009
12010 N_Procedure_Instantiation =>
12011 (1 => True, -- Defining_Unit_Name (Node1)
12012 2 => True, -- Name (Node2)
12013 3 => True, -- Generic_Associations (List3)
12014 4 => False, -- Parent_Spec (Node4-Sem)
12015 5 => False), -- Instance_Spec (Node5-Sem)
12016
12017 N_Function_Instantiation =>
12018 (1 => True, -- Defining_Unit_Name (Node1)
12019 2 => True, -- Name (Node2)
12020 3 => True, -- Generic_Associations (List3)
12021 4 => False, -- Parent_Spec (Node4-Sem)
12022 5 => False), -- Instance_Spec (Node5-Sem)
12023
12024 N_Generic_Association =>
12025 (1 => True, -- Explicit_Generic_Actual_Parameter (Node1)
12026 2 => True, -- Selector_Name (Node2)
12027 3 => False, -- unused
12028 4 => False, -- unused
12029 5 => False), -- unused
12030
12031 N_Formal_Object_Declaration =>
12032 (1 => True, -- Defining_Identifier (Node1)
12033 2 => False, -- unused
12034 3 => True, -- Access_Definition (Node3)
12035 4 => True, -- Subtype_Mark (Node4)
12036 5 => True), -- Default_Expression (Node5)
12037
12038 N_Formal_Type_Declaration =>
12039 (1 => True, -- Defining_Identifier (Node1)
12040 2 => False, -- unused
12041 3 => True, -- Formal_Type_Definition (Node3)
12042 4 => True, -- Discriminant_Specifications (List4)
12043 5 => False), -- unused
12044
12045 N_Formal_Private_Type_Definition =>
12046 (1 => False, -- unused
12047 2 => False, -- unused
12048 3 => False, -- unused
12049 4 => False, -- unused
12050 5 => False), -- unused
12051
12052 N_Formal_Incomplete_Type_Definition =>
12053 (1 => False, -- unused
12054 2 => False, -- unused
12055 3 => False, -- unused
12056 4 => False, -- unused
12057 5 => False), -- unused
12058
12059 N_Formal_Derived_Type_Definition =>
12060 (1 => False, -- unused
12061 2 => True, -- Interface_List (List2)
12062 3 => False, -- unused
12063 4 => True, -- Subtype_Mark (Node4)
12064 5 => False), -- unused
12065
12066 N_Formal_Discrete_Type_Definition =>
12067 (1 => False, -- unused
12068 2 => False, -- unused
12069 3 => False, -- unused
12070 4 => False, -- unused
12071 5 => False), -- unused
12072
12073 N_Formal_Signed_Integer_Type_Definition =>
12074 (1 => False, -- unused
12075 2 => False, -- unused
12076 3 => False, -- unused
12077 4 => False, -- unused
12078 5 => False), -- unused
12079
12080 N_Formal_Modular_Type_Definition =>
12081 (1 => False, -- unused
12082 2 => False, -- unused
12083 3 => False, -- unused
12084 4 => False, -- unused
12085 5 => False), -- unused
12086
12087 N_Formal_Floating_Point_Definition =>
12088 (1 => False, -- unused
12089 2 => False, -- unused
12090 3 => False, -- unused
12091 4 => False, -- unused
12092 5 => False), -- unused
12093
12094 N_Formal_Ordinary_Fixed_Point_Definition =>
12095 (1 => False, -- unused
12096 2 => False, -- unused
12097 3 => False, -- unused
12098 4 => False, -- unused
12099 5 => False), -- unused
12100
12101 N_Formal_Decimal_Fixed_Point_Definition =>
12102 (1 => False, -- unused
12103 2 => False, -- unused
12104 3 => False, -- unused
12105 4 => False, -- unused
12106 5 => False), -- unused
12107
12108 N_Formal_Concrete_Subprogram_Declaration =>
12109 (1 => True, -- Specification (Node1)
12110 2 => True, -- Default_Name (Node2)
12111 3 => False, -- unused
12112 4 => False, -- unused
12113 5 => False), -- unused
12114
12115 N_Formal_Abstract_Subprogram_Declaration =>
12116 (1 => True, -- Specification (Node1)
12117 2 => True, -- Default_Name (Node2)
12118 3 => False, -- unused
12119 4 => False, -- unused
12120 5 => False), -- unused
12121
12122 N_Formal_Package_Declaration =>
12123 (1 => True, -- Defining_Identifier (Node1)
12124 2 => True, -- Name (Node2)
12125 3 => True, -- Generic_Associations (List3)
12126 4 => False, -- unused
12127 5 => False), -- Instance_Spec (Node5-Sem)
12128
12129 N_Attribute_Definition_Clause =>
12130 (1 => True, -- Chars (Name1)
12131 2 => True, -- Name (Node2)
12132 3 => True, -- Expression (Node3)
12133 4 => False, -- unused
12134 5 => False), -- Next_Rep_Item (Node5-Sem)
12135
12136 N_Aspect_Specification =>
12137 (1 => True, -- Identifier (Node1)
12138 2 => False, -- Aspect_Rep_Item (Node2-Sem)
12139 3 => True, -- Expression (Node3)
12140 4 => False, -- Entity (Node4-Sem)
12141 5 => False), -- Next_Rep_Item (Node5-Sem)
12142
12143 N_Enumeration_Representation_Clause =>
12144 (1 => True, -- Identifier (Node1)
12145 2 => False, -- unused
12146 3 => True, -- Array_Aggregate (Node3)
12147 4 => False, -- unused
12148 5 => False), -- Next_Rep_Item (Node5-Sem)
12149
12150 N_Record_Representation_Clause =>
12151 (1 => True, -- Identifier (Node1)
12152 2 => True, -- Mod_Clause (Node2)
12153 3 => True, -- Component_Clauses (List3)
12154 4 => False, -- unused
12155 5 => False), -- Next_Rep_Item (Node5-Sem)
12156
12157 N_Component_Clause =>
12158 (1 => True, -- Component_Name (Node1)
12159 2 => True, -- Position (Node2)
12160 3 => True, -- First_Bit (Node3)
12161 4 => True, -- Last_Bit (Node4)
12162 5 => False), -- unused
12163
12164 N_Code_Statement =>
12165 (1 => False, -- unused
12166 2 => False, -- unused
12167 3 => True, -- Expression (Node3)
12168 4 => False, -- unused
12169 5 => False), -- unused
12170
12171 N_Op_Rotate_Left =>
12172 (1 => True, -- Chars (Name1)
12173 2 => True, -- Left_Opnd (Node2)
12174 3 => True, -- Right_Opnd (Node3)
12175 4 => False, -- Entity (Node4-Sem)
12176 5 => False), -- Etype (Node5-Sem)
12177
12178 N_Op_Rotate_Right =>
12179 (1 => True, -- Chars (Name1)
12180 2 => True, -- Left_Opnd (Node2)
12181 3 => True, -- Right_Opnd (Node3)
12182 4 => False, -- Entity (Node4-Sem)
12183 5 => False), -- Etype (Node5-Sem)
12184
12185 N_Op_Shift_Left =>
12186 (1 => True, -- Chars (Name1)
12187 2 => True, -- Left_Opnd (Node2)
12188 3 => True, -- Right_Opnd (Node3)
12189 4 => False, -- Entity (Node4-Sem)
12190 5 => False), -- Etype (Node5-Sem)
12191
12192 N_Op_Shift_Right_Arithmetic =>
12193 (1 => True, -- Chars (Name1)
12194 2 => True, -- Left_Opnd (Node2)
12195 3 => True, -- Right_Opnd (Node3)
12196 4 => False, -- Entity (Node4-Sem)
12197 5 => False), -- Etype (Node5-Sem)
12198
12199 N_Op_Shift_Right =>
12200 (1 => True, -- Chars (Name1)
12201 2 => True, -- Left_Opnd (Node2)
12202 3 => True, -- Right_Opnd (Node3)
12203 4 => False, -- Entity (Node4-Sem)
12204 5 => False), -- Etype (Node5-Sem)
12205
12206 N_Delta_Constraint =>
12207 (1 => False, -- unused
12208 2 => False, -- unused
12209 3 => True, -- Delta_Expression (Node3)
12210 4 => True, -- Range_Constraint (Node4)
12211 5 => False), -- unused
12212
12213 N_At_Clause =>
12214 (1 => True, -- Identifier (Node1)
12215 2 => False, -- unused
12216 3 => True, -- Expression (Node3)
12217 4 => False, -- unused
12218 5 => False), -- unused
12219
12220 N_Mod_Clause =>
12221 (1 => False, -- unused
12222 2 => False, -- unused
12223 3 => True, -- Expression (Node3)
12224 4 => True, -- Pragmas_Before (List4)
12225 5 => False), -- unused
12226
12227 N_If_Expression =>
12228 (1 => True, -- Expressions (List1)
12229 2 => False, -- Then_Actions (List2-Sem)
12230 3 => False, -- Else_Actions (List3-Sem)
12231 4 => False, -- unused
12232 5 => False), -- Etype (Node5-Sem)
12233
12234 N_Compound_Statement =>
12235 (1 => True, -- Actions (List1)
12236 2 => False, -- unused
12237 3 => False, -- unused
12238 4 => False, -- unused
12239 5 => False), -- unused
12240
12241 N_Contract =>
12242 (1 => False, -- Pre_Post_Conditions (Node1)
12243 2 => False, -- Contract_Test_Cases (Node2)
12244 3 => False, -- Classifications (Node3)
12245 4 => False, -- unused
12246 5 => False), -- unused
12247
12248 N_Expanded_Name =>
12249 (1 => True, -- Chars (Name1)
12250 2 => True, -- Selector_Name (Node2)
12251 3 => True, -- Prefix (Node3)
12252 4 => False, -- Entity (Node4-Sem)
12253 5 => False), -- Etype (Node5-Sem)
12254
12255 N_Expression_With_Actions =>
12256 (1 => True, -- Actions (List1)
12257 2 => False, -- unused
12258 3 => True, -- Expression (Node3)
12259 4 => False, -- unused
12260 5 => False), -- unused
12261
12262 N_Free_Statement =>
12263 (1 => False, -- Storage_Pool (Node1-Sem)
12264 2 => False, -- Procedure_To_Call (Node2-Sem)
12265 3 => True, -- Expression (Node3)
12266 4 => False, -- Actual_Designated_Subtype (Node4-Sem)
12267 5 => False), -- unused
12268
12269 N_Freeze_Entity =>
12270 (1 => True, -- Actions (List1)
12271 2 => False, -- Access_Types_To_Process (Elist2-Sem)
12272 3 => False, -- TSS_Elist (Elist3-Sem)
12273 4 => False, -- Entity (Node4-Sem)
12274 5 => False), -- First_Subtype_Link (Node5-Sem)
12275
12276 N_Freeze_Generic_Entity =>
12277 (1 => False, -- unused
12278 2 => False, -- unused
12279 3 => False, -- unused
12280 4 => False, -- Entity (Node4-Sem)
12281 5 => False), -- unused
12282
12283 N_Implicit_Label_Declaration =>
12284 (1 => True, -- Defining_Identifier (Node1)
12285 2 => False, -- Label_Construct (Node2-Sem)
12286 3 => False, -- unused
12287 4 => False, -- unused
12288 5 => False), -- unused
12289
12290 N_Itype_Reference =>
12291 (1 => False, -- Itype (Node1-Sem)
12292 2 => False, -- unused
12293 3 => False, -- unused
12294 4 => False, -- unused
12295 5 => False), -- unused
12296
12297 N_Raise_Constraint_Error =>
12298 (1 => True, -- Condition (Node1)
12299 2 => False, -- unused
12300 3 => True, -- Reason (Uint3)
12301 4 => False, -- unused
12302 5 => False), -- Etype (Node5-Sem)
12303
12304 N_Raise_Program_Error =>
12305 (1 => True, -- Condition (Node1)
12306 2 => False, -- unused
12307 3 => True, -- Reason (Uint3)
12308 4 => False, -- unused
12309 5 => False), -- Etype (Node5-Sem)
12310
12311 N_Raise_Storage_Error =>
12312 (1 => True, -- Condition (Node1)
12313 2 => False, -- unused
12314 3 => True, -- Reason (Uint3)
12315 4 => False, -- unused
12316 5 => False), -- Etype (Node5-Sem)
12317
12318 N_Push_Constraint_Error_Label =>
12319 (1 => False, -- unused
12320 2 => False, -- unused
12321 3 => False, -- unused
12322 4 => False, -- unused
12323 5 => False), -- unused
12324
12325 N_Push_Program_Error_Label =>
12326 (1 => False, -- Exception_Label
12327 2 => False, -- unused
12328 3 => False, -- unused
12329 4 => False, -- unused
12330 5 => False), -- Exception_Label
12331
12332 N_Push_Storage_Error_Label =>
12333 (1 => False, -- Exception_Label
12334 2 => False, -- unused
12335 3 => False, -- unused
12336 4 => False, -- unused
12337 5 => False), -- Exception_Label
12338
12339 N_Pop_Constraint_Error_Label =>
12340 (1 => False, -- unused
12341 2 => False, -- unused
12342 3 => False, -- unused
12343 4 => False, -- unused
12344 5 => False), -- unused
12345
12346 N_Pop_Program_Error_Label =>
12347 (1 => False, -- unused
12348 2 => False, -- unused
12349 3 => False, -- unused
12350 4 => False, -- unused
12351 5 => False), -- unused
12352
12353 N_Pop_Storage_Error_Label =>
12354 (1 => False, -- unused
12355 2 => False, -- unused
12356 3 => False, -- unused
12357 4 => False, -- unused
12358 5 => False), -- unused
12359
12360 N_Reference =>
12361 (1 => False, -- unused
12362 2 => False, -- unused
12363 3 => True, -- Prefix (Node3)
12364 4 => False, -- unused
12365 5 => False), -- Etype (Node5-Sem)
12366
12367 N_Unchecked_Expression =>
12368 (1 => False, -- unused
12369 2 => False, -- unused
12370 3 => True, -- Expression (Node3)
12371 4 => False, -- unused
12372 5 => False), -- Etype (Node5-Sem)
12373
12374 N_Unchecked_Type_Conversion =>
12375 (1 => False, -- unused
12376 2 => False, -- unused
12377 3 => True, -- Expression (Node3)
12378 4 => True, -- Subtype_Mark (Node4)
12379 5 => False), -- Etype (Node5-Sem)
12380
12381 N_Validate_Unchecked_Conversion =>
12382 (1 => False, -- Source_Type (Node1-Sem)
12383 2 => False, -- Target_Type (Node2-Sem)
12384 3 => False, -- unused
12385 4 => False, -- unused
12386 5 => False), -- unused
12387
12388 -- Entries for SCIL nodes
12389
12390 N_SCIL_Dispatch_Table_Tag_Init =>
12391 (1 => False, -- unused
12392 2 => False, -- unused
12393 3 => False, -- unused
12394 4 => False, -- SCIL_Entity (Node4-Sem)
12395 5 => False), -- unused
12396
12397 N_SCIL_Dispatching_Call =>
12398 (1 => False, -- unused
12399 2 => False, -- SCIL_Target_Prim (Node2-Sem)
12400 3 => False, -- unused
12401 4 => False, -- SCIL_Entity (Node4-Sem)
12402 5 => False), -- SCIL_Controlling_Tag (Node5-Sem)
12403
12404 N_SCIL_Membership_Test =>
12405 (1 => False, -- unused
12406 2 => False, -- unused
12407 3 => False, -- unused
12408 4 => False, -- SCIL_Entity (Node4-Sem)
12409 5 => False), -- SCIL_Tag_Value (Node5-Sem)
12410
12411 -- Entries for Empty, Error and Unused. Even thought these have a Chars
12412 -- field for debugging purposes, they are not really syntactic fields, so
12413 -- we mark all fields as unused.
12414
12415 N_Empty =>
12416 (1 => False, -- unused
12417 2 => False, -- unused
12418 3 => False, -- unused
12419 4 => False, -- unused
12420 5 => False), -- unused
12421
12422 N_Error =>
12423 (1 => False, -- unused
12424 2 => False, -- unused
12425 3 => False, -- unused
12426 4 => False, -- unused
12427 5 => False), -- unused
12428
12429 N_Unused_At_Start =>
12430 (1 => False, -- unused
12431 2 => False, -- unused
12432 3 => False, -- unused
12433 4 => False, -- unused
12434 5 => False), -- unused
12435
12436 N_Unused_At_End =>
12437 (1 => False, -- unused
12438 2 => False, -- unused
12439 3 => False, -- unused
12440 4 => False, -- unused
12441 5 => False)); -- unused
12442
12443 --------------------
12444 -- Inline Pragmas --
12445 --------------------
12446
12447 pragma Inline (ABE_Is_Certain);
12448 pragma Inline (Abort_Present);
12449 pragma Inline (Abortable_Part);
12450 pragma Inline (Abstract_Present);
12451 pragma Inline (Accept_Handler_Records);
12452 pragma Inline (Accept_Statement);
12453 pragma Inline (Access_Definition);
12454 pragma Inline (Access_To_Subprogram_Definition);
12455 pragma Inline (Access_Types_To_Process);
12456 pragma Inline (Actions);
12457 pragma Inline (Activation_Chain_Entity);
12458 pragma Inline (Acts_As_Spec);
12459 pragma Inline (Actual_Designated_Subtype);
12460 pragma Inline (Address_Warning_Posted);
12461 pragma Inline (Aggregate_Bounds);
12462 pragma Inline (Aliased_Present);
12463 pragma Inline (All_Others);
12464 pragma Inline (All_Present);
12465 pragma Inline (Alternatives);
12466 pragma Inline (Ancestor_Part);
12467 pragma Inline (Atomic_Sync_Required);
12468 pragma Inline (Array_Aggregate);
12469 pragma Inline (Aspect_Rep_Item);
12470 pragma Inline (Assignment_OK);
12471 pragma Inline (Associated_Node);
12472 pragma Inline (At_End_Proc);
12473 pragma Inline (Attribute_Name);
12474 pragma Inline (Aux_Decls_Node);
12475 pragma Inline (Backwards_OK);
12476 pragma Inline (Bad_Is_Detected);
12477 pragma Inline (Body_To_Inline);
12478 pragma Inline (Body_Required);
12479 pragma Inline (By_Ref);
12480 pragma Inline (Box_Present);
12481 pragma Inline (Char_Literal_Value);
12482 pragma Inline (Chars);
12483 pragma Inline (Check_Address_Alignment);
12484 pragma Inline (Choice_Parameter);
12485 pragma Inline (Choices);
12486 pragma Inline (Class_Present);
12487 pragma Inline (Classifications);
12488 pragma Inline (Cleanup_Actions);
12489 pragma Inline (Comes_From_Extended_Return_Statement);
12490 pragma Inline (Compile_Time_Known_Aggregate);
12491 pragma Inline (Component_Associations);
12492 pragma Inline (Component_Clauses);
12493 pragma Inline (Component_Definition);
12494 pragma Inline (Component_Items);
12495 pragma Inline (Component_List);
12496 pragma Inline (Component_Name);
12497 pragma Inline (Componentwise_Assignment);
12498 pragma Inline (Condition);
12499 pragma Inline (Condition_Actions);
12500 pragma Inline (Config_Pragmas);
12501 pragma Inline (Constant_Present);
12502 pragma Inline (Constraint);
12503 pragma Inline (Constraints);
12504 pragma Inline (Context_Installed);
12505 pragma Inline (Context_Items);
12506 pragma Inline (Context_Pending);
12507 pragma Inline (Contract_Test_Cases);
12508 pragma Inline (Controlling_Argument);
12509 pragma Inline (Convert_To_Return_False);
12510 pragma Inline (Conversion_OK);
12511 pragma Inline (Corresponding_Aspect);
12512 pragma Inline (Corresponding_Body);
12513 pragma Inline (Corresponding_Formal_Spec);
12514 pragma Inline (Corresponding_Generic_Association);
12515 pragma Inline (Corresponding_Integer_Value);
12516 pragma Inline (Corresponding_Spec);
12517 pragma Inline (Corresponding_Spec_Of_Stub);
12518 pragma Inline (Corresponding_Stub);
12519 pragma Inline (Dcheck_Function);
12520 pragma Inline (Declarations);
12521 pragma Inline (Default_Expression);
12522 pragma Inline (Default_Storage_Pool);
12523 pragma Inline (Default_Name);
12524 pragma Inline (Defining_Identifier);
12525 pragma Inline (Defining_Unit_Name);
12526 pragma Inline (Delay_Alternative);
12527 pragma Inline (Delay_Statement);
12528 pragma Inline (Delta_Expression);
12529 pragma Inline (Digits_Expression);
12530 pragma Inline (Discr_Check_Funcs_Built);
12531 pragma Inline (Discrete_Choices);
12532 pragma Inline (Discrete_Range);
12533 pragma Inline (Discrete_Subtype_Definition);
12534 pragma Inline (Discrete_Subtype_Definitions);
12535 pragma Inline (Discriminant_Specifications);
12536 pragma Inline (Discriminant_Type);
12537 pragma Inline (Do_Accessibility_Check);
12538 pragma Inline (Do_Discriminant_Check);
12539 pragma Inline (Do_Length_Check);
12540 pragma Inline (Do_Division_Check);
12541 pragma Inline (Do_Overflow_Check);
12542 pragma Inline (Do_Range_Check);
12543 pragma Inline (Do_Storage_Check);
12544 pragma Inline (Do_Tag_Check);
12545 pragma Inline (Elaborate_Present);
12546 pragma Inline (Elaborate_All_Desirable);
12547 pragma Inline (Elaborate_All_Present);
12548 pragma Inline (Elaborate_Desirable);
12549 pragma Inline (Elaboration_Boolean);
12550 pragma Inline (Else_Actions);
12551 pragma Inline (Else_Statements);
12552 pragma Inline (Elsif_Parts);
12553 pragma Inline (Enclosing_Variant);
12554 pragma Inline (End_Label);
12555 pragma Inline (End_Span);
12556 pragma Inline (Entity);
12557 pragma Inline (Entity_Or_Associated_Node);
12558 pragma Inline (Entry_Body_Formal_Part);
12559 pragma Inline (Entry_Call_Alternative);
12560 pragma Inline (Entry_Call_Statement);
12561 pragma Inline (Entry_Direct_Name);
12562 pragma Inline (Entry_Index);
12563 pragma Inline (Entry_Index_Specification);
12564 pragma Inline (Etype);
12565 pragma Inline (Exception_Choices);
12566 pragma Inline (Exception_Handlers);
12567 pragma Inline (Exception_Junk);
12568 pragma Inline (Exception_Label);
12569 pragma Inline (Expansion_Delayed);
12570 pragma Inline (Explicit_Actual_Parameter);
12571 pragma Inline (Explicit_Generic_Actual_Parameter);
12572 pragma Inline (Expression);
12573 pragma Inline (Expressions);
12574 pragma Inline (First_Bit);
12575 pragma Inline (First_Inlined_Subprogram);
12576 pragma Inline (First_Name);
12577 pragma Inline (First_Named_Actual);
12578 pragma Inline (First_Real_Statement);
12579 pragma Inline (First_Subtype_Link);
12580 pragma Inline (Float_Truncate);
12581 pragma Inline (Formal_Type_Definition);
12582 pragma Inline (Forwards_OK);
12583 pragma Inline (From_Aspect_Specification);
12584 pragma Inline (From_At_End);
12585 pragma Inline (From_At_Mod);
12586 pragma Inline (From_Conditional_Expression);
12587 pragma Inline (From_Default);
12588 pragma Inline (Generalized_Indexing);
12589 pragma Inline (Generic_Associations);
12590 pragma Inline (Generic_Formal_Declarations);
12591 pragma Inline (Generic_Parent);
12592 pragma Inline (Generic_Parent_Type);
12593 pragma Inline (Handled_Statement_Sequence);
12594 pragma Inline (Handler_List_Entry);
12595 pragma Inline (Has_Created_Identifier);
12596 pragma Inline (Has_Dereference_Action);
12597 pragma Inline (Has_Dynamic_Length_Check);
12598 pragma Inline (Has_Dynamic_Range_Check);
12599 pragma Inline (Has_Init_Expression);
12600 pragma Inline (Has_Local_Raise);
12601 pragma Inline (Has_Self_Reference);
12602 pragma Inline (Has_SP_Choice);
12603 pragma Inline (Has_No_Elaboration_Code);
12604 pragma Inline (Has_Pragma_Suppress_All);
12605 pragma Inline (Has_Private_View);
12606 pragma Inline (Has_Relative_Deadline_Pragma);
12607 pragma Inline (Has_Storage_Size_Pragma);
12608 pragma Inline (Has_Wide_Character);
12609 pragma Inline (Has_Wide_Wide_Character);
12610 pragma Inline (Header_Size_Added);
12611 pragma Inline (Hidden_By_Use_Clause);
12612 pragma Inline (High_Bound);
12613 pragma Inline (Identifier);
12614 pragma Inline (Implicit_With);
12615 pragma Inline (Implicit_With_From_Instantiation);
12616 pragma Inline (Interface_List);
12617 pragma Inline (Interface_Present);
12618 pragma Inline (Includes_Infinities);
12619 pragma Inline (Import_Interface_Present);
12620 pragma Inline (In_Present);
12621 pragma Inline (Incomplete_View);
12622 pragma Inline (Inherited_Discriminant);
12623 pragma Inline (Instance_Spec);
12624 pragma Inline (Intval);
12625 pragma Inline (Iterator_Specification);
12626 pragma Inline (Is_Accessibility_Actual);
12627 pragma Inline (Is_Asynchronous_Call_Block);
12628 pragma Inline (Is_Boolean_Aspect);
12629 pragma Inline (Is_Checked);
12630 pragma Inline (Is_Component_Left_Opnd);
12631 pragma Inline (Is_Component_Right_Opnd);
12632 pragma Inline (Is_Controlling_Actual);
12633 pragma Inline (Is_Delayed_Aspect);
12634 pragma Inline (Is_Disabled);
12635 pragma Inline (Is_Dynamic_Coextension);
12636 pragma Inline (Is_Elsif);
12637 pragma Inline (Is_Entry_Barrier_Function);
12638 pragma Inline (Is_Expanded_Build_In_Place_Call);
12639 pragma Inline (Is_Finalization_Wrapper);
12640 pragma Inline (Is_Folded_In_Parser);
12641 pragma Inline (Is_Ignored);
12642 pragma Inline (Is_In_Discriminant_Check);
12643 pragma Inline (Is_Machine_Number);
12644 pragma Inline (Is_Null_Loop);
12645 pragma Inline (Is_Overloaded);
12646 pragma Inline (Is_Power_Of_2_For_Shift);
12647 pragma Inline (Is_Prefixed_Call);
12648 pragma Inline (Is_Protected_Subprogram_Body);
12649 pragma Inline (Is_Static_Coextension);
12650 pragma Inline (Is_Static_Expression);
12651 pragma Inline (Is_Subprogram_Descriptor);
12652 pragma Inline (Is_Task_Allocation_Block);
12653 pragma Inline (Is_Task_Master);
12654 pragma Inline (Iteration_Scheme);
12655 pragma Inline (Itype);
12656 pragma Inline (Kill_Range_Check);
12657 pragma Inline (Last_Bit);
12658 pragma Inline (Last_Name);
12659 pragma Inline (Library_Unit);
12660 pragma Inline (Label_Construct);
12661 pragma Inline (Left_Opnd);
12662 pragma Inline (Limited_View_Installed);
12663 pragma Inline (Limited_Present);
12664 pragma Inline (Literals);
12665 pragma Inline (Local_Raise_Not_OK);
12666 pragma Inline (Local_Raise_Statements);
12667 pragma Inline (Loop_Actions);
12668 pragma Inline (Loop_Parameter_Specification);
12669 pragma Inline (Low_Bound);
12670 pragma Inline (Mod_Clause);
12671 pragma Inline (More_Ids);
12672 pragma Inline (Must_Be_Byte_Aligned);
12673 pragma Inline (Must_Not_Freeze);
12674 pragma Inline (Must_Not_Override);
12675 pragma Inline (Must_Override);
12676 pragma Inline (Name);
12677 pragma Inline (Names);
12678 pragma Inline (Next_Entity);
12679 pragma Inline (Next_Exit_Statement);
12680 pragma Inline (Next_Implicit_With);
12681 pragma Inline (Next_Named_Actual);
12682 pragma Inline (Next_Pragma);
12683 pragma Inline (Next_Rep_Item);
12684 pragma Inline (Next_Use_Clause);
12685 pragma Inline (No_Ctrl_Actions);
12686 pragma Inline (No_Elaboration_Check);
12687 pragma Inline (No_Entities_Ref_In_Spec);
12688 pragma Inline (No_Initialization);
12689 pragma Inline (No_Minimize_Eliminate);
12690 pragma Inline (No_Truncation);
12691 pragma Inline (Non_Aliased_Prefix);
12692 pragma Inline (Null_Present);
12693 pragma Inline (Null_Excluding_Subtype);
12694 pragma Inline (Null_Exclusion_Present);
12695 pragma Inline (Null_Exclusion_In_Return_Present);
12696 pragma Inline (Null_Record_Present);
12697 pragma Inline (Object_Definition);
12698 pragma Inline (Of_Present);
12699 pragma Inline (Original_Discriminant);
12700 pragma Inline (Original_Entity);
12701 pragma Inline (Others_Discrete_Choices);
12702 pragma Inline (Out_Present);
12703 pragma Inline (Parameter_Associations);
12704 pragma Inline (Parameter_Specifications);
12705 pragma Inline (Parameter_Type);
12706 pragma Inline (Parent_Spec);
12707 pragma Inline (Position);
12708 pragma Inline (Pragma_Argument_Associations);
12709 pragma Inline (Pragma_Identifier);
12710 pragma Inline (Pragmas_After);
12711 pragma Inline (Pragmas_Before);
12712 pragma Inline (Pre_Post_Conditions);
12713 pragma Inline (Prefix);
12714 pragma Inline (Premature_Use);
12715 pragma Inline (Present_Expr);
12716 pragma Inline (Prev_Ids);
12717 pragma Inline (Print_In_Hex);
12718 pragma Inline (Private_Declarations);
12719 pragma Inline (Private_Present);
12720 pragma Inline (Procedure_To_Call);
12721 pragma Inline (Proper_Body);
12722 pragma Inline (Protected_Definition);
12723 pragma Inline (Protected_Present);
12724 pragma Inline (Raises_Constraint_Error);
12725 pragma Inline (Range_Constraint);
12726 pragma Inline (Range_Expression);
12727 pragma Inline (Real_Range_Specification);
12728 pragma Inline (Realval);
12729 pragma Inline (Reason);
12730 pragma Inline (Record_Extension_Part);
12731 pragma Inline (Redundant_Use);
12732 pragma Inline (Renaming_Exception);
12733 pragma Inline (Result_Definition);
12734 pragma Inline (Return_Object_Declarations);
12735 pragma Inline (Return_Statement_Entity);
12736 pragma Inline (Reverse_Present);
12737 pragma Inline (Right_Opnd);
12738 pragma Inline (Rounded_Result);
12739 pragma Inline (SCIL_Controlling_Tag);
12740 pragma Inline (SCIL_Entity);
12741 pragma Inline (SCIL_Tag_Value);
12742 pragma Inline (SCIL_Target_Prim);
12743 pragma Inline (Scope);
12744 pragma Inline (Select_Alternatives);
12745 pragma Inline (Selector_Name);
12746 pragma Inline (Selector_Names);
12747 pragma Inline (Shift_Count_OK);
12748 pragma Inline (Source_Type);
12749 pragma Inline (Specification);
12750 pragma Inline (Split_PPC);
12751 pragma Inline (Statements);
12752 pragma Inline (Storage_Pool);
12753 pragma Inline (Subpool_Handle_Name);
12754 pragma Inline (Strval);
12755 pragma Inline (Subtype_Indication);
12756 pragma Inline (Subtype_Mark);
12757 pragma Inline (Subtype_Marks);
12758 pragma Inline (Suppress_Assignment_Checks);
12759 pragma Inline (Suppress_Loop_Warnings);
12760 pragma Inline (Synchronized_Present);
12761 pragma Inline (Tagged_Present);
12762 pragma Inline (Target_Type);
12763 pragma Inline (Task_Definition);
12764 pragma Inline (Task_Present);
12765 pragma Inline (Then_Actions);
12766 pragma Inline (Then_Statements);
12767 pragma Inline (Triggering_Alternative);
12768 pragma Inline (Triggering_Statement);
12769 pragma Inline (Treat_Fixed_As_Integer);
12770 pragma Inline (TSS_Elist);
12771 pragma Inline (Type_Definition);
12772 pragma Inline (Uneval_Old_Accept);
12773 pragma Inline (Uneval_Old_Warn);
12774 pragma Inline (Unit);
12775 pragma Inline (Uninitialized_Variable);
12776 pragma Inline (Unknown_Discriminants_Present);
12777 pragma Inline (Unreferenced_In_Spec);
12778 pragma Inline (Variant_Part);
12779 pragma Inline (Variants);
12780 pragma Inline (Visible_Declarations);
12781 pragma Inline (Used_Operations);
12782 pragma Inline (Was_Originally_Stub);
12783 pragma Inline (Withed_Body);
12784
12785 pragma Inline (Set_ABE_Is_Certain);
12786 pragma Inline (Set_Abort_Present);
12787 pragma Inline (Set_Abortable_Part);
12788 pragma Inline (Set_Abstract_Present);
12789 pragma Inline (Set_Accept_Handler_Records);
12790 pragma Inline (Set_Accept_Statement);
12791 pragma Inline (Set_Access_Definition);
12792 pragma Inline (Set_Access_To_Subprogram_Definition);
12793 pragma Inline (Set_Access_Types_To_Process);
12794 pragma Inline (Set_Actions);
12795 pragma Inline (Set_Activation_Chain_Entity);
12796 pragma Inline (Set_Acts_As_Spec);
12797 pragma Inline (Set_Actual_Designated_Subtype);
12798 pragma Inline (Set_Address_Warning_Posted);
12799 pragma Inline (Set_Aggregate_Bounds);
12800 pragma Inline (Set_Aliased_Present);
12801 pragma Inline (Set_All_Others);
12802 pragma Inline (Set_All_Present);
12803 pragma Inline (Set_Alternatives);
12804 pragma Inline (Set_Ancestor_Part);
12805 pragma Inline (Set_Array_Aggregate);
12806 pragma Inline (Set_Aspect_Rep_Item);
12807 pragma Inline (Set_Assignment_OK);
12808 pragma Inline (Set_Associated_Node);
12809 pragma Inline (Set_At_End_Proc);
12810 pragma Inline (Set_Atomic_Sync_Required);
12811 pragma Inline (Set_Attribute_Name);
12812 pragma Inline (Set_Aux_Decls_Node);
12813 pragma Inline (Set_Backwards_OK);
12814 pragma Inline (Set_Bad_Is_Detected);
12815 pragma Inline (Set_Body_Required);
12816 pragma Inline (Set_Body_To_Inline);
12817 pragma Inline (Set_Box_Present);
12818 pragma Inline (Set_By_Ref);
12819 pragma Inline (Set_Char_Literal_Value);
12820 pragma Inline (Set_Chars);
12821 pragma Inline (Set_Check_Address_Alignment);
12822 pragma Inline (Set_Choice_Parameter);
12823 pragma Inline (Set_Choices);
12824 pragma Inline (Set_Class_Present);
12825 pragma Inline (Set_Classifications);
12826 pragma Inline (Set_Cleanup_Actions);
12827 pragma Inline (Set_Comes_From_Extended_Return_Statement);
12828 pragma Inline (Set_Compile_Time_Known_Aggregate);
12829 pragma Inline (Set_Component_Associations);
12830 pragma Inline (Set_Component_Clauses);
12831 pragma Inline (Set_Component_Definition);
12832 pragma Inline (Set_Component_Items);
12833 pragma Inline (Set_Component_List);
12834 pragma Inline (Set_Component_Name);
12835 pragma Inline (Set_Componentwise_Assignment);
12836 pragma Inline (Set_Condition);
12837 pragma Inline (Set_Condition_Actions);
12838 pragma Inline (Set_Config_Pragmas);
12839 pragma Inline (Set_Constant_Present);
12840 pragma Inline (Set_Constraint);
12841 pragma Inline (Set_Constraints);
12842 pragma Inline (Set_Context_Installed);
12843 pragma Inline (Set_Context_Items);
12844 pragma Inline (Set_Context_Pending);
12845 pragma Inline (Set_Contract_Test_Cases);
12846 pragma Inline (Set_Controlling_Argument);
12847 pragma Inline (Set_Conversion_OK);
12848 pragma Inline (Set_Convert_To_Return_False);
12849 pragma Inline (Set_Corresponding_Aspect);
12850 pragma Inline (Set_Corresponding_Body);
12851 pragma Inline (Set_Corresponding_Formal_Spec);
12852 pragma Inline (Set_Corresponding_Generic_Association);
12853 pragma Inline (Set_Corresponding_Integer_Value);
12854 pragma Inline (Set_Corresponding_Spec);
12855 pragma Inline (Set_Corresponding_Spec_Of_Stub);
12856 pragma Inline (Set_Corresponding_Stub);
12857 pragma Inline (Set_Dcheck_Function);
12858 pragma Inline (Set_Declarations);
12859 pragma Inline (Set_Default_Expression);
12860 pragma Inline (Set_Default_Name);
12861 pragma Inline (Set_Default_Storage_Pool);
12862 pragma Inline (Set_Defining_Identifier);
12863 pragma Inline (Set_Defining_Unit_Name);
12864 pragma Inline (Set_Delay_Alternative);
12865 pragma Inline (Set_Delay_Statement);
12866 pragma Inline (Set_Delta_Expression);
12867 pragma Inline (Set_Digits_Expression);
12868 pragma Inline (Set_Discr_Check_Funcs_Built);
12869 pragma Inline (Set_Discrete_Choices);
12870 pragma Inline (Set_Discrete_Range);
12871 pragma Inline (Set_Discrete_Subtype_Definition);
12872 pragma Inline (Set_Discrete_Subtype_Definitions);
12873 pragma Inline (Set_Discriminant_Specifications);
12874 pragma Inline (Set_Discriminant_Type);
12875 pragma Inline (Set_Do_Accessibility_Check);
12876 pragma Inline (Set_Do_Discriminant_Check);
12877 pragma Inline (Set_Do_Division_Check);
12878 pragma Inline (Set_Do_Length_Check);
12879 pragma Inline (Set_Do_Overflow_Check);
12880 pragma Inline (Set_Do_Range_Check);
12881 pragma Inline (Set_Do_Storage_Check);
12882 pragma Inline (Set_Do_Tag_Check);
12883 pragma Inline (Set_Elaborate_All_Desirable);
12884 pragma Inline (Set_Elaborate_All_Present);
12885 pragma Inline (Set_Elaborate_Desirable);
12886 pragma Inline (Set_Elaborate_Present);
12887 pragma Inline (Set_Elaboration_Boolean);
12888 pragma Inline (Set_Else_Actions);
12889 pragma Inline (Set_Else_Statements);
12890 pragma Inline (Set_Elsif_Parts);
12891 pragma Inline (Set_Enclosing_Variant);
12892 pragma Inline (Set_End_Label);
12893 pragma Inline (Set_End_Span);
12894 pragma Inline (Set_Entity);
12895 pragma Inline (Set_Entry_Body_Formal_Part);
12896 pragma Inline (Set_Entry_Call_Alternative);
12897 pragma Inline (Set_Entry_Call_Statement);
12898 pragma Inline (Set_Entry_Direct_Name);
12899 pragma Inline (Set_Entry_Index);
12900 pragma Inline (Set_Entry_Index_Specification);
12901 pragma Inline (Set_Etype);
12902 pragma Inline (Set_Exception_Choices);
12903 pragma Inline (Set_Exception_Handlers);
12904 pragma Inline (Set_Exception_Junk);
12905 pragma Inline (Set_Exception_Label);
12906 pragma Inline (Set_Expansion_Delayed);
12907 pragma Inline (Set_Explicit_Actual_Parameter);
12908 pragma Inline (Set_Explicit_Generic_Actual_Parameter);
12909 pragma Inline (Set_Expression);
12910 pragma Inline (Set_Expressions);
12911 pragma Inline (Set_First_Bit);
12912 pragma Inline (Set_First_Inlined_Subprogram);
12913 pragma Inline (Set_First_Name);
12914 pragma Inline (Set_First_Named_Actual);
12915 pragma Inline (Set_First_Real_Statement);
12916 pragma Inline (Set_First_Subtype_Link);
12917 pragma Inline (Set_Float_Truncate);
12918 pragma Inline (Set_Formal_Type_Definition);
12919 pragma Inline (Set_Forwards_OK);
12920 pragma Inline (Set_From_Aspect_Specification);
12921 pragma Inline (Set_From_At_End);
12922 pragma Inline (Set_From_At_Mod);
12923 pragma Inline (Set_From_Conditional_Expression);
12924 pragma Inline (Set_From_Default);
12925 pragma Inline (Set_Generalized_Indexing);
12926 pragma Inline (Set_Generic_Associations);
12927 pragma Inline (Set_Generic_Formal_Declarations);
12928 pragma Inline (Set_Generic_Parent);
12929 pragma Inline (Set_Generic_Parent_Type);
12930 pragma Inline (Set_Handled_Statement_Sequence);
12931 pragma Inline (Set_Handler_List_Entry);
12932 pragma Inline (Set_Has_Created_Identifier);
12933 pragma Inline (Set_Has_Dereference_Action);
12934 pragma Inline (Set_Has_Dynamic_Length_Check);
12935 pragma Inline (Set_Has_Dynamic_Range_Check);
12936 pragma Inline (Set_Has_Init_Expression);
12937 pragma Inline (Set_Has_Local_Raise);
12938 pragma Inline (Set_Has_No_Elaboration_Code);
12939 pragma Inline (Set_Has_Pragma_Suppress_All);
12940 pragma Inline (Set_Has_Private_View);
12941 pragma Inline (Set_Has_Relative_Deadline_Pragma);
12942 pragma Inline (Set_Has_Self_Reference);
12943 pragma Inline (Set_Has_SP_Choice);
12944 pragma Inline (Set_Has_Storage_Size_Pragma);
12945 pragma Inline (Set_Has_Wide_Character);
12946 pragma Inline (Set_Has_Wide_Wide_Character);
12947 pragma Inline (Set_Header_Size_Added);
12948 pragma Inline (Set_Hidden_By_Use_Clause);
12949 pragma Inline (Set_High_Bound);
12950 pragma Inline (Set_Identifier);
12951 pragma Inline (Set_Implicit_With);
12952 pragma Inline (Set_Import_Interface_Present);
12953 pragma Inline (Set_In_Present);
12954 pragma Inline (Set_Includes_Infinities);
12955 pragma Inline (Set_Incomplete_View);
12956 pragma Inline (Set_Inherited_Discriminant);
12957 pragma Inline (Set_Instance_Spec);
12958 pragma Inline (Set_Interface_List);
12959 pragma Inline (Set_Interface_Present);
12960 pragma Inline (Set_Intval);
12961 pragma Inline (Set_Is_Accessibility_Actual);
12962 pragma Inline (Set_Is_Asynchronous_Call_Block);
12963 pragma Inline (Set_Is_Boolean_Aspect);
12964 pragma Inline (Set_Is_Checked);
12965 pragma Inline (Set_Is_Component_Left_Opnd);
12966 pragma Inline (Set_Is_Component_Right_Opnd);
12967 pragma Inline (Set_Is_Controlling_Actual);
12968 pragma Inline (Set_Is_Delayed_Aspect);
12969 pragma Inline (Set_Is_Disabled);
12970 pragma Inline (Set_Is_Dynamic_Coextension);
12971 pragma Inline (Set_Is_Elsif);
12972 pragma Inline (Set_Is_Entry_Barrier_Function);
12973 pragma Inline (Set_Is_Expanded_Build_In_Place_Call);
12974 pragma Inline (Set_Is_Finalization_Wrapper);
12975 pragma Inline (Set_Is_Folded_In_Parser);
12976 pragma Inline (Set_Is_Ignored);
12977 pragma Inline (Set_Is_In_Discriminant_Check);
12978 pragma Inline (Set_Is_Machine_Number);
12979 pragma Inline (Set_Is_Null_Loop);
12980 pragma Inline (Set_Is_Overloaded);
12981 pragma Inline (Set_Is_Power_Of_2_For_Shift);
12982 pragma Inline (Set_Is_Prefixed_Call);
12983 pragma Inline (Set_Is_Protected_Subprogram_Body);
12984 pragma Inline (Set_Is_Static_Coextension);
12985 pragma Inline (Set_Is_Static_Expression);
12986 pragma Inline (Set_Is_Subprogram_Descriptor);
12987 pragma Inline (Set_Is_Task_Allocation_Block);
12988 pragma Inline (Set_Is_Task_Master);
12989 pragma Inline (Set_Iteration_Scheme);
12990 pragma Inline (Set_Iterator_Specification);
12991 pragma Inline (Set_Itype);
12992 pragma Inline (Set_Kill_Range_Check);
12993 pragma Inline (Set_Label_Construct);
12994 pragma Inline (Set_Last_Bit);
12995 pragma Inline (Set_Last_Name);
12996 pragma Inline (Set_Left_Opnd);
12997 pragma Inline (Set_Library_Unit);
12998 pragma Inline (Set_Limited_Present);
12999 pragma Inline (Set_Limited_View_Installed);
13000 pragma Inline (Set_Literals);
13001 pragma Inline (Set_Local_Raise_Not_OK);
13002 pragma Inline (Set_Local_Raise_Statements);
13003 pragma Inline (Set_Loop_Actions);
13004 pragma Inline (Set_Loop_Parameter_Specification);
13005 pragma Inline (Set_Low_Bound);
13006 pragma Inline (Set_Mod_Clause);
13007 pragma Inline (Set_More_Ids);
13008 pragma Inline (Set_Must_Be_Byte_Aligned);
13009 pragma Inline (Set_Must_Not_Freeze);
13010 pragma Inline (Set_Must_Not_Override);
13011 pragma Inline (Set_Must_Override);
13012 pragma Inline (Set_Name);
13013 pragma Inline (Set_Names);
13014 pragma Inline (Set_Next_Entity);
13015 pragma Inline (Set_Next_Exit_Statement);
13016 pragma Inline (Set_Next_Implicit_With);
13017 pragma Inline (Set_Next_Named_Actual);
13018 pragma Inline (Set_Next_Pragma);
13019 pragma Inline (Set_Next_Rep_Item);
13020 pragma Inline (Set_Next_Use_Clause);
13021 pragma Inline (Set_No_Ctrl_Actions);
13022 pragma Inline (Set_No_Elaboration_Check);
13023 pragma Inline (Set_No_Entities_Ref_In_Spec);
13024 pragma Inline (Set_No_Initialization);
13025 pragma Inline (Set_No_Minimize_Eliminate);
13026 pragma Inline (Set_No_Truncation);
13027 pragma Inline (Set_Non_Aliased_Prefix);
13028 pragma Inline (Set_Null_Excluding_Subtype);
13029 pragma Inline (Set_Null_Exclusion_Present);
13030 pragma Inline (Set_Null_Exclusion_In_Return_Present);
13031 pragma Inline (Set_Null_Present);
13032 pragma Inline (Set_Null_Record_Present);
13033 pragma Inline (Set_Object_Definition);
13034 pragma Inline (Set_Of_Present);
13035 pragma Inline (Set_Original_Discriminant);
13036 pragma Inline (Set_Original_Entity);
13037 pragma Inline (Set_Others_Discrete_Choices);
13038 pragma Inline (Set_Out_Present);
13039 pragma Inline (Set_Parameter_Associations);
13040 pragma Inline (Set_Parameter_Specifications);
13041 pragma Inline (Set_Parameter_Type);
13042 pragma Inline (Set_Parent_Spec);
13043 pragma Inline (Set_Position);
13044 pragma Inline (Set_Pragma_Argument_Associations);
13045 pragma Inline (Set_Pragma_Identifier);
13046 pragma Inline (Set_Pragmas_After);
13047 pragma Inline (Set_Pragmas_Before);
13048 pragma Inline (Set_Pre_Post_Conditions);
13049 pragma Inline (Set_Prefix);
13050 pragma Inline (Set_Premature_Use);
13051 pragma Inline (Set_Present_Expr);
13052 pragma Inline (Set_Prev_Ids);
13053 pragma Inline (Set_Print_In_Hex);
13054 pragma Inline (Set_Private_Declarations);
13055 pragma Inline (Set_Private_Present);
13056 pragma Inline (Set_Procedure_To_Call);
13057 pragma Inline (Set_Proper_Body);
13058 pragma Inline (Set_Protected_Definition);
13059 pragma Inline (Set_Protected_Present);
13060 pragma Inline (Set_Raises_Constraint_Error);
13061 pragma Inline (Set_Range_Constraint);
13062 pragma Inline (Set_Range_Expression);
13063 pragma Inline (Set_Real_Range_Specification);
13064 pragma Inline (Set_Realval);
13065 pragma Inline (Set_Reason);
13066 pragma Inline (Set_Record_Extension_Part);
13067 pragma Inline (Set_Redundant_Use);
13068 pragma Inline (Set_Renaming_Exception);
13069 pragma Inline (Set_Result_Definition);
13070 pragma Inline (Set_Return_Object_Declarations);
13071 pragma Inline (Set_Reverse_Present);
13072 pragma Inline (Set_Right_Opnd);
13073 pragma Inline (Set_Rounded_Result);
13074 pragma Inline (Set_SCIL_Controlling_Tag);
13075 pragma Inline (Set_SCIL_Entity);
13076 pragma Inline (Set_SCIL_Tag_Value);
13077 pragma Inline (Set_SCIL_Target_Prim);
13078 pragma Inline (Set_Scope);
13079 pragma Inline (Set_Select_Alternatives);
13080 pragma Inline (Set_Selector_Name);
13081 pragma Inline (Set_Selector_Names);
13082 pragma Inline (Set_Shift_Count_OK);
13083 pragma Inline (Set_Source_Type);
13084 pragma Inline (Set_Split_PPC);
13085 pragma Inline (Set_Statements);
13086 pragma Inline (Set_Storage_Pool);
13087 pragma Inline (Set_Strval);
13088 pragma Inline (Set_Subpool_Handle_Name);
13089 pragma Inline (Set_Subtype_Indication);
13090 pragma Inline (Set_Subtype_Mark);
13091 pragma Inline (Set_Subtype_Marks);
13092 pragma Inline (Set_Suppress_Assignment_Checks);
13093 pragma Inline (Set_Suppress_Loop_Warnings);
13094 pragma Inline (Set_Synchronized_Present);
13095 pragma Inline (Set_TSS_Elist);
13096 pragma Inline (Set_Tagged_Present);
13097 pragma Inline (Set_Target_Type);
13098 pragma Inline (Set_Task_Definition);
13099 pragma Inline (Set_Task_Present);
13100 pragma Inline (Set_Then_Actions);
13101 pragma Inline (Set_Then_Statements);
13102 pragma Inline (Set_Treat_Fixed_As_Integer);
13103 pragma Inline (Set_Triggering_Alternative);
13104 pragma Inline (Set_Triggering_Statement);
13105 pragma Inline (Set_Type_Definition);
13106 pragma Inline (Set_Uneval_Old_Accept);
13107 pragma Inline (Set_Uneval_Old_Warn);
13108 pragma Inline (Set_Unit);
13109 pragma Inline (Set_Uninitialized_Variable);
13110 pragma Inline (Set_Unknown_Discriminants_Present);
13111 pragma Inline (Set_Unreferenced_In_Spec);
13112 pragma Inline (Set_Used_Operations);
13113 pragma Inline (Set_Variant_Part);
13114 pragma Inline (Set_Variants);
13115 pragma Inline (Set_Visible_Declarations);
13116 pragma Inline (Set_Was_Originally_Stub);
13117 pragma Inline (Set_Withed_Body);
13118
13119 end Sinfo;