1 ------------------------------------------------------------------------------
3 -- GNAT COMPILER COMPONENTS --
9 -- Copyright (C) 1992-2005, Free Software Foundation, Inc. --
11 -- GNAT is free software; you can redistribute it and/or modify it under --
12 -- terms of the GNU General Public License as published by the Free Soft- --
13 -- ware Foundation; either version 2, or (at your option) any later ver- --
14 -- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
15 -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
16 -- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License --
17 -- for more details. You should have received a copy of the GNU General --
18 -- Public License distributed with GNAT; see file COPYING. If not, write --
19 -- to the Free Software Foundation, 59 Temple Place - Suite 330, Boston, --
20 -- MA 02111-1307, USA. --
22 -- As a special exception, if other files instantiate generics from this --
23 -- unit, or you link this unit with other files to produce an executable, --
24 -- this unit does not by itself cause the resulting executable to be --
25 -- covered by the GNU General Public License. This exception does not --
26 -- however invalidate any other reasons why the executable file might be --
27 -- covered by the GNU Public License. --
29 -- GNAT was originally developed by the GNAT team at New York University. --
30 -- Extensive contributions were provided by Ada Core Technologies Inc. --
32 ------------------------------------------------------------------------------
34 pragma Style_Checks (All_Checks);
35 -- No subprogram ordering check, due to logical grouping
37 with Atree; use Atree;
41 use Atree.Unchecked_Access;
42 -- This package is one of the few packages which is allowed to make direct
43 -- references to tree nodes (since it is in the business of providing a
44 -- higher level of tree access which other clients are expected to use and
45 -- which implements checks).
47 use Atree_Private_Part;
48 -- The only reason that we ask for direct access to the private part of
49 -- the tree package is so that we can directly reference the Nkind field
50 -- of nodes table entries. We do this since it helps the efficiency of
51 -- the Sinfo debugging checks considerably (note that when we are checking
52 -- Nkind values, we don't need to check for a valid node reference, because
53 -- we will check that anyway when we reference the field).
55 NT : Nodes.Table_Ptr renames Nodes.Table;
56 -- A short hand abbreviation, useful for the debugging checks
58 ----------------------------
59 -- Field Access Functions --
60 ----------------------------
62 function ABE_Is_Certain
63 (N : Node_Id) return Boolean is
66 or else NT (N).Nkind = N_Formal_Package_Declaration
67 or else NT (N).Nkind = N_Function_Call
68 or else NT (N).Nkind = N_Function_Instantiation
69 or else NT (N).Nkind = N_Package_Instantiation
70 or else NT (N).Nkind = N_Procedure_Call_Statement
71 or else NT (N).Nkind = N_Procedure_Instantiation);
75 function Abort_Present
76 (N : Node_Id) return Boolean is
79 or else NT (N).Nkind = N_Requeue_Statement);
83 function Abortable_Part
84 (N : Node_Id) return Node_Id is
87 or else NT (N).Nkind = N_Asynchronous_Select);
91 function Abstract_Present
92 (N : Node_Id) return Boolean is
95 or else NT (N).Nkind = N_Derived_Type_Definition
96 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
97 or else NT (N).Nkind = N_Formal_Private_Type_Definition
98 or else NT (N).Nkind = N_Private_Extension_Declaration
99 or else NT (N).Nkind = N_Private_Type_Declaration
100 or else NT (N).Nkind = N_Record_Definition);
102 end Abstract_Present;
104 function Accept_Handler_Records
105 (N : Node_Id) return List_Id is
108 or else NT (N).Nkind = N_Accept_Alternative);
110 end Accept_Handler_Records;
112 function Accept_Statement
113 (N : Node_Id) return Node_Id is
116 or else NT (N).Nkind = N_Accept_Alternative);
118 end Accept_Statement;
120 function Access_Definition
121 (N : Node_Id) return Node_Id is
124 or else NT (N).Nkind = N_Component_Definition
125 or else NT (N).Nkind = N_Object_Renaming_Declaration);
127 end Access_Definition;
129 function Access_To_Subprogram_Definition
130 (N : Node_Id) return Node_Id is
133 or else NT (N).Nkind = N_Access_Definition);
135 end Access_To_Subprogram_Definition;
137 function Access_Types_To_Process
138 (N : Node_Id) return Elist_Id is
141 or else NT (N).Nkind = N_Freeze_Entity);
143 end Access_Types_To_Process;
146 (N : Node_Id) return List_Id is
149 or else NT (N).Nkind = N_And_Then
150 or else NT (N).Nkind = N_Compilation_Unit_Aux
151 or else NT (N).Nkind = N_Freeze_Entity
152 or else NT (N).Nkind = N_Or_Else);
156 function Activation_Chain_Entity
157 (N : Node_Id) return Node_Id is
160 or else NT (N).Nkind = N_Block_Statement
161 or else NT (N).Nkind = N_Entry_Body
162 or else NT (N).Nkind = N_Generic_Package_Declaration
163 or else NT (N).Nkind = N_Package_Declaration
164 or else NT (N).Nkind = N_Subprogram_Body
165 or else NT (N).Nkind = N_Task_Body);
167 end Activation_Chain_Entity;
169 function Acts_As_Spec
170 (N : Node_Id) return Boolean is
173 or else NT (N).Nkind = N_Compilation_Unit
174 or else NT (N).Nkind = N_Subprogram_Body);
178 function Aggregate_Bounds
179 (N : Node_Id) return Node_Id is
182 or else NT (N).Nkind = N_Aggregate);
184 end Aggregate_Bounds;
186 function Aliased_Present
187 (N : Node_Id) return Boolean is
190 or else NT (N).Nkind = N_Component_Definition
191 or else NT (N).Nkind = N_Object_Declaration);
196 (N : Node_Id) return Boolean is
199 or else NT (N).Nkind = N_Others_Choice);
204 (N : Node_Id) return Boolean is
207 or else NT (N).Nkind = N_Access_Definition
208 or else NT (N).Nkind = N_Access_To_Object_Definition);
212 function Alternatives
213 (N : Node_Id) return List_Id is
216 or else NT (N).Nkind = N_Case_Statement);
220 function Ancestor_Part
221 (N : Node_Id) return Node_Id is
224 or else NT (N).Nkind = N_Extension_Aggregate);
228 function Array_Aggregate
229 (N : Node_Id) return Node_Id is
232 or else NT (N).Nkind = N_Enumeration_Representation_Clause);
236 function Assignment_OK
237 (N : Node_Id) return Boolean is
240 or else NT (N).Nkind = N_Object_Declaration
241 or else NT (N).Nkind in N_Subexpr);
245 function Associated_Node
246 (N : Node_Id) return Node_Id is
249 or else NT (N).Nkind in N_Has_Entity
250 or else NT (N).Nkind = N_Aggregate
251 or else NT (N).Nkind = N_Extension_Aggregate
252 or else NT (N).Nkind = N_Selected_Component);
257 (N : Node_Id) return Node_Id is
260 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements);
264 function Attribute_Name
265 (N : Node_Id) return Name_Id is
268 or else NT (N).Nkind = N_Attribute_Reference);
272 function Aux_Decls_Node
273 (N : Node_Id) return Node_Id is
276 or else NT (N).Nkind = N_Compilation_Unit);
280 function Backwards_OK
281 (N : Node_Id) return Boolean is
284 or else NT (N).Nkind = N_Assignment_Statement);
288 function Bad_Is_Detected
289 (N : Node_Id) return Boolean is
292 or else NT (N).Nkind = N_Subprogram_Body);
296 function Body_Required
297 (N : Node_Id) return Boolean is
300 or else NT (N).Nkind = N_Compilation_Unit);
304 function Body_To_Inline
305 (N : Node_Id) return Node_Id is
308 or else NT (N).Nkind = N_Subprogram_Declaration);
313 (N : Node_Id) return Boolean is
316 or else NT (N).Nkind = N_Component_Association
317 or else NT (N).Nkind = N_Formal_Abstract_Subprogram_Declaration
318 or else NT (N).Nkind = N_Formal_Concrete_Subprogram_Declaration
319 or else NT (N).Nkind = N_Formal_Package_Declaration);
324 (N : Node_Id) return Boolean is
327 or else NT (N).Nkind = N_Return_Statement);
331 function Char_Literal_Value
332 (N : Node_Id) return Uint is
335 or else NT (N).Nkind = N_Character_Literal);
337 end Char_Literal_Value;
340 (N : Node_Id) return Name_Id is
343 or else NT (N).Nkind in N_Has_Chars);
347 function Check_Address_Alignment
348 (N : Node_Id) return Boolean is
351 or else NT (N).Nkind = N_Attribute_Definition_Clause);
353 end Check_Address_Alignment;
355 function Choice_Parameter
356 (N : Node_Id) return Node_Id is
359 or else NT (N).Nkind = N_Exception_Handler);
361 end Choice_Parameter;
364 (N : Node_Id) return List_Id is
367 or else NT (N).Nkind = N_Component_Association);
371 function Compile_Time_Known_Aggregate
372 (N : Node_Id) return Boolean is
375 or else NT (N).Nkind = N_Aggregate);
377 end Compile_Time_Known_Aggregate;
379 function Component_Associations
380 (N : Node_Id) return List_Id is
383 or else NT (N).Nkind = N_Aggregate
384 or else NT (N).Nkind = N_Extension_Aggregate);
386 end Component_Associations;
388 function Component_Clauses
389 (N : Node_Id) return List_Id is
392 or else NT (N).Nkind = N_Record_Representation_Clause);
394 end Component_Clauses;
396 function Component_Definition
397 (N : Node_Id) return Node_Id is
400 or else NT (N).Nkind = N_Component_Declaration
401 or else NT (N).Nkind = N_Constrained_Array_Definition
402 or else NT (N).Nkind = N_Unconstrained_Array_Definition);
404 end Component_Definition;
406 function Component_Items
407 (N : Node_Id) return List_Id is
410 or else NT (N).Nkind = N_Component_List);
414 function Component_List
415 (N : Node_Id) return Node_Id is
418 or else NT (N).Nkind = N_Record_Definition
419 or else NT (N).Nkind = N_Variant);
423 function Component_Name
424 (N : Node_Id) return Node_Id is
427 or else NT (N).Nkind = N_Component_Clause);
432 (N : Node_Id) return Node_Id is
435 or else NT (N).Nkind = N_Accept_Alternative
436 or else NT (N).Nkind = N_Delay_Alternative
437 or else NT (N).Nkind = N_Elsif_Part
438 or else NT (N).Nkind = N_Entry_Body_Formal_Part
439 or else NT (N).Nkind = N_Exit_Statement
440 or else NT (N).Nkind = N_If_Statement
441 or else NT (N).Nkind = N_Iteration_Scheme
442 or else NT (N).Nkind = N_Raise_Constraint_Error
443 or else NT (N).Nkind = N_Raise_Program_Error
444 or else NT (N).Nkind = N_Raise_Storage_Error
445 or else NT (N).Nkind = N_Terminate_Alternative);
449 function Condition_Actions
450 (N : Node_Id) return List_Id is
453 or else NT (N).Nkind = N_Elsif_Part
454 or else NT (N).Nkind = N_Iteration_Scheme);
456 end Condition_Actions;
458 function Config_Pragmas
459 (N : Node_Id) return List_Id is
462 or else NT (N).Nkind = N_Compilation_Unit_Aux);
466 function Constant_Present
467 (N : Node_Id) return Boolean is
470 or else NT (N).Nkind = N_Access_Definition
471 or else NT (N).Nkind = N_Access_To_Object_Definition
472 or else NT (N).Nkind = N_Object_Declaration);
474 end Constant_Present;
477 (N : Node_Id) return Node_Id is
480 or else NT (N).Nkind = N_Subtype_Indication);
485 (N : Node_Id) return List_Id is
488 or else NT (N).Nkind = N_Index_Or_Discriminant_Constraint);
492 function Context_Installed
493 (N : Node_Id) return Boolean is
496 or else NT (N).Nkind = N_With_Clause);
498 end Context_Installed;
500 function Context_Items
501 (N : Node_Id) return List_Id is
504 or else NT (N).Nkind = N_Compilation_Unit);
508 function Controlling_Argument
509 (N : Node_Id) return Node_Id is
512 or else NT (N).Nkind = N_Function_Call
513 or else NT (N).Nkind = N_Procedure_Call_Statement);
515 end Controlling_Argument;
517 function Conversion_OK
518 (N : Node_Id) return Boolean is
521 or else NT (N).Nkind = N_Type_Conversion);
525 function Corresponding_Body
526 (N : Node_Id) return Node_Id is
529 or else NT (N).Nkind = N_Entry_Declaration
530 or else NT (N).Nkind = N_Generic_Package_Declaration
531 or else NT (N).Nkind = N_Generic_Subprogram_Declaration
532 or else NT (N).Nkind = N_Package_Body_Stub
533 or else NT (N).Nkind = N_Package_Declaration
534 or else NT (N).Nkind = N_Protected_Body_Stub
535 or else NT (N).Nkind = N_Protected_Type_Declaration
536 or else NT (N).Nkind = N_Subprogram_Body_Stub
537 or else NT (N).Nkind = N_Subprogram_Declaration
538 or else NT (N).Nkind = N_Task_Body_Stub
539 or else NT (N).Nkind = N_Task_Type_Declaration);
541 end Corresponding_Body;
543 function Corresponding_Formal_Spec
544 (N : Node_Id) return Node_Id is
547 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration);
549 end Corresponding_Formal_Spec;
551 function Corresponding_Generic_Association
552 (N : Node_Id) return Node_Id is
555 or else NT (N).Nkind = N_Object_Declaration
556 or else NT (N).Nkind = N_Object_Renaming_Declaration);
558 end Corresponding_Generic_Association;
560 function Corresponding_Integer_Value
561 (N : Node_Id) return Uint is
564 or else NT (N).Nkind = N_Real_Literal);
566 end Corresponding_Integer_Value;
568 function Corresponding_Spec
569 (N : Node_Id) return Node_Id is
572 or else NT (N).Nkind = N_Package_Body
573 or else NT (N).Nkind = N_Protected_Body
574 or else NT (N).Nkind = N_Subprogram_Body
575 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration
576 or else NT (N).Nkind = N_Task_Body
577 or else NT (N).Nkind = N_With_Clause);
579 end Corresponding_Spec;
581 function Corresponding_Stub
582 (N : Node_Id) return Node_Id is
585 or else NT (N).Nkind = N_Subunit);
587 end Corresponding_Stub;
589 function Dcheck_Function
590 (N : Node_Id) return Entity_Id is
593 or else NT (N).Nkind = N_Variant);
597 function Debug_Statement
598 (N : Node_Id) return Node_Id is
601 or else NT (N).Nkind = N_Pragma);
605 function Declarations
606 (N : Node_Id) return List_Id is
609 or else NT (N).Nkind = N_Accept_Statement
610 or else NT (N).Nkind = N_Block_Statement
611 or else NT (N).Nkind = N_Compilation_Unit_Aux
612 or else NT (N).Nkind = N_Entry_Body
613 or else NT (N).Nkind = N_Package_Body
614 or else NT (N).Nkind = N_Protected_Body
615 or else NT (N).Nkind = N_Subprogram_Body
616 or else NT (N).Nkind = N_Task_Body);
620 function Default_Expression
621 (N : Node_Id) return Node_Id is
624 or else NT (N).Nkind = N_Parameter_Specification);
626 end Default_Expression;
628 function Default_Name
629 (N : Node_Id) return Node_Id is
632 or else NT (N).Nkind = N_Formal_Abstract_Subprogram_Declaration
633 or else NT (N).Nkind = N_Formal_Concrete_Subprogram_Declaration);
637 function Defining_Identifier
638 (N : Node_Id) return Entity_Id is
641 or else NT (N).Nkind = N_Component_Declaration
642 or else NT (N).Nkind = N_Defining_Program_Unit_Name
643 or else NT (N).Nkind = N_Discriminant_Specification
644 or else NT (N).Nkind = N_Entry_Body
645 or else NT (N).Nkind = N_Entry_Declaration
646 or else NT (N).Nkind = N_Entry_Index_Specification
647 or else NT (N).Nkind = N_Exception_Declaration
648 or else NT (N).Nkind = N_Exception_Renaming_Declaration
649 or else NT (N).Nkind = N_Formal_Object_Declaration
650 or else NT (N).Nkind = N_Formal_Package_Declaration
651 or else NT (N).Nkind = N_Formal_Type_Declaration
652 or else NT (N).Nkind = N_Full_Type_Declaration
653 or else NT (N).Nkind = N_Implicit_Label_Declaration
654 or else NT (N).Nkind = N_Incomplete_Type_Declaration
655 or else NT (N).Nkind = N_Loop_Parameter_Specification
656 or else NT (N).Nkind = N_Number_Declaration
657 or else NT (N).Nkind = N_Object_Declaration
658 or else NT (N).Nkind = N_Object_Renaming_Declaration
659 or else NT (N).Nkind = N_Package_Body_Stub
660 or else NT (N).Nkind = N_Parameter_Specification
661 or else NT (N).Nkind = N_Private_Extension_Declaration
662 or else NT (N).Nkind = N_Private_Type_Declaration
663 or else NT (N).Nkind = N_Protected_Body
664 or else NT (N).Nkind = N_Protected_Body_Stub
665 or else NT (N).Nkind = N_Protected_Type_Declaration
666 or else NT (N).Nkind = N_Single_Protected_Declaration
667 or else NT (N).Nkind = N_Single_Task_Declaration
668 or else NT (N).Nkind = N_Subtype_Declaration
669 or else NT (N).Nkind = N_Task_Body
670 or else NT (N).Nkind = N_Task_Body_Stub
671 or else NT (N).Nkind = N_Task_Type_Declaration);
673 end Defining_Identifier;
675 function Defining_Unit_Name
676 (N : Node_Id) return Node_Id is
679 or else NT (N).Nkind = N_Function_Instantiation
680 or else NT (N).Nkind = N_Function_Specification
681 or else NT (N).Nkind = N_Generic_Function_Renaming_Declaration
682 or else NT (N).Nkind = N_Generic_Package_Renaming_Declaration
683 or else NT (N).Nkind = N_Generic_Procedure_Renaming_Declaration
684 or else NT (N).Nkind = N_Package_Body
685 or else NT (N).Nkind = N_Package_Instantiation
686 or else NT (N).Nkind = N_Package_Renaming_Declaration
687 or else NT (N).Nkind = N_Package_Specification
688 or else NT (N).Nkind = N_Procedure_Instantiation
689 or else NT (N).Nkind = N_Procedure_Specification);
691 end Defining_Unit_Name;
693 function Delay_Alternative
694 (N : Node_Id) return Node_Id is
697 or else NT (N).Nkind = N_Timed_Entry_Call);
699 end Delay_Alternative;
701 function Delay_Finalize_Attach
702 (N : Node_Id) return Boolean is
705 or else NT (N).Nkind = N_Object_Declaration);
707 end Delay_Finalize_Attach;
709 function Delay_Statement
710 (N : Node_Id) return Node_Id is
713 or else NT (N).Nkind = N_Delay_Alternative);
717 function Delta_Expression
718 (N : Node_Id) return Node_Id is
721 or else NT (N).Nkind = N_Decimal_Fixed_Point_Definition
722 or else NT (N).Nkind = N_Delta_Constraint
723 or else NT (N).Nkind = N_Ordinary_Fixed_Point_Definition);
725 end Delta_Expression;
727 function Digits_Expression
728 (N : Node_Id) return Node_Id is
731 or else NT (N).Nkind = N_Decimal_Fixed_Point_Definition
732 or else NT (N).Nkind = N_Digits_Constraint
733 or else NT (N).Nkind = N_Floating_Point_Definition);
735 end Digits_Expression;
737 function Discr_Check_Funcs_Built
738 (N : Node_Id) return Boolean is
741 or else NT (N).Nkind = N_Full_Type_Declaration);
743 end Discr_Check_Funcs_Built;
745 function Discrete_Choices
746 (N : Node_Id) return List_Id is
749 or else NT (N).Nkind = N_Case_Statement_Alternative
750 or else NT (N).Nkind = N_Variant);
752 end Discrete_Choices;
754 function Discrete_Range
755 (N : Node_Id) return Node_Id is
758 or else NT (N).Nkind = N_Slice);
762 function Discrete_Subtype_Definition
763 (N : Node_Id) return Node_Id is
766 or else NT (N).Nkind = N_Entry_Declaration
767 or else NT (N).Nkind = N_Entry_Index_Specification
768 or else NT (N).Nkind = N_Loop_Parameter_Specification);
770 end Discrete_Subtype_Definition;
772 function Discrete_Subtype_Definitions
773 (N : Node_Id) return List_Id is
776 or else NT (N).Nkind = N_Constrained_Array_Definition);
778 end Discrete_Subtype_Definitions;
780 function Discriminant_Specifications
781 (N : Node_Id) return List_Id is
784 or else NT (N).Nkind = N_Formal_Type_Declaration
785 or else NT (N).Nkind = N_Full_Type_Declaration
786 or else NT (N).Nkind = N_Incomplete_Type_Declaration
787 or else NT (N).Nkind = N_Private_Extension_Declaration
788 or else NT (N).Nkind = N_Private_Type_Declaration
789 or else NT (N).Nkind = N_Protected_Type_Declaration
790 or else NT (N).Nkind = N_Task_Type_Declaration);
792 end Discriminant_Specifications;
794 function Discriminant_Type
795 (N : Node_Id) return Node_Id is
798 or else NT (N).Nkind = N_Discriminant_Specification);
800 end Discriminant_Type;
802 function Do_Accessibility_Check
803 (N : Node_Id) return Boolean is
806 or else NT (N).Nkind = N_Parameter_Specification);
808 end Do_Accessibility_Check;
810 function Do_Discriminant_Check
811 (N : Node_Id) return Boolean is
814 or else NT (N).Nkind = N_Selected_Component);
816 end Do_Discriminant_Check;
818 function Do_Division_Check
819 (N : Node_Id) return Boolean is
822 or else NT (N).Nkind = N_Op_Divide
823 or else NT (N).Nkind = N_Op_Mod
824 or else NT (N).Nkind = N_Op_Rem);
826 end Do_Division_Check;
828 function Do_Length_Check
829 (N : Node_Id) return Boolean is
832 or else NT (N).Nkind = N_Assignment_Statement
833 or else NT (N).Nkind = N_Op_And
834 or else NT (N).Nkind = N_Op_Or
835 or else NT (N).Nkind = N_Op_Xor
836 or else NT (N).Nkind = N_Type_Conversion);
840 function Do_Overflow_Check
841 (N : Node_Id) return Boolean is
844 or else NT (N).Nkind in N_Op
845 or else NT (N).Nkind = N_Attribute_Reference
846 or else NT (N).Nkind = N_Type_Conversion);
848 end Do_Overflow_Check;
850 function Do_Range_Check
851 (N : Node_Id) return Boolean is
854 or else NT (N).Nkind in N_Subexpr);
858 function Do_Storage_Check
859 (N : Node_Id) return Boolean is
862 or else NT (N).Nkind = N_Allocator
863 or else NT (N).Nkind = N_Subprogram_Body);
865 end Do_Storage_Check;
867 function Do_Tag_Check
868 (N : Node_Id) return Boolean is
871 or else NT (N).Nkind = N_Assignment_Statement
872 or else NT (N).Nkind = N_Function_Call
873 or else NT (N).Nkind = N_Procedure_Call_Statement
874 or else NT (N).Nkind = N_Return_Statement
875 or else NT (N).Nkind = N_Type_Conversion);
879 function Elaborate_All_Present
880 (N : Node_Id) return Boolean is
883 or else NT (N).Nkind = N_With_Clause);
885 end Elaborate_All_Present;
887 function Elaborate_Present
888 (N : Node_Id) return Boolean is
891 or else NT (N).Nkind = N_With_Clause);
893 end Elaborate_Present;
895 function Elaboration_Boolean
896 (N : Node_Id) return Node_Id is
899 or else NT (N).Nkind = N_Function_Specification
900 or else NT (N).Nkind = N_Procedure_Specification);
902 end Elaboration_Boolean;
904 function Else_Actions
905 (N : Node_Id) return List_Id is
908 or else NT (N).Nkind = N_Conditional_Expression);
912 function Else_Statements
913 (N : Node_Id) return List_Id is
916 or else NT (N).Nkind = N_Conditional_Entry_Call
917 or else NT (N).Nkind = N_If_Statement
918 or else NT (N).Nkind = N_Selective_Accept);
923 (N : Node_Id) return List_Id is
926 or else NT (N).Nkind = N_If_Statement);
930 function Enclosing_Variant
931 (N : Node_Id) return Node_Id is
934 or else NT (N).Nkind = N_Variant);
936 end Enclosing_Variant;
939 (N : Node_Id) return Node_Id is
942 or else NT (N).Nkind = N_Enumeration_Type_Definition
943 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements
944 or else NT (N).Nkind = N_Loop_Statement
945 or else NT (N).Nkind = N_Package_Specification
946 or else NT (N).Nkind = N_Protected_Body
947 or else NT (N).Nkind = N_Protected_Definition
948 or else NT (N).Nkind = N_Record_Definition
949 or else NT (N).Nkind = N_Task_Definition);
954 (N : Node_Id) return Uint is
957 or else NT (N).Nkind = N_Case_Statement
958 or else NT (N).Nkind = N_If_Statement);
963 (N : Node_Id) return Node_Id is
966 or else NT (N).Nkind in N_Has_Entity
967 or else NT (N).Nkind = N_Freeze_Entity);
971 function Entity_Or_Associated_Node
972 (N : Node_Id) return Node_Id is
975 or else NT (N).Nkind in N_Has_Entity
976 or else NT (N).Nkind = N_Freeze_Entity);
978 end Entity_Or_Associated_Node;
980 function Entry_Body_Formal_Part
981 (N : Node_Id) return Node_Id is
984 or else NT (N).Nkind = N_Entry_Body);
986 end Entry_Body_Formal_Part;
988 function Entry_Call_Alternative
989 (N : Node_Id) return Node_Id is
992 or else NT (N).Nkind = N_Conditional_Entry_Call
993 or else NT (N).Nkind = N_Timed_Entry_Call);
995 end Entry_Call_Alternative;
997 function Entry_Call_Statement
998 (N : Node_Id) return Node_Id is
1000 pragma Assert (False
1001 or else NT (N).Nkind = N_Entry_Call_Alternative);
1003 end Entry_Call_Statement;
1005 function Entry_Direct_Name
1006 (N : Node_Id) return Node_Id is
1008 pragma Assert (False
1009 or else NT (N).Nkind = N_Accept_Statement);
1011 end Entry_Direct_Name;
1013 function Entry_Index
1014 (N : Node_Id) return Node_Id is
1016 pragma Assert (False
1017 or else NT (N).Nkind = N_Accept_Statement);
1021 function Entry_Index_Specification
1022 (N : Node_Id) return Node_Id is
1024 pragma Assert (False
1025 or else NT (N).Nkind = N_Entry_Body_Formal_Part);
1027 end Entry_Index_Specification;
1030 (N : Node_Id) return Node_Id is
1032 pragma Assert (False
1033 or else NT (N).Nkind in N_Has_Etype);
1037 function Exception_Choices
1038 (N : Node_Id) return List_Id is
1040 pragma Assert (False
1041 or else NT (N).Nkind = N_Exception_Handler);
1043 end Exception_Choices;
1045 function Exception_Handlers
1046 (N : Node_Id) return List_Id is
1048 pragma Assert (False
1049 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements);
1051 end Exception_Handlers;
1053 function Exception_Junk
1054 (N : Node_Id) return Boolean is
1056 pragma Assert (False
1057 or else NT (N).Nkind = N_Goto_Statement
1058 or else NT (N).Nkind = N_Label
1059 or else NT (N).Nkind = N_Object_Declaration
1060 or else NT (N).Nkind = N_Subtype_Declaration);
1064 function Expansion_Delayed
1065 (N : Node_Id) return Boolean is
1067 pragma Assert (False
1068 or else NT (N).Nkind = N_Aggregate
1069 or else NT (N).Nkind = N_Extension_Aggregate);
1071 end Expansion_Delayed;
1073 function Explicit_Actual_Parameter
1074 (N : Node_Id) return Node_Id is
1076 pragma Assert (False
1077 or else NT (N).Nkind = N_Parameter_Association);
1079 end Explicit_Actual_Parameter;
1081 function Explicit_Generic_Actual_Parameter
1082 (N : Node_Id) return Node_Id is
1084 pragma Assert (False
1085 or else NT (N).Nkind = N_Generic_Association);
1087 end Explicit_Generic_Actual_Parameter;
1090 (N : Node_Id) return Node_Id is
1092 pragma Assert (False
1093 or else NT (N).Nkind = N_Allocator
1094 or else NT (N).Nkind = N_Assignment_Statement
1095 or else NT (N).Nkind = N_At_Clause
1096 or else NT (N).Nkind = N_Attribute_Definition_Clause
1097 or else NT (N).Nkind = N_Case_Statement
1098 or else NT (N).Nkind = N_Code_Statement
1099 or else NT (N).Nkind = N_Component_Association
1100 or else NT (N).Nkind = N_Component_Declaration
1101 or else NT (N).Nkind = N_Delay_Relative_Statement
1102 or else NT (N).Nkind = N_Delay_Until_Statement
1103 or else NT (N).Nkind = N_Discriminant_Association
1104 or else NT (N).Nkind = N_Discriminant_Specification
1105 or else NT (N).Nkind = N_Exception_Declaration
1106 or else NT (N).Nkind = N_Formal_Object_Declaration
1107 or else NT (N).Nkind = N_Free_Statement
1108 or else NT (N).Nkind = N_Mod_Clause
1109 or else NT (N).Nkind = N_Modular_Type_Definition
1110 or else NT (N).Nkind = N_Number_Declaration
1111 or else NT (N).Nkind = N_Object_Declaration
1112 or else NT (N).Nkind = N_Parameter_Specification
1113 or else NT (N).Nkind = N_Pragma_Argument_Association
1114 or else NT (N).Nkind = N_Qualified_Expression
1115 or else NT (N).Nkind = N_Raise_Statement
1116 or else NT (N).Nkind = N_Return_Statement
1117 or else NT (N).Nkind = N_Type_Conversion
1118 or else NT (N).Nkind = N_Unchecked_Expression
1119 or else NT (N).Nkind = N_Unchecked_Type_Conversion);
1123 function Expressions
1124 (N : Node_Id) return List_Id is
1126 pragma Assert (False
1127 or else NT (N).Nkind = N_Aggregate
1128 or else NT (N).Nkind = N_Attribute_Reference
1129 or else NT (N).Nkind = N_Conditional_Expression
1130 or else NT (N).Nkind = N_Extension_Aggregate
1131 or else NT (N).Nkind = N_Indexed_Component);
1136 (N : Node_Id) return Node_Id is
1138 pragma Assert (False
1139 or else NT (N).Nkind = N_Component_Clause);
1143 function First_Inlined_Subprogram
1144 (N : Node_Id) return Entity_Id is
1146 pragma Assert (False
1147 or else NT (N).Nkind = N_Compilation_Unit);
1149 end First_Inlined_Subprogram;
1152 (N : Node_Id) return Boolean is
1154 pragma Assert (False
1155 or else NT (N).Nkind = N_With_Clause);
1159 function First_Named_Actual
1160 (N : Node_Id) return Node_Id is
1162 pragma Assert (False
1163 or else NT (N).Nkind = N_Entry_Call_Statement
1164 or else NT (N).Nkind = N_Function_Call
1165 or else NT (N).Nkind = N_Procedure_Call_Statement);
1167 end First_Named_Actual;
1169 function First_Real_Statement
1170 (N : Node_Id) return Node_Id is
1172 pragma Assert (False
1173 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements);
1175 end First_Real_Statement;
1177 function First_Subtype_Link
1178 (N : Node_Id) return Entity_Id is
1180 pragma Assert (False
1181 or else NT (N).Nkind = N_Freeze_Entity);
1183 end First_Subtype_Link;
1185 function Float_Truncate
1186 (N : Node_Id) return Boolean is
1188 pragma Assert (False
1189 or else NT (N).Nkind = N_Type_Conversion);
1193 function Formal_Type_Definition
1194 (N : Node_Id) return Node_Id is
1196 pragma Assert (False
1197 or else NT (N).Nkind = N_Formal_Type_Declaration);
1199 end Formal_Type_Definition;
1201 function Forwards_OK
1202 (N : Node_Id) return Boolean is
1204 pragma Assert (False
1205 or else NT (N).Nkind = N_Assignment_Statement);
1209 function From_At_Mod
1210 (N : Node_Id) return Boolean is
1212 pragma Assert (False
1213 or else NT (N).Nkind = N_Attribute_Definition_Clause);
1217 function From_Default
1218 (N : Node_Id) return Boolean is
1220 pragma Assert (False
1221 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration);
1225 function Generic_Associations
1226 (N : Node_Id) return List_Id is
1228 pragma Assert (False
1229 or else NT (N).Nkind = N_Formal_Package_Declaration
1230 or else NT (N).Nkind = N_Function_Instantiation
1231 or else NT (N).Nkind = N_Package_Instantiation
1232 or else NT (N).Nkind = N_Procedure_Instantiation);
1234 end Generic_Associations;
1236 function Generic_Formal_Declarations
1237 (N : Node_Id) return List_Id is
1239 pragma Assert (False
1240 or else NT (N).Nkind = N_Generic_Package_Declaration
1241 or else NT (N).Nkind = N_Generic_Subprogram_Declaration);
1243 end Generic_Formal_Declarations;
1245 function Generic_Parent
1246 (N : Node_Id) return Node_Id is
1248 pragma Assert (False
1249 or else NT (N).Nkind = N_Function_Specification
1250 or else NT (N).Nkind = N_Package_Specification
1251 or else NT (N).Nkind = N_Procedure_Specification);
1255 function Generic_Parent_Type
1256 (N : Node_Id) return Node_Id is
1258 pragma Assert (False
1259 or else NT (N).Nkind = N_Subtype_Declaration);
1261 end Generic_Parent_Type;
1263 function Handled_Statement_Sequence
1264 (N : Node_Id) return Node_Id is
1266 pragma Assert (False
1267 or else NT (N).Nkind = N_Accept_Statement
1268 or else NT (N).Nkind = N_Block_Statement
1269 or else NT (N).Nkind = N_Entry_Body
1270 or else NT (N).Nkind = N_Package_Body
1271 or else NT (N).Nkind = N_Subprogram_Body
1272 or else NT (N).Nkind = N_Task_Body);
1274 end Handled_Statement_Sequence;
1276 function Handler_List_Entry
1277 (N : Node_Id) return Node_Id is
1279 pragma Assert (False
1280 or else NT (N).Nkind = N_Object_Declaration);
1282 end Handler_List_Entry;
1284 function Has_Created_Identifier
1285 (N : Node_Id) return Boolean is
1287 pragma Assert (False
1288 or else NT (N).Nkind = N_Block_Statement
1289 or else NT (N).Nkind = N_Loop_Statement);
1291 end Has_Created_Identifier;
1293 function Has_Dynamic_Length_Check
1294 (N : Node_Id) return Boolean is
1297 end Has_Dynamic_Length_Check;
1299 function Has_Dynamic_Range_Check
1300 (N : Node_Id) return Boolean is
1303 end Has_Dynamic_Range_Check;
1305 function Has_No_Elaboration_Code
1306 (N : Node_Id) return Boolean is
1308 pragma Assert (False
1309 or else NT (N).Nkind = N_Compilation_Unit);
1311 end Has_No_Elaboration_Code;
1313 function Has_Priority_Pragma
1314 (N : Node_Id) return Boolean is
1316 pragma Assert (False
1317 or else NT (N).Nkind = N_Protected_Definition
1318 or else NT (N).Nkind = N_Subprogram_Body
1319 or else NT (N).Nkind = N_Task_Definition);
1321 end Has_Priority_Pragma;
1323 function Has_Private_View
1324 (N : Node_Id) return Boolean is
1326 pragma Assert (False
1327 or else NT (N).Nkind in N_Op
1328 or else NT (N).Nkind = N_Character_Literal
1329 or else NT (N).Nkind = N_Expanded_Name
1330 or else NT (N).Nkind = N_Identifier
1331 or else NT (N).Nkind = N_Operator_Symbol);
1333 end Has_Private_View;
1335 function Has_Storage_Size_Pragma
1336 (N : Node_Id) return Boolean is
1338 pragma Assert (False
1339 or else NT (N).Nkind = N_Task_Definition);
1341 end Has_Storage_Size_Pragma;
1343 function Has_Task_Info_Pragma
1344 (N : Node_Id) return Boolean is
1346 pragma Assert (False
1347 or else NT (N).Nkind = N_Task_Definition);
1349 end Has_Task_Info_Pragma;
1351 function Has_Task_Name_Pragma
1352 (N : Node_Id) return Boolean is
1354 pragma Assert (False
1355 or else NT (N).Nkind = N_Task_Definition);
1357 end Has_Task_Name_Pragma;
1359 function Has_Wide_Character
1360 (N : Node_Id) return Boolean is
1362 pragma Assert (False
1363 or else NT (N).Nkind = N_String_Literal);
1365 end Has_Wide_Character;
1367 function Hidden_By_Use_Clause
1368 (N : Node_Id) return Elist_Id is
1370 pragma Assert (False
1371 or else NT (N).Nkind = N_Use_Package_Clause
1372 or else NT (N).Nkind = N_Use_Type_Clause);
1374 end Hidden_By_Use_Clause;
1377 (N : Node_Id) return Node_Id is
1379 pragma Assert (False
1380 or else NT (N).Nkind = N_Range
1381 or else NT (N).Nkind = N_Real_Range_Specification
1382 or else NT (N).Nkind = N_Signed_Integer_Type_Definition);
1387 (N : Node_Id) return Node_Id is
1389 pragma Assert (False
1390 or else NT (N).Nkind = N_At_Clause
1391 or else NT (N).Nkind = N_Block_Statement
1392 or else NT (N).Nkind = N_Designator
1393 or else NT (N).Nkind = N_Enumeration_Representation_Clause
1394 or else NT (N).Nkind = N_Label
1395 or else NT (N).Nkind = N_Loop_Statement
1396 or else NT (N).Nkind = N_Record_Representation_Clause
1397 or else NT (N).Nkind = N_Subprogram_Info);
1401 function Implicit_With
1402 (N : Node_Id) return Boolean is
1404 pragma Assert (False
1405 or else NT (N).Nkind = N_With_Clause);
1409 function Interface_List
1410 (N : Node_Id) return List_Id is
1412 pragma Assert (False
1413 or else NT (N).Nkind = N_Derived_Type_Definition
1414 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
1415 or else NT (N).Nkind = N_Private_Extension_Declaration
1416 or else NT (N).Nkind = N_Protected_Type_Declaration
1417 or else NT (N).Nkind = N_Record_Definition
1418 or else NT (N).Nkind = N_Task_Type_Declaration);
1422 function Interface_Present
1423 (N : Node_Id) return Boolean is
1425 pragma Assert (False
1426 or else NT (N).Nkind = N_Derived_Type_Definition
1427 or else NT (N).Nkind = N_Record_Definition);
1429 end Interface_Present;
1432 (N : Node_Id) return Boolean is
1434 pragma Assert (False
1435 or else NT (N).Nkind = N_Formal_Object_Declaration
1436 or else NT (N).Nkind = N_Parameter_Specification);
1440 function Includes_Infinities
1441 (N : Node_Id) return Boolean is
1443 pragma Assert (False
1444 or else NT (N).Nkind = N_Range);
1446 end Includes_Infinities;
1448 function Instance_Spec
1449 (N : Node_Id) return Node_Id is
1451 pragma Assert (False
1452 or else NT (N).Nkind = N_Formal_Package_Declaration
1453 or else NT (N).Nkind = N_Function_Instantiation
1454 or else NT (N).Nkind = N_Package_Instantiation
1455 or else NT (N).Nkind = N_Procedure_Instantiation);
1460 (N : Node_Id) return Uint is
1462 pragma Assert (False
1463 or else NT (N).Nkind = N_Integer_Literal);
1467 function Is_Asynchronous_Call_Block
1468 (N : Node_Id) return Boolean is
1470 pragma Assert (False
1471 or else NT (N).Nkind = N_Block_Statement);
1473 end Is_Asynchronous_Call_Block;
1475 function Is_Component_Left_Opnd
1476 (N : Node_Id) return Boolean is
1478 pragma Assert (False
1479 or else NT (N).Nkind = N_Op_Concat);
1481 end Is_Component_Left_Opnd;
1483 function Is_Component_Right_Opnd
1484 (N : Node_Id) return Boolean is
1486 pragma Assert (False
1487 or else NT (N).Nkind = N_Op_Concat);
1489 end Is_Component_Right_Opnd;
1491 function Is_Controlling_Actual
1492 (N : Node_Id) return Boolean is
1494 pragma Assert (False
1495 or else NT (N).Nkind in N_Subexpr);
1497 end Is_Controlling_Actual;
1499 function Is_In_Discriminant_Check
1500 (N : Node_Id) return Boolean is
1502 pragma Assert (False
1503 or else NT (N).Nkind = N_Selected_Component);
1505 end Is_In_Discriminant_Check;
1507 function Is_Machine_Number
1508 (N : Node_Id) return Boolean is
1510 pragma Assert (False
1511 or else NT (N).Nkind = N_Real_Literal);
1513 end Is_Machine_Number;
1515 function Is_Null_Loop
1516 (N : Node_Id) return Boolean is
1518 pragma Assert (False
1519 or else NT (N).Nkind = N_Loop_Statement);
1523 function Is_Overloaded
1524 (N : Node_Id) return Boolean is
1526 pragma Assert (False
1527 or else NT (N).Nkind in N_Subexpr);
1531 function Is_Power_Of_2_For_Shift
1532 (N : Node_Id) return Boolean is
1534 pragma Assert (False
1535 or else NT (N).Nkind = N_Op_Expon);
1537 end Is_Power_Of_2_For_Shift;
1539 function Is_Protected_Subprogram_Body
1540 (N : Node_Id) return Boolean is
1542 pragma Assert (False
1543 or else NT (N).Nkind = N_Subprogram_Body);
1545 end Is_Protected_Subprogram_Body;
1547 function Is_Static_Expression
1548 (N : Node_Id) return Boolean is
1550 pragma Assert (False
1551 or else NT (N).Nkind in N_Subexpr);
1553 end Is_Static_Expression;
1555 function Is_Subprogram_Descriptor
1556 (N : Node_Id) return Boolean is
1558 pragma Assert (False
1559 or else NT (N).Nkind = N_Object_Declaration);
1561 end Is_Subprogram_Descriptor;
1563 function Is_Task_Allocation_Block
1564 (N : Node_Id) return Boolean is
1566 pragma Assert (False
1567 or else NT (N).Nkind = N_Block_Statement);
1569 end Is_Task_Allocation_Block;
1571 function Is_Task_Master
1572 (N : Node_Id) return Boolean is
1574 pragma Assert (False
1575 or else NT (N).Nkind = N_Block_Statement
1576 or else NT (N).Nkind = N_Subprogram_Body
1577 or else NT (N).Nkind = N_Task_Body);
1581 function Iteration_Scheme
1582 (N : Node_Id) return Node_Id is
1584 pragma Assert (False
1585 or else NT (N).Nkind = N_Loop_Statement);
1587 end Iteration_Scheme;
1590 (N : Node_Id) return Node_Id is
1592 pragma Assert (False
1593 or else NT (N).Nkind = N_Itype_Reference);
1597 function Kill_Range_Check
1598 (N : Node_Id) return Boolean is
1600 pragma Assert (False
1601 or else NT (N).Nkind = N_Unchecked_Type_Conversion);
1603 end Kill_Range_Check;
1605 function Label_Construct
1606 (N : Node_Id) return Node_Id is
1608 pragma Assert (False
1609 or else NT (N).Nkind = N_Implicit_Label_Declaration);
1611 end Label_Construct;
1614 (N : Node_Id) return Node_Id is
1616 pragma Assert (False
1617 or else NT (N).Nkind = N_Component_Clause);
1622 (N : Node_Id) return Boolean is
1624 pragma Assert (False
1625 or else NT (N).Nkind = N_With_Clause);
1630 (N : Node_Id) return Node_Id is
1632 pragma Assert (False
1633 or else NT (N).Nkind = N_And_Then
1634 or else NT (N).Nkind = N_In
1635 or else NT (N).Nkind = N_Not_In
1636 or else NT (N).Nkind = N_Or_Else
1637 or else NT (N).Nkind in N_Binary_Op);
1641 function Library_Unit
1642 (N : Node_Id) return Node_Id is
1644 pragma Assert (False
1645 or else NT (N).Nkind = N_Compilation_Unit
1646 or else NT (N).Nkind = N_Package_Body_Stub
1647 or else NT (N).Nkind = N_Protected_Body_Stub
1648 or else NT (N).Nkind = N_Subprogram_Body_Stub
1649 or else NT (N).Nkind = N_Task_Body_Stub
1650 or else NT (N).Nkind = N_With_Clause);
1654 function Limited_View_Installed
1655 (N : Node_Id) return Boolean is
1657 pragma Assert (False
1658 or else NT (N).Nkind = N_Package_Specification
1659 or else NT (N).Nkind = N_With_Clause);
1661 end Limited_View_Installed;
1663 function Limited_Present
1664 (N : Node_Id) return Boolean is
1666 pragma Assert (False
1667 or else NT (N).Nkind = N_Derived_Type_Definition
1668 or else NT (N).Nkind = N_Formal_Private_Type_Definition
1669 or else NT (N).Nkind = N_Private_Type_Declaration
1670 or else NT (N).Nkind = N_Record_Definition
1671 or else NT (N).Nkind = N_With_Clause);
1673 end Limited_Present;
1676 (N : Node_Id) return List_Id is
1678 pragma Assert (False
1679 or else NT (N).Nkind = N_Enumeration_Type_Definition);
1683 function Loop_Actions
1684 (N : Node_Id) return List_Id is
1686 pragma Assert (False
1687 or else NT (N).Nkind = N_Component_Association);
1691 function Loop_Parameter_Specification
1692 (N : Node_Id) return Node_Id is
1694 pragma Assert (False
1695 or else NT (N).Nkind = N_Iteration_Scheme);
1697 end Loop_Parameter_Specification;
1700 (N : Node_Id) return Node_Id is
1702 pragma Assert (False
1703 or else NT (N).Nkind = N_Range
1704 or else NT (N).Nkind = N_Real_Range_Specification
1705 or else NT (N).Nkind = N_Signed_Integer_Type_Definition);
1710 (N : Node_Id) return Node_Id is
1712 pragma Assert (False
1713 or else NT (N).Nkind = N_Record_Representation_Clause);
1718 (N : Node_Id) return Boolean is
1720 pragma Assert (False
1721 or else NT (N).Nkind = N_Component_Declaration
1722 or else NT (N).Nkind = N_Discriminant_Specification
1723 or else NT (N).Nkind = N_Exception_Declaration
1724 or else NT (N).Nkind = N_Formal_Object_Declaration
1725 or else NT (N).Nkind = N_Number_Declaration
1726 or else NT (N).Nkind = N_Object_Declaration
1727 or else NT (N).Nkind = N_Parameter_Specification);
1731 function Must_Be_Byte_Aligned
1732 (N : Node_Id) return Boolean is
1734 pragma Assert (False
1735 or else NT (N).Nkind = N_Attribute_Reference);
1737 end Must_Be_Byte_Aligned;
1739 function Must_Not_Freeze
1740 (N : Node_Id) return Boolean is
1742 pragma Assert (False
1743 or else NT (N).Nkind = N_Subtype_Indication
1744 or else NT (N).Nkind in N_Subexpr);
1746 end Must_Not_Freeze;
1749 (N : Node_Id) return Node_Id is
1751 pragma Assert (False
1752 or else NT (N).Nkind = N_Assignment_Statement
1753 or else NT (N).Nkind = N_Attribute_Definition_Clause
1754 or else NT (N).Nkind = N_Defining_Program_Unit_Name
1755 or else NT (N).Nkind = N_Designator
1756 or else NT (N).Nkind = N_Entry_Call_Statement
1757 or else NT (N).Nkind = N_Exception_Renaming_Declaration
1758 or else NT (N).Nkind = N_Exit_Statement
1759 or else NT (N).Nkind = N_Formal_Package_Declaration
1760 or else NT (N).Nkind = N_Function_Call
1761 or else NT (N).Nkind = N_Function_Instantiation
1762 or else NT (N).Nkind = N_Generic_Function_Renaming_Declaration
1763 or else NT (N).Nkind = N_Generic_Package_Renaming_Declaration
1764 or else NT (N).Nkind = N_Generic_Procedure_Renaming_Declaration
1765 or else NT (N).Nkind = N_Goto_Statement
1766 or else NT (N).Nkind = N_Object_Renaming_Declaration
1767 or else NT (N).Nkind = N_Package_Instantiation
1768 or else NT (N).Nkind = N_Package_Renaming_Declaration
1769 or else NT (N).Nkind = N_Procedure_Call_Statement
1770 or else NT (N).Nkind = N_Procedure_Instantiation
1771 or else NT (N).Nkind = N_Raise_Statement
1772 or else NT (N).Nkind = N_Requeue_Statement
1773 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration
1774 or else NT (N).Nkind = N_Subunit
1775 or else NT (N).Nkind = N_Variant_Part
1776 or else NT (N).Nkind = N_With_Clause
1777 or else NT (N).Nkind = N_With_Type_Clause);
1782 (N : Node_Id) return List_Id is
1784 pragma Assert (False
1785 or else NT (N).Nkind = N_Abort_Statement
1786 or else NT (N).Nkind = N_Use_Package_Clause);
1790 function Next_Entity
1791 (N : Node_Id) return Node_Id is
1793 pragma Assert (False
1794 or else NT (N).Nkind = N_Defining_Character_Literal
1795 or else NT (N).Nkind = N_Defining_Identifier
1796 or else NT (N).Nkind = N_Defining_Operator_Symbol);
1800 function Next_Named_Actual
1801 (N : Node_Id) return Node_Id is
1803 pragma Assert (False
1804 or else NT (N).Nkind = N_Parameter_Association);
1806 end Next_Named_Actual;
1808 function Next_Rep_Item
1809 (N : Node_Id) return Node_Id is
1811 pragma Assert (False
1812 or else NT (N).Nkind = N_Attribute_Definition_Clause
1813 or else NT (N).Nkind = N_Enumeration_Representation_Clause
1814 or else NT (N).Nkind = N_Pragma
1815 or else NT (N).Nkind = N_Record_Representation_Clause);
1819 function Next_Use_Clause
1820 (N : Node_Id) return Node_Id is
1822 pragma Assert (False
1823 or else NT (N).Nkind = N_Use_Package_Clause
1824 or else NT (N).Nkind = N_Use_Type_Clause);
1826 end Next_Use_Clause;
1828 function No_Ctrl_Actions
1829 (N : Node_Id) return Boolean is
1831 pragma Assert (False
1832 or else NT (N).Nkind = N_Assignment_Statement);
1834 end No_Ctrl_Actions;
1836 function No_Elaboration_Check
1837 (N : Node_Id) return Boolean is
1839 pragma Assert (False
1840 or else NT (N).Nkind = N_Function_Call
1841 or else NT (N).Nkind = N_Procedure_Call_Statement);
1843 end No_Elaboration_Check;
1845 function No_Entities_Ref_In_Spec
1846 (N : Node_Id) return Boolean is
1848 pragma Assert (False
1849 or else NT (N).Nkind = N_With_Clause);
1851 end No_Entities_Ref_In_Spec;
1853 function No_Initialization
1854 (N : Node_Id) return Boolean is
1856 pragma Assert (False
1857 or else NT (N).Nkind = N_Allocator
1858 or else NT (N).Nkind = N_Object_Declaration);
1860 end No_Initialization;
1862 function No_Truncation
1863 (N : Node_Id) return Boolean is
1865 pragma Assert (False
1866 or else NT (N).Nkind = N_Unchecked_Type_Conversion);
1870 function Null_Present
1871 (N : Node_Id) return Boolean is
1873 pragma Assert (False
1874 or else NT (N).Nkind = N_Component_List
1875 or else NT (N).Nkind = N_Record_Definition);
1879 function Null_Exclusion_Present
1880 (N : Node_Id) return Boolean is
1882 pragma Assert (False
1883 or else NT (N).Nkind = N_Access_Definition
1884 or else NT (N).Nkind = N_Access_Function_Definition
1885 or else NT (N).Nkind = N_Access_Procedure_Definition
1886 or else NT (N).Nkind = N_Access_To_Object_Definition
1887 or else NT (N).Nkind = N_Allocator
1888 or else NT (N).Nkind = N_Component_Definition
1889 or else NT (N).Nkind = N_Derived_Type_Definition
1890 or else NT (N).Nkind = N_Discriminant_Specification
1891 or else NT (N).Nkind = N_Object_Declaration
1892 or else NT (N).Nkind = N_Parameter_Specification
1893 or else NT (N).Nkind = N_Subtype_Declaration);
1895 end Null_Exclusion_Present;
1897 function Null_Record_Present
1898 (N : Node_Id) return Boolean is
1900 pragma Assert (False
1901 or else NT (N).Nkind = N_Aggregate
1902 or else NT (N).Nkind = N_Extension_Aggregate);
1904 end Null_Record_Present;
1906 function Object_Definition
1907 (N : Node_Id) return Node_Id is
1909 pragma Assert (False
1910 or else NT (N).Nkind = N_Object_Declaration);
1912 end Object_Definition;
1914 function Original_Discriminant
1915 (N : Node_Id) return Node_Id is
1917 pragma Assert (False
1918 or else NT (N).Nkind = N_Identifier);
1920 end Original_Discriminant;
1922 function Original_Entity
1923 (N : Node_Id) return Entity_Id is
1925 pragma Assert (False
1926 or else NT (N).Nkind = N_Integer_Literal
1927 or else NT (N).Nkind = N_Real_Literal);
1929 end Original_Entity;
1931 function Others_Discrete_Choices
1932 (N : Node_Id) return List_Id is
1934 pragma Assert (False
1935 or else NT (N).Nkind = N_Others_Choice);
1937 end Others_Discrete_Choices;
1939 function Out_Present
1940 (N : Node_Id) return Boolean is
1942 pragma Assert (False
1943 or else NT (N).Nkind = N_Formal_Object_Declaration
1944 or else NT (N).Nkind = N_Parameter_Specification);
1948 function Parameter_Associations
1949 (N : Node_Id) return List_Id is
1951 pragma Assert (False
1952 or else NT (N).Nkind = N_Entry_Call_Statement
1953 or else NT (N).Nkind = N_Function_Call
1954 or else NT (N).Nkind = N_Procedure_Call_Statement);
1956 end Parameter_Associations;
1958 function Parameter_List_Truncated
1959 (N : Node_Id) return Boolean is
1961 pragma Assert (False
1962 or else NT (N).Nkind = N_Function_Call
1963 or else NT (N).Nkind = N_Procedure_Call_Statement);
1965 end Parameter_List_Truncated;
1967 function Parameter_Specifications
1968 (N : Node_Id) return List_Id is
1970 pragma Assert (False
1971 or else NT (N).Nkind = N_Accept_Statement
1972 or else NT (N).Nkind = N_Access_Function_Definition
1973 or else NT (N).Nkind = N_Access_Procedure_Definition
1974 or else NT (N).Nkind = N_Entry_Body_Formal_Part
1975 or else NT (N).Nkind = N_Entry_Declaration
1976 or else NT (N).Nkind = N_Function_Specification
1977 or else NT (N).Nkind = N_Procedure_Specification);
1979 end Parameter_Specifications;
1981 function Parameter_Type
1982 (N : Node_Id) return Node_Id is
1984 pragma Assert (False
1985 or else NT (N).Nkind = N_Parameter_Specification);
1989 function Parent_Spec
1990 (N : Node_Id) return Node_Id is
1992 pragma Assert (False
1993 or else NT (N).Nkind = N_Function_Instantiation
1994 or else NT (N).Nkind = N_Generic_Function_Renaming_Declaration
1995 or else NT (N).Nkind = N_Generic_Package_Declaration
1996 or else NT (N).Nkind = N_Generic_Package_Renaming_Declaration
1997 or else NT (N).Nkind = N_Generic_Procedure_Renaming_Declaration
1998 or else NT (N).Nkind = N_Generic_Subprogram_Declaration
1999 or else NT (N).Nkind = N_Package_Declaration
2000 or else NT (N).Nkind = N_Package_Instantiation
2001 or else NT (N).Nkind = N_Package_Renaming_Declaration
2002 or else NT (N).Nkind = N_Procedure_Instantiation
2003 or else NT (N).Nkind = N_Subprogram_Declaration
2004 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration);
2009 (N : Node_Id) return Node_Id is
2011 pragma Assert (False
2012 or else NT (N).Nkind = N_Component_Clause);
2016 function Pragma_Argument_Associations
2017 (N : Node_Id) return List_Id is
2019 pragma Assert (False
2020 or else NT (N).Nkind = N_Pragma);
2022 end Pragma_Argument_Associations;
2024 function Pragmas_After
2025 (N : Node_Id) return List_Id is
2027 pragma Assert (False
2028 or else NT (N).Nkind = N_Compilation_Unit_Aux
2029 or else NT (N).Nkind = N_Terminate_Alternative);
2033 function Pragmas_Before
2034 (N : Node_Id) return List_Id is
2036 pragma Assert (False
2037 or else NT (N).Nkind = N_Accept_Alternative
2038 or else NT (N).Nkind = N_Delay_Alternative
2039 or else NT (N).Nkind = N_Entry_Call_Alternative
2040 or else NT (N).Nkind = N_Mod_Clause
2041 or else NT (N).Nkind = N_Terminate_Alternative
2042 or else NT (N).Nkind = N_Triggering_Alternative);
2047 (N : Node_Id) return Node_Id is
2049 pragma Assert (False
2050 or else NT (N).Nkind = N_Attribute_Reference
2051 or else NT (N).Nkind = N_Expanded_Name
2052 or else NT (N).Nkind = N_Explicit_Dereference
2053 or else NT (N).Nkind = N_Indexed_Component
2054 or else NT (N).Nkind = N_Reference
2055 or else NT (N).Nkind = N_Selected_Component
2056 or else NT (N).Nkind = N_Slice);
2060 function Present_Expr
2061 (N : Node_Id) return Uint is
2063 pragma Assert (False
2064 or else NT (N).Nkind = N_Variant);
2069 (N : Node_Id) return Boolean is
2071 pragma Assert (False
2072 or else NT (N).Nkind = N_Component_Declaration
2073 or else NT (N).Nkind = N_Discriminant_Specification
2074 or else NT (N).Nkind = N_Exception_Declaration
2075 or else NT (N).Nkind = N_Formal_Object_Declaration
2076 or else NT (N).Nkind = N_Number_Declaration
2077 or else NT (N).Nkind = N_Object_Declaration
2078 or else NT (N).Nkind = N_Parameter_Specification);
2082 function Print_In_Hex
2083 (N : Node_Id) return Boolean is
2085 pragma Assert (False
2086 or else NT (N).Nkind = N_Integer_Literal);
2090 function Private_Declarations
2091 (N : Node_Id) return List_Id is
2093 pragma Assert (False
2094 or else NT (N).Nkind = N_Package_Specification
2095 or else NT (N).Nkind = N_Protected_Definition
2096 or else NT (N).Nkind = N_Task_Definition);
2098 end Private_Declarations;
2100 function Private_Present
2101 (N : Node_Id) return Boolean is
2103 pragma Assert (False
2104 or else NT (N).Nkind = N_Compilation_Unit
2105 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
2106 or else NT (N).Nkind = N_With_Clause);
2108 end Private_Present;
2110 function Procedure_To_Call
2111 (N : Node_Id) return Node_Id is
2113 pragma Assert (False
2114 or else NT (N).Nkind = N_Allocator
2115 or else NT (N).Nkind = N_Free_Statement
2116 or else NT (N).Nkind = N_Return_Statement);
2118 end Procedure_To_Call;
2120 function Proper_Body
2121 (N : Node_Id) return Node_Id is
2123 pragma Assert (False
2124 or else NT (N).Nkind = N_Subunit);
2128 function Protected_Definition
2129 (N : Node_Id) return Node_Id is
2131 pragma Assert (False
2132 or else NT (N).Nkind = N_Protected_Type_Declaration
2133 or else NT (N).Nkind = N_Single_Protected_Declaration);
2135 end Protected_Definition;
2137 function Protected_Present
2138 (N : Node_Id) return Boolean is
2140 pragma Assert (False
2141 or else NT (N).Nkind = N_Access_Function_Definition
2142 or else NT (N).Nkind = N_Access_Procedure_Definition
2143 or else NT (N).Nkind = N_Derived_Type_Definition
2144 or else NT (N).Nkind = N_Record_Definition);
2146 end Protected_Present;
2148 function Raises_Constraint_Error
2149 (N : Node_Id) return Boolean is
2151 pragma Assert (False
2152 or else NT (N).Nkind in N_Subexpr);
2154 end Raises_Constraint_Error;
2156 function Range_Constraint
2157 (N : Node_Id) return Node_Id is
2159 pragma Assert (False
2160 or else NT (N).Nkind = N_Delta_Constraint
2161 or else NT (N).Nkind = N_Digits_Constraint);
2163 end Range_Constraint;
2165 function Range_Expression
2166 (N : Node_Id) return Node_Id is
2168 pragma Assert (False
2169 or else NT (N).Nkind = N_Range_Constraint);
2171 end Range_Expression;
2173 function Real_Range_Specification
2174 (N : Node_Id) return Node_Id is
2176 pragma Assert (False
2177 or else NT (N).Nkind = N_Decimal_Fixed_Point_Definition
2178 or else NT (N).Nkind = N_Floating_Point_Definition
2179 or else NT (N).Nkind = N_Ordinary_Fixed_Point_Definition);
2181 end Real_Range_Specification;
2184 (N : Node_Id) return Ureal is
2186 pragma Assert (False
2187 or else NT (N).Nkind = N_Real_Literal);
2192 (N : Node_Id) return Uint is
2194 pragma Assert (False
2195 or else NT (N).Nkind = N_Raise_Constraint_Error
2196 or else NT (N).Nkind = N_Raise_Program_Error
2197 or else NT (N).Nkind = N_Raise_Storage_Error);
2201 function Record_Extension_Part
2202 (N : Node_Id) return Node_Id is
2204 pragma Assert (False
2205 or else NT (N).Nkind = N_Derived_Type_Definition);
2207 end Record_Extension_Part;
2209 function Redundant_Use
2210 (N : Node_Id) return Boolean is
2212 pragma Assert (False
2213 or else NT (N).Nkind = N_Attribute_Reference
2214 or else NT (N).Nkind = N_Expanded_Name
2215 or else NT (N).Nkind = N_Identifier);
2219 function Return_Type
2220 (N : Node_Id) return Node_Id is
2222 pragma Assert (False
2223 or else NT (N).Nkind = N_Return_Statement);
2227 function Reverse_Present
2228 (N : Node_Id) return Boolean is
2230 pragma Assert (False
2231 or else NT (N).Nkind = N_Loop_Parameter_Specification);
2233 end Reverse_Present;
2236 (N : Node_Id) return Node_Id is
2238 pragma Assert (False
2239 or else NT (N).Nkind in N_Op
2240 or else NT (N).Nkind = N_And_Then
2241 or else NT (N).Nkind = N_In
2242 or else NT (N).Nkind = N_Not_In
2243 or else NT (N).Nkind = N_Or_Else);
2247 function Rounded_Result
2248 (N : Node_Id) return Boolean is
2250 pragma Assert (False
2251 or else NT (N).Nkind = N_Op_Divide
2252 or else NT (N).Nkind = N_Op_Multiply
2253 or else NT (N).Nkind = N_Type_Conversion);
2258 (N : Node_Id) return Node_Id is
2260 pragma Assert (False
2261 or else NT (N).Nkind = N_Defining_Character_Literal
2262 or else NT (N).Nkind = N_Defining_Identifier
2263 or else NT (N).Nkind = N_Defining_Operator_Symbol);
2267 function Select_Alternatives
2268 (N : Node_Id) return List_Id is
2270 pragma Assert (False
2271 or else NT (N).Nkind = N_Selective_Accept);
2273 end Select_Alternatives;
2275 function Selector_Name
2276 (N : Node_Id) return Node_Id is
2278 pragma Assert (False
2279 or else NT (N).Nkind = N_Expanded_Name
2280 or else NT (N).Nkind = N_Generic_Association
2281 or else NT (N).Nkind = N_Parameter_Association
2282 or else NT (N).Nkind = N_Selected_Component);
2286 function Selector_Names
2287 (N : Node_Id) return List_Id is
2289 pragma Assert (False
2290 or else NT (N).Nkind = N_Discriminant_Association);
2294 function Shift_Count_OK
2295 (N : Node_Id) return Boolean is
2297 pragma Assert (False
2298 or else NT (N).Nkind = N_Op_Rotate_Left
2299 or else NT (N).Nkind = N_Op_Rotate_Right
2300 or else NT (N).Nkind = N_Op_Shift_Left
2301 or else NT (N).Nkind = N_Op_Shift_Right
2302 or else NT (N).Nkind = N_Op_Shift_Right_Arithmetic);
2306 function Source_Type
2307 (N : Node_Id) return Entity_Id is
2309 pragma Assert (False
2310 or else NT (N).Nkind = N_Validate_Unchecked_Conversion);
2314 function Specification
2315 (N : Node_Id) return Node_Id is
2317 pragma Assert (False
2318 or else NT (N).Nkind = N_Abstract_Subprogram_Declaration
2319 or else NT (N).Nkind = N_Formal_Abstract_Subprogram_Declaration
2320 or else NT (N).Nkind = N_Formal_Concrete_Subprogram_Declaration
2321 or else NT (N).Nkind = N_Generic_Package_Declaration
2322 or else NT (N).Nkind = N_Generic_Subprogram_Declaration
2323 or else NT (N).Nkind = N_Package_Declaration
2324 or else NT (N).Nkind = N_Subprogram_Body
2325 or else NT (N).Nkind = N_Subprogram_Body_Stub
2326 or else NT (N).Nkind = N_Subprogram_Declaration
2327 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration);
2332 (N : Node_Id) return List_Id is
2334 pragma Assert (False
2335 or else NT (N).Nkind = N_Abortable_Part
2336 or else NT (N).Nkind = N_Accept_Alternative
2337 or else NT (N).Nkind = N_Case_Statement_Alternative
2338 or else NT (N).Nkind = N_Delay_Alternative
2339 or else NT (N).Nkind = N_Entry_Call_Alternative
2340 or else NT (N).Nkind = N_Exception_Handler
2341 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements
2342 or else NT (N).Nkind = N_Loop_Statement
2343 or else NT (N).Nkind = N_Triggering_Alternative);
2347 function Static_Processing_OK
2348 (N : Node_Id) return Boolean is
2350 pragma Assert (False
2351 or else NT (N).Nkind = N_Aggregate);
2353 end Static_Processing_OK;
2355 function Storage_Pool
2356 (N : Node_Id) return Node_Id is
2358 pragma Assert (False
2359 or else NT (N).Nkind = N_Allocator
2360 or else NT (N).Nkind = N_Free_Statement
2361 or else NT (N).Nkind = N_Return_Statement);
2366 (N : Node_Id) return String_Id is
2368 pragma Assert (False
2369 or else NT (N).Nkind = N_Operator_Symbol
2370 or else NT (N).Nkind = N_String_Literal);
2374 function Subtype_Indication
2375 (N : Node_Id) return Node_Id is
2377 pragma Assert (False
2378 or else NT (N).Nkind = N_Access_To_Object_Definition
2379 or else NT (N).Nkind = N_Component_Definition
2380 or else NT (N).Nkind = N_Derived_Type_Definition
2381 or else NT (N).Nkind = N_Private_Extension_Declaration
2382 or else NT (N).Nkind = N_Subtype_Declaration);
2384 end Subtype_Indication;
2386 function Subtype_Mark
2387 (N : Node_Id) return Node_Id is
2389 pragma Assert (False
2390 or else NT (N).Nkind = N_Access_Definition
2391 or else NT (N).Nkind = N_Access_Function_Definition
2392 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
2393 or else NT (N).Nkind = N_Formal_Object_Declaration
2394 or else NT (N).Nkind = N_Function_Specification
2395 or else NT (N).Nkind = N_Object_Renaming_Declaration
2396 or else NT (N).Nkind = N_Qualified_Expression
2397 or else NT (N).Nkind = N_Subtype_Indication
2398 or else NT (N).Nkind = N_Type_Conversion
2399 or else NT (N).Nkind = N_Unchecked_Type_Conversion);
2403 function Subtype_Marks
2404 (N : Node_Id) return List_Id is
2406 pragma Assert (False
2407 or else NT (N).Nkind = N_Unconstrained_Array_Definition
2408 or else NT (N).Nkind = N_Use_Type_Clause);
2412 function Synchronized_Present
2413 (N : Node_Id) return Boolean is
2415 pragma Assert (False
2416 or else NT (N).Nkind = N_Derived_Type_Definition
2417 or else NT (N).Nkind = N_Record_Definition);
2419 end Synchronized_Present;
2421 function Tagged_Present
2422 (N : Node_Id) return Boolean is
2424 pragma Assert (False
2425 or else NT (N).Nkind = N_Formal_Private_Type_Definition
2426 or else NT (N).Nkind = N_Private_Type_Declaration
2427 or else NT (N).Nkind = N_Record_Definition
2428 or else NT (N).Nkind = N_With_Type_Clause);
2432 function Target_Type
2433 (N : Node_Id) return Entity_Id is
2435 pragma Assert (False
2436 or else NT (N).Nkind = N_Validate_Unchecked_Conversion);
2440 function Task_Definition
2441 (N : Node_Id) return Node_Id is
2443 pragma Assert (False
2444 or else NT (N).Nkind = N_Single_Task_Declaration
2445 or else NT (N).Nkind = N_Task_Type_Declaration);
2447 end Task_Definition;
2449 function Task_Present
2450 (N : Node_Id) return Boolean is
2452 pragma Assert (False
2453 or else NT (N).Nkind = N_Derived_Type_Definition
2454 or else NT (N).Nkind = N_Record_Definition);
2458 function Then_Actions
2459 (N : Node_Id) return List_Id is
2461 pragma Assert (False
2462 or else NT (N).Nkind = N_Conditional_Expression);
2466 function Then_Statements
2467 (N : Node_Id) return List_Id is
2469 pragma Assert (False
2470 or else NT (N).Nkind = N_Elsif_Part
2471 or else NT (N).Nkind = N_If_Statement);
2473 end Then_Statements;
2475 function Treat_Fixed_As_Integer
2476 (N : Node_Id) return Boolean is
2478 pragma Assert (False
2479 or else NT (N).Nkind = N_Op_Divide
2480 or else NT (N).Nkind = N_Op_Mod
2481 or else NT (N).Nkind = N_Op_Multiply
2482 or else NT (N).Nkind = N_Op_Rem);
2484 end Treat_Fixed_As_Integer;
2486 function Triggering_Alternative
2487 (N : Node_Id) return Node_Id is
2489 pragma Assert (False
2490 or else NT (N).Nkind = N_Asynchronous_Select);
2492 end Triggering_Alternative;
2494 function Triggering_Statement
2495 (N : Node_Id) return Node_Id is
2497 pragma Assert (False
2498 or else NT (N).Nkind = N_Triggering_Alternative);
2500 end Triggering_Statement;
2503 (N : Node_Id) return Elist_Id is
2505 pragma Assert (False
2506 or else NT (N).Nkind = N_Freeze_Entity);
2510 function Type_Definition
2511 (N : Node_Id) return Node_Id is
2513 pragma Assert (False
2514 or else NT (N).Nkind = N_Full_Type_Declaration);
2516 end Type_Definition;
2519 (N : Node_Id) return Node_Id is
2521 pragma Assert (False
2522 or else NT (N).Nkind = N_Compilation_Unit);
2526 function Unknown_Discriminants_Present
2527 (N : Node_Id) return Boolean is
2529 pragma Assert (False
2530 or else NT (N).Nkind = N_Formal_Type_Declaration
2531 or else NT (N).Nkind = N_Incomplete_Type_Declaration
2532 or else NT (N).Nkind = N_Private_Extension_Declaration
2533 or else NT (N).Nkind = N_Private_Type_Declaration);
2535 end Unknown_Discriminants_Present;
2537 function Unreferenced_In_Spec
2538 (N : Node_Id) return Boolean is
2540 pragma Assert (False
2541 or else NT (N).Nkind = N_With_Clause);
2543 end Unreferenced_In_Spec;
2545 function Variant_Part
2546 (N : Node_Id) return Node_Id is
2548 pragma Assert (False
2549 or else NT (N).Nkind = N_Component_List);
2554 (N : Node_Id) return List_Id is
2556 pragma Assert (False
2557 or else NT (N).Nkind = N_Variant_Part);
2561 function Visible_Declarations
2562 (N : Node_Id) return List_Id is
2564 pragma Assert (False
2565 or else NT (N).Nkind = N_Package_Specification
2566 or else NT (N).Nkind = N_Protected_Definition
2567 or else NT (N).Nkind = N_Task_Definition);
2569 end Visible_Declarations;
2571 function Was_Originally_Stub
2572 (N : Node_Id) return Boolean is
2574 pragma Assert (False
2575 or else NT (N).Nkind = N_Package_Body
2576 or else NT (N).Nkind = N_Protected_Body
2577 or else NT (N).Nkind = N_Subprogram_Body
2578 or else NT (N).Nkind = N_Task_Body);
2580 end Was_Originally_Stub;
2582 function Zero_Cost_Handling
2583 (N : Node_Id) return Boolean is
2585 pragma Assert (False
2586 or else NT (N).Nkind = N_Exception_Handler
2587 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements);
2589 end Zero_Cost_Handling;
2591 --------------------------
2592 -- Field Set Procedures --
2593 --------------------------
2595 procedure Set_ABE_Is_Certain
2596 (N : Node_Id; Val : Boolean := True) is
2598 pragma Assert (False
2599 or else NT (N).Nkind = N_Formal_Package_Declaration
2600 or else NT (N).Nkind = N_Function_Call
2601 or else NT (N).Nkind = N_Function_Instantiation
2602 or else NT (N).Nkind = N_Package_Instantiation
2603 or else NT (N).Nkind = N_Procedure_Call_Statement
2604 or else NT (N).Nkind = N_Procedure_Instantiation);
2605 Set_Flag18 (N, Val);
2606 end Set_ABE_Is_Certain;
2608 procedure Set_Abort_Present
2609 (N : Node_Id; Val : Boolean := True) is
2611 pragma Assert (False
2612 or else NT (N).Nkind = N_Requeue_Statement);
2613 Set_Flag15 (N, Val);
2614 end Set_Abort_Present;
2616 procedure Set_Abortable_Part
2617 (N : Node_Id; Val : Node_Id) is
2619 pragma Assert (False
2620 or else NT (N).Nkind = N_Asynchronous_Select);
2621 Set_Node2_With_Parent (N, Val);
2622 end Set_Abortable_Part;
2624 procedure Set_Abstract_Present
2625 (N : Node_Id; Val : Boolean := True) is
2627 pragma Assert (False
2628 or else NT (N).Nkind = N_Derived_Type_Definition
2629 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
2630 or else NT (N).Nkind = N_Formal_Private_Type_Definition
2631 or else NT (N).Nkind = N_Private_Extension_Declaration
2632 or else NT (N).Nkind = N_Private_Type_Declaration
2633 or else NT (N).Nkind = N_Record_Definition);
2635 end Set_Abstract_Present;
2637 procedure Set_Accept_Handler_Records
2638 (N : Node_Id; Val : List_Id) is
2640 pragma Assert (False
2641 or else NT (N).Nkind = N_Accept_Alternative);
2642 Set_List5 (N, Val); -- semantic field, no parent set
2643 end Set_Accept_Handler_Records;
2645 procedure Set_Accept_Statement
2646 (N : Node_Id; Val : Node_Id) is
2648 pragma Assert (False
2649 or else NT (N).Nkind = N_Accept_Alternative);
2650 Set_Node2_With_Parent (N, Val);
2651 end Set_Accept_Statement;
2653 procedure Set_Access_Definition
2654 (N : Node_Id; Val : Node_Id) is
2656 pragma Assert (False
2657 or else NT (N).Nkind = N_Component_Definition
2658 or else NT (N).Nkind = N_Object_Renaming_Declaration);
2659 Set_Node3_With_Parent (N, Val);
2660 end Set_Access_Definition;
2662 procedure Set_Access_To_Subprogram_Definition
2663 (N : Node_Id; Val : Node_Id) is
2665 pragma Assert (False
2666 or else NT (N).Nkind = N_Access_Definition);
2667 Set_Node3_With_Parent (N, Val);
2668 end Set_Access_To_Subprogram_Definition;
2670 procedure Set_Access_Types_To_Process
2671 (N : Node_Id; Val : Elist_Id) is
2673 pragma Assert (False
2674 or else NT (N).Nkind = N_Freeze_Entity);
2675 Set_Elist2 (N, Val); -- semantic field, no parent set
2676 end Set_Access_Types_To_Process;
2678 procedure Set_Actions
2679 (N : Node_Id; Val : List_Id) is
2681 pragma Assert (False
2682 or else NT (N).Nkind = N_And_Then
2683 or else NT (N).Nkind = N_Compilation_Unit_Aux
2684 or else NT (N).Nkind = N_Freeze_Entity
2685 or else NT (N).Nkind = N_Or_Else);
2686 Set_List1_With_Parent (N, Val);
2689 procedure Set_Activation_Chain_Entity
2690 (N : Node_Id; Val : Node_Id) is
2692 pragma Assert (False
2693 or else NT (N).Nkind = N_Block_Statement
2694 or else NT (N).Nkind = N_Entry_Body
2695 or else NT (N).Nkind = N_Generic_Package_Declaration
2696 or else NT (N).Nkind = N_Package_Declaration
2697 or else NT (N).Nkind = N_Subprogram_Body
2698 or else NT (N).Nkind = N_Task_Body);
2699 Set_Node3 (N, Val); -- semantic field, no parent set
2700 end Set_Activation_Chain_Entity;
2702 procedure Set_Acts_As_Spec
2703 (N : Node_Id; Val : Boolean := True) is
2705 pragma Assert (False
2706 or else NT (N).Nkind = N_Compilation_Unit
2707 or else NT (N).Nkind = N_Subprogram_Body);
2709 end Set_Acts_As_Spec;
2711 procedure Set_Aggregate_Bounds
2712 (N : Node_Id; Val : Node_Id) is
2714 pragma Assert (False
2715 or else NT (N).Nkind = N_Aggregate);
2716 Set_Node3 (N, Val); -- semantic field, no parent set
2717 end Set_Aggregate_Bounds;
2719 procedure Set_Aliased_Present
2720 (N : Node_Id; Val : Boolean := True) is
2722 pragma Assert (False
2723 or else NT (N).Nkind = N_Component_Definition
2724 or else NT (N).Nkind = N_Object_Declaration);
2726 end Set_Aliased_Present;
2728 procedure Set_All_Others
2729 (N : Node_Id; Val : Boolean := True) is
2731 pragma Assert (False
2732 or else NT (N).Nkind = N_Others_Choice);
2733 Set_Flag11 (N, Val);
2736 procedure Set_All_Present
2737 (N : Node_Id; Val : Boolean := True) is
2739 pragma Assert (False
2740 or else NT (N).Nkind = N_Access_Definition
2741 or else NT (N).Nkind = N_Access_To_Object_Definition);
2742 Set_Flag15 (N, Val);
2743 end Set_All_Present;
2745 procedure Set_Alternatives
2746 (N : Node_Id; Val : List_Id) is
2748 pragma Assert (False
2749 or else NT (N).Nkind = N_Case_Statement);
2750 Set_List4_With_Parent (N, Val);
2751 end Set_Alternatives;
2753 procedure Set_Ancestor_Part
2754 (N : Node_Id; Val : Node_Id) is
2756 pragma Assert (False
2757 or else NT (N).Nkind = N_Extension_Aggregate);
2758 Set_Node3_With_Parent (N, Val);
2759 end Set_Ancestor_Part;
2761 procedure Set_Array_Aggregate
2762 (N : Node_Id; Val : Node_Id) is
2764 pragma Assert (False
2765 or else NT (N).Nkind = N_Enumeration_Representation_Clause);
2766 Set_Node3_With_Parent (N, Val);
2767 end Set_Array_Aggregate;
2769 procedure Set_Assignment_OK
2770 (N : Node_Id; Val : Boolean := True) is
2772 pragma Assert (False
2773 or else NT (N).Nkind = N_Object_Declaration
2774 or else NT (N).Nkind in N_Subexpr);
2775 Set_Flag15 (N, Val);
2776 end Set_Assignment_OK;
2778 procedure Set_Associated_Node
2779 (N : Node_Id; Val : Node_Id) is
2781 pragma Assert (False
2782 or else NT (N).Nkind in N_Has_Entity
2783 or else NT (N).Nkind = N_Aggregate
2784 or else NT (N).Nkind = N_Extension_Aggregate
2785 or else NT (N).Nkind = N_Selected_Component);
2786 Set_Node4 (N, Val); -- semantic field, no parent set
2787 end Set_Associated_Node;
2789 procedure Set_At_End_Proc
2790 (N : Node_Id; Val : Node_Id) is
2792 pragma Assert (False
2793 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements);
2795 end Set_At_End_Proc;
2797 procedure Set_Attribute_Name
2798 (N : Node_Id; Val : Name_Id) is
2800 pragma Assert (False
2801 or else NT (N).Nkind = N_Attribute_Reference);
2803 end Set_Attribute_Name;
2805 procedure Set_Aux_Decls_Node
2806 (N : Node_Id; Val : Node_Id) is
2808 pragma Assert (False
2809 or else NT (N).Nkind = N_Compilation_Unit);
2810 Set_Node5_With_Parent (N, Val);
2811 end Set_Aux_Decls_Node;
2813 procedure Set_Backwards_OK
2814 (N : Node_Id; Val : Boolean := True) is
2816 pragma Assert (False
2817 or else NT (N).Nkind = N_Assignment_Statement);
2819 end Set_Backwards_OK;
2821 procedure Set_Bad_Is_Detected
2822 (N : Node_Id; Val : Boolean := True) is
2824 pragma Assert (False
2825 or else NT (N).Nkind = N_Subprogram_Body);
2826 Set_Flag15 (N, Val);
2827 end Set_Bad_Is_Detected;
2829 procedure Set_Body_Required
2830 (N : Node_Id; Val : Boolean := True) is
2832 pragma Assert (False
2833 or else NT (N).Nkind = N_Compilation_Unit);
2834 Set_Flag13 (N, Val);
2835 end Set_Body_Required;
2837 procedure Set_Body_To_Inline
2838 (N : Node_Id; Val : Node_Id) is
2840 pragma Assert (False
2841 or else NT (N).Nkind = N_Subprogram_Declaration);
2843 end Set_Body_To_Inline;
2845 procedure Set_Box_Present
2846 (N : Node_Id; Val : Boolean := True) is
2848 pragma Assert (False
2849 or else NT (N).Nkind = N_Component_Association
2850 or else NT (N).Nkind = N_Formal_Abstract_Subprogram_Declaration
2851 or else NT (N).Nkind = N_Formal_Concrete_Subprogram_Declaration
2852 or else NT (N).Nkind = N_Formal_Package_Declaration);
2853 Set_Flag15 (N, Val);
2854 end Set_Box_Present;
2856 procedure Set_By_Ref
2857 (N : Node_Id; Val : Boolean := True) is
2859 pragma Assert (False
2860 or else NT (N).Nkind = N_Return_Statement);
2864 procedure Set_Char_Literal_Value
2865 (N : Node_Id; Val : Uint) is
2867 pragma Assert (False
2868 or else NT (N).Nkind = N_Character_Literal);
2870 end Set_Char_Literal_Value;
2873 (N : Node_Id; Val : Name_Id) is
2875 pragma Assert (False
2876 or else NT (N).Nkind in N_Has_Chars);
2880 procedure Set_Check_Address_Alignment
2881 (N : Node_Id; Val : Boolean := True) is
2883 pragma Assert (False
2884 or else NT (N).Nkind = N_Attribute_Definition_Clause);
2885 Set_Flag11 (N, Val);
2886 end Set_Check_Address_Alignment;
2888 procedure Set_Choice_Parameter
2889 (N : Node_Id; Val : Node_Id) is
2891 pragma Assert (False
2892 or else NT (N).Nkind = N_Exception_Handler);
2893 Set_Node2_With_Parent (N, Val);
2894 end Set_Choice_Parameter;
2896 procedure Set_Choices
2897 (N : Node_Id; Val : List_Id) is
2899 pragma Assert (False
2900 or else NT (N).Nkind = N_Component_Association);
2901 Set_List1_With_Parent (N, Val);
2904 procedure Set_Compile_Time_Known_Aggregate
2905 (N : Node_Id; Val : Boolean := True) is
2907 pragma Assert (False
2908 or else NT (N).Nkind = N_Aggregate);
2909 Set_Flag18 (N, Val);
2910 end Set_Compile_Time_Known_Aggregate;
2912 procedure Set_Component_Associations
2913 (N : Node_Id; Val : List_Id) is
2915 pragma Assert (False
2916 or else NT (N).Nkind = N_Aggregate
2917 or else NT (N).Nkind = N_Extension_Aggregate);
2918 Set_List2_With_Parent (N, Val);
2919 end Set_Component_Associations;
2921 procedure Set_Component_Clauses
2922 (N : Node_Id; Val : List_Id) is
2924 pragma Assert (False
2925 or else NT (N).Nkind = N_Record_Representation_Clause);
2926 Set_List3_With_Parent (N, Val);
2927 end Set_Component_Clauses;
2929 procedure Set_Component_Definition
2930 (N : Node_Id; Val : Node_Id) is
2932 pragma Assert (False
2933 or else NT (N).Nkind = N_Component_Declaration
2934 or else NT (N).Nkind = N_Constrained_Array_Definition
2935 or else NT (N).Nkind = N_Unconstrained_Array_Definition);
2936 Set_Node4_With_Parent (N, Val);
2937 end Set_Component_Definition;
2939 procedure Set_Component_Items
2940 (N : Node_Id; Val : List_Id) is
2942 pragma Assert (False
2943 or else NT (N).Nkind = N_Component_List);
2944 Set_List3_With_Parent (N, Val);
2945 end Set_Component_Items;
2947 procedure Set_Component_List
2948 (N : Node_Id; Val : Node_Id) is
2950 pragma Assert (False
2951 or else NT (N).Nkind = N_Record_Definition
2952 or else NT (N).Nkind = N_Variant);
2953 Set_Node1_With_Parent (N, Val);
2954 end Set_Component_List;
2956 procedure Set_Component_Name
2957 (N : Node_Id; Val : Node_Id) is
2959 pragma Assert (False
2960 or else NT (N).Nkind = N_Component_Clause);
2961 Set_Node1_With_Parent (N, Val);
2962 end Set_Component_Name;
2964 procedure Set_Condition
2965 (N : Node_Id; Val : Node_Id) is
2967 pragma Assert (False
2968 or else NT (N).Nkind = N_Accept_Alternative
2969 or else NT (N).Nkind = N_Delay_Alternative
2970 or else NT (N).Nkind = N_Elsif_Part
2971 or else NT (N).Nkind = N_Entry_Body_Formal_Part
2972 or else NT (N).Nkind = N_Exit_Statement
2973 or else NT (N).Nkind = N_If_Statement
2974 or else NT (N).Nkind = N_Iteration_Scheme
2975 or else NT (N).Nkind = N_Raise_Constraint_Error
2976 or else NT (N).Nkind = N_Raise_Program_Error
2977 or else NT (N).Nkind = N_Raise_Storage_Error
2978 or else NT (N).Nkind = N_Terminate_Alternative);
2979 Set_Node1_With_Parent (N, Val);
2982 procedure Set_Condition_Actions
2983 (N : Node_Id; Val : List_Id) is
2985 pragma Assert (False
2986 or else NT (N).Nkind = N_Elsif_Part
2987 or else NT (N).Nkind = N_Iteration_Scheme);
2988 Set_List3 (N, Val); -- semantic field, no parent set
2989 end Set_Condition_Actions;
2991 procedure Set_Config_Pragmas
2992 (N : Node_Id; Val : List_Id) is
2994 pragma Assert (False
2995 or else NT (N).Nkind = N_Compilation_Unit_Aux);
2996 Set_List4_With_Parent (N, Val);
2997 end Set_Config_Pragmas;
2999 procedure Set_Constant_Present
3000 (N : Node_Id; Val : Boolean := True) is
3002 pragma Assert (False
3003 or else NT (N).Nkind = N_Access_Definition
3004 or else NT (N).Nkind = N_Access_To_Object_Definition
3005 or else NT (N).Nkind = N_Object_Declaration);
3006 Set_Flag17 (N, Val);
3007 end Set_Constant_Present;
3009 procedure Set_Constraint
3010 (N : Node_Id; Val : Node_Id) is
3012 pragma Assert (False
3013 or else NT (N).Nkind = N_Subtype_Indication);
3014 Set_Node3_With_Parent (N, Val);
3017 procedure Set_Constraints
3018 (N : Node_Id; Val : List_Id) is
3020 pragma Assert (False
3021 or else NT (N).Nkind = N_Index_Or_Discriminant_Constraint);
3022 Set_List1_With_Parent (N, Val);
3023 end Set_Constraints;
3025 procedure Set_Context_Installed
3026 (N : Node_Id; Val : Boolean := True) is
3028 pragma Assert (False
3029 or else NT (N).Nkind = N_With_Clause);
3030 Set_Flag13 (N, Val);
3031 end Set_Context_Installed;
3033 procedure Set_Context_Items
3034 (N : Node_Id; Val : List_Id) is
3036 pragma Assert (False
3037 or else NT (N).Nkind = N_Compilation_Unit);
3038 Set_List1_With_Parent (N, Val);
3039 end Set_Context_Items;
3041 procedure Set_Controlling_Argument
3042 (N : Node_Id; Val : Node_Id) is
3044 pragma Assert (False
3045 or else NT (N).Nkind = N_Function_Call
3046 or else NT (N).Nkind = N_Procedure_Call_Statement);
3047 Set_Node1 (N, Val); -- semantic field, no parent set
3048 end Set_Controlling_Argument;
3050 procedure Set_Conversion_OK
3051 (N : Node_Id; Val : Boolean := True) is
3053 pragma Assert (False
3054 or else NT (N).Nkind = N_Type_Conversion);
3055 Set_Flag14 (N, Val);
3056 end Set_Conversion_OK;
3058 procedure Set_Corresponding_Body
3059 (N : Node_Id; Val : Node_Id) is
3061 pragma Assert (False
3062 or else NT (N).Nkind = N_Entry_Declaration
3063 or else NT (N).Nkind = N_Generic_Package_Declaration
3064 or else NT (N).Nkind = N_Generic_Subprogram_Declaration
3065 or else NT (N).Nkind = N_Package_Body_Stub
3066 or else NT (N).Nkind = N_Package_Declaration
3067 or else NT (N).Nkind = N_Protected_Body_Stub
3068 or else NT (N).Nkind = N_Protected_Type_Declaration
3069 or else NT (N).Nkind = N_Subprogram_Body_Stub
3070 or else NT (N).Nkind = N_Subprogram_Declaration
3071 or else NT (N).Nkind = N_Task_Body_Stub
3072 or else NT (N).Nkind = N_Task_Type_Declaration);
3073 Set_Node5 (N, Val); -- semantic field, no parent set
3074 end Set_Corresponding_Body;
3076 procedure Set_Corresponding_Formal_Spec
3077 (N : Node_Id; Val : Node_Id) is
3079 pragma Assert (False
3080 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration);
3081 Set_Node3 (N, Val); -- semantic field, no parent set
3082 end Set_Corresponding_Formal_Spec;
3084 procedure Set_Corresponding_Generic_Association
3085 (N : Node_Id; Val : Node_Id) is
3087 pragma Assert (False
3088 or else NT (N).Nkind = N_Object_Declaration
3089 or else NT (N).Nkind = N_Object_Renaming_Declaration);
3090 Set_Node5 (N, Val); -- semantic field, no parent set
3091 end Set_Corresponding_Generic_Association;
3093 procedure Set_Corresponding_Integer_Value
3094 (N : Node_Id; Val : Uint) is
3096 pragma Assert (False
3097 or else NT (N).Nkind = N_Real_Literal);
3098 Set_Uint4 (N, Val); -- semantic field, no parent set
3099 end Set_Corresponding_Integer_Value;
3101 procedure Set_Corresponding_Spec
3102 (N : Node_Id; Val : Node_Id) is
3104 pragma Assert (False
3105 or else NT (N).Nkind = N_Package_Body
3106 or else NT (N).Nkind = N_Protected_Body
3107 or else NT (N).Nkind = N_Subprogram_Body
3108 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration
3109 or else NT (N).Nkind = N_Task_Body
3110 or else NT (N).Nkind = N_With_Clause);
3111 Set_Node5 (N, Val); -- semantic field, no parent set
3112 end Set_Corresponding_Spec;
3114 procedure Set_Corresponding_Stub
3115 (N : Node_Id; Val : Node_Id) is
3117 pragma Assert (False
3118 or else NT (N).Nkind = N_Subunit);
3120 end Set_Corresponding_Stub;
3122 procedure Set_Dcheck_Function
3123 (N : Node_Id; Val : Entity_Id) is
3125 pragma Assert (False
3126 or else NT (N).Nkind = N_Variant);
3127 Set_Node5 (N, Val); -- semantic field, no parent set
3128 end Set_Dcheck_Function;
3130 procedure Set_Debug_Statement
3131 (N : Node_Id; Val : Node_Id) is
3133 pragma Assert (False
3134 or else NT (N).Nkind = N_Pragma);
3135 Set_Node3_With_Parent (N, Val);
3136 end Set_Debug_Statement;
3138 procedure Set_Declarations
3139 (N : Node_Id; Val : List_Id) is
3141 pragma Assert (False
3142 or else NT (N).Nkind = N_Accept_Statement
3143 or else NT (N).Nkind = N_Block_Statement
3144 or else NT (N).Nkind = N_Compilation_Unit_Aux
3145 or else NT (N).Nkind = N_Entry_Body
3146 or else NT (N).Nkind = N_Package_Body
3147 or else NT (N).Nkind = N_Protected_Body
3148 or else NT (N).Nkind = N_Subprogram_Body
3149 or else NT (N).Nkind = N_Task_Body);
3150 Set_List2_With_Parent (N, Val);
3151 end Set_Declarations;
3153 procedure Set_Default_Expression
3154 (N : Node_Id; Val : Node_Id) is
3156 pragma Assert (False
3157 or else NT (N).Nkind = N_Parameter_Specification);
3158 Set_Node5 (N, Val); -- semantic field, no parent set
3159 end Set_Default_Expression;
3161 procedure Set_Default_Name
3162 (N : Node_Id; Val : Node_Id) is
3164 pragma Assert (False
3165 or else NT (N).Nkind = N_Formal_Abstract_Subprogram_Declaration
3166 or else NT (N).Nkind = N_Formal_Concrete_Subprogram_Declaration);
3167 Set_Node2_With_Parent (N, Val);
3168 end Set_Default_Name;
3170 procedure Set_Defining_Identifier
3171 (N : Node_Id; Val : Entity_Id) is
3173 pragma Assert (False
3174 or else NT (N).Nkind = N_Component_Declaration
3175 or else NT (N).Nkind = N_Defining_Program_Unit_Name
3176 or else NT (N).Nkind = N_Discriminant_Specification
3177 or else NT (N).Nkind = N_Entry_Body
3178 or else NT (N).Nkind = N_Entry_Declaration
3179 or else NT (N).Nkind = N_Entry_Index_Specification
3180 or else NT (N).Nkind = N_Exception_Declaration
3181 or else NT (N).Nkind = N_Exception_Renaming_Declaration
3182 or else NT (N).Nkind = N_Formal_Object_Declaration
3183 or else NT (N).Nkind = N_Formal_Package_Declaration
3184 or else NT (N).Nkind = N_Formal_Type_Declaration
3185 or else NT (N).Nkind = N_Full_Type_Declaration
3186 or else NT (N).Nkind = N_Implicit_Label_Declaration
3187 or else NT (N).Nkind = N_Incomplete_Type_Declaration
3188 or else NT (N).Nkind = N_Loop_Parameter_Specification
3189 or else NT (N).Nkind = N_Number_Declaration
3190 or else NT (N).Nkind = N_Object_Declaration
3191 or else NT (N).Nkind = N_Object_Renaming_Declaration
3192 or else NT (N).Nkind = N_Package_Body_Stub
3193 or else NT (N).Nkind = N_Parameter_Specification
3194 or else NT (N).Nkind = N_Private_Extension_Declaration
3195 or else NT (N).Nkind = N_Private_Type_Declaration
3196 or else NT (N).Nkind = N_Protected_Body
3197 or else NT (N).Nkind = N_Protected_Body_Stub
3198 or else NT (N).Nkind = N_Protected_Type_Declaration
3199 or else NT (N).Nkind = N_Single_Protected_Declaration
3200 or else NT (N).Nkind = N_Single_Task_Declaration
3201 or else NT (N).Nkind = N_Subtype_Declaration
3202 or else NT (N).Nkind = N_Task_Body
3203 or else NT (N).Nkind = N_Task_Body_Stub
3204 or else NT (N).Nkind = N_Task_Type_Declaration);
3205 Set_Node1_With_Parent (N, Val);
3206 end Set_Defining_Identifier;
3208 procedure Set_Defining_Unit_Name
3209 (N : Node_Id; Val : Node_Id) is
3211 pragma Assert (False
3212 or else NT (N).Nkind = N_Function_Instantiation
3213 or else NT (N).Nkind = N_Function_Specification
3214 or else NT (N).Nkind = N_Generic_Function_Renaming_Declaration
3215 or else NT (N).Nkind = N_Generic_Package_Renaming_Declaration
3216 or else NT (N).Nkind = N_Generic_Procedure_Renaming_Declaration
3217 or else NT (N).Nkind = N_Package_Body
3218 or else NT (N).Nkind = N_Package_Instantiation
3219 or else NT (N).Nkind = N_Package_Renaming_Declaration
3220 or else NT (N).Nkind = N_Package_Specification
3221 or else NT (N).Nkind = N_Procedure_Instantiation
3222 or else NT (N).Nkind = N_Procedure_Specification);
3223 Set_Node1_With_Parent (N, Val);
3224 end Set_Defining_Unit_Name;
3226 procedure Set_Delay_Alternative
3227 (N : Node_Id; Val : Node_Id) is
3229 pragma Assert (False
3230 or else NT (N).Nkind = N_Timed_Entry_Call);
3231 Set_Node4_With_Parent (N, Val);
3232 end Set_Delay_Alternative;
3234 procedure Set_Delay_Finalize_Attach
3235 (N : Node_Id; Val : Boolean := True) is
3237 pragma Assert (False
3238 or else NT (N).Nkind = N_Object_Declaration);
3239 Set_Flag14 (N, Val);
3240 end Set_Delay_Finalize_Attach;
3242 procedure Set_Delay_Statement
3243 (N : Node_Id; Val : Node_Id) is
3245 pragma Assert (False
3246 or else NT (N).Nkind = N_Delay_Alternative);
3247 Set_Node2_With_Parent (N, Val);
3248 end Set_Delay_Statement;
3250 procedure Set_Delta_Expression
3251 (N : Node_Id; Val : Node_Id) is
3253 pragma Assert (False
3254 or else NT (N).Nkind = N_Decimal_Fixed_Point_Definition
3255 or else NT (N).Nkind = N_Delta_Constraint
3256 or else NT (N).Nkind = N_Ordinary_Fixed_Point_Definition);
3257 Set_Node3_With_Parent (N, Val);
3258 end Set_Delta_Expression;
3260 procedure Set_Digits_Expression
3261 (N : Node_Id; Val : Node_Id) is
3263 pragma Assert (False
3264 or else NT (N).Nkind = N_Decimal_Fixed_Point_Definition
3265 or else NT (N).Nkind = N_Digits_Constraint
3266 or else NT (N).Nkind = N_Floating_Point_Definition);
3267 Set_Node2_With_Parent (N, Val);
3268 end Set_Digits_Expression;
3270 procedure Set_Discr_Check_Funcs_Built
3271 (N : Node_Id; Val : Boolean := True) is
3273 pragma Assert (False
3274 or else NT (N).Nkind = N_Full_Type_Declaration);
3275 Set_Flag11 (N, Val);
3276 end Set_Discr_Check_Funcs_Built;
3278 procedure Set_Discrete_Choices
3279 (N : Node_Id; Val : List_Id) is
3281 pragma Assert (False
3282 or else NT (N).Nkind = N_Case_Statement_Alternative
3283 or else NT (N).Nkind = N_Variant);
3284 Set_List4_With_Parent (N, Val);
3285 end Set_Discrete_Choices;
3287 procedure Set_Discrete_Range
3288 (N : Node_Id; Val : Node_Id) is
3290 pragma Assert (False
3291 or else NT (N).Nkind = N_Slice);
3292 Set_Node4_With_Parent (N, Val);
3293 end Set_Discrete_Range;
3295 procedure Set_Discrete_Subtype_Definition
3296 (N : Node_Id; Val : Node_Id) is
3298 pragma Assert (False
3299 or else NT (N).Nkind = N_Entry_Declaration
3300 or else NT (N).Nkind = N_Entry_Index_Specification
3301 or else NT (N).Nkind = N_Loop_Parameter_Specification);
3302 Set_Node4_With_Parent (N, Val);
3303 end Set_Discrete_Subtype_Definition;
3305 procedure Set_Discrete_Subtype_Definitions
3306 (N : Node_Id; Val : List_Id) is
3308 pragma Assert (False
3309 or else NT (N).Nkind = N_Constrained_Array_Definition);
3310 Set_List2_With_Parent (N, Val);
3311 end Set_Discrete_Subtype_Definitions;
3313 procedure Set_Discriminant_Specifications
3314 (N : Node_Id; Val : List_Id) is
3316 pragma Assert (False
3317 or else NT (N).Nkind = N_Formal_Type_Declaration
3318 or else NT (N).Nkind = N_Full_Type_Declaration
3319 or else NT (N).Nkind = N_Incomplete_Type_Declaration
3320 or else NT (N).Nkind = N_Private_Extension_Declaration
3321 or else NT (N).Nkind = N_Private_Type_Declaration
3322 or else NT (N).Nkind = N_Protected_Type_Declaration
3323 or else NT (N).Nkind = N_Task_Type_Declaration);
3324 Set_List4_With_Parent (N, Val);
3325 end Set_Discriminant_Specifications;
3327 procedure Set_Discriminant_Type
3328 (N : Node_Id; Val : Node_Id) is
3330 pragma Assert (False
3331 or else NT (N).Nkind = N_Discriminant_Specification);
3332 Set_Node5_With_Parent (N, Val);
3333 end Set_Discriminant_Type;
3335 procedure Set_Do_Accessibility_Check
3336 (N : Node_Id; Val : Boolean := True) is
3338 pragma Assert (False
3339 or else NT (N).Nkind = N_Parameter_Specification);
3340 Set_Flag13 (N, Val);
3341 end Set_Do_Accessibility_Check;
3343 procedure Set_Do_Discriminant_Check
3344 (N : Node_Id; Val : Boolean := True) is
3346 pragma Assert (False
3347 or else NT (N).Nkind = N_Selected_Component);
3348 Set_Flag13 (N, Val);
3349 end Set_Do_Discriminant_Check;
3351 procedure Set_Do_Division_Check
3352 (N : Node_Id; Val : Boolean := True) is
3354 pragma Assert (False
3355 or else NT (N).Nkind = N_Op_Divide
3356 or else NT (N).Nkind = N_Op_Mod
3357 or else NT (N).Nkind = N_Op_Rem);
3358 Set_Flag13 (N, Val);
3359 end Set_Do_Division_Check;
3361 procedure Set_Do_Length_Check
3362 (N : Node_Id; Val : Boolean := True) is
3364 pragma Assert (False
3365 or else NT (N).Nkind = N_Assignment_Statement
3366 or else NT (N).Nkind = N_Op_And
3367 or else NT (N).Nkind = N_Op_Or
3368 or else NT (N).Nkind = N_Op_Xor
3369 or else NT (N).Nkind = N_Type_Conversion);
3371 end Set_Do_Length_Check;
3373 procedure Set_Do_Overflow_Check
3374 (N : Node_Id; Val : Boolean := True) is
3376 pragma Assert (False
3377 or else NT (N).Nkind in N_Op
3378 or else NT (N).Nkind = N_Attribute_Reference
3379 or else NT (N).Nkind = N_Type_Conversion);
3380 Set_Flag17 (N, Val);
3381 end Set_Do_Overflow_Check;
3383 procedure Set_Do_Range_Check
3384 (N : Node_Id; Val : Boolean := True) is
3386 pragma Assert (False
3387 or else NT (N).Nkind in N_Subexpr);
3389 end Set_Do_Range_Check;
3391 procedure Set_Do_Storage_Check
3392 (N : Node_Id; Val : Boolean := True) is
3394 pragma Assert (False
3395 or else NT (N).Nkind = N_Allocator
3396 or else NT (N).Nkind = N_Subprogram_Body);
3397 Set_Flag17 (N, Val);
3398 end Set_Do_Storage_Check;
3400 procedure Set_Do_Tag_Check
3401 (N : Node_Id; Val : Boolean := True) is
3403 pragma Assert (False
3404 or else NT (N).Nkind = N_Assignment_Statement
3405 or else NT (N).Nkind = N_Function_Call
3406 or else NT (N).Nkind = N_Procedure_Call_Statement
3407 or else NT (N).Nkind = N_Return_Statement
3408 or else NT (N).Nkind = N_Type_Conversion);
3409 Set_Flag13 (N, Val);
3410 end Set_Do_Tag_Check;
3412 procedure Set_Elaborate_All_Present
3413 (N : Node_Id; Val : Boolean := True) is
3415 pragma Assert (False
3416 or else NT (N).Nkind = N_With_Clause);
3417 Set_Flag14 (N, Val);
3418 end Set_Elaborate_All_Present;
3420 procedure Set_Elaborate_Present
3421 (N : Node_Id; Val : Boolean := True) is
3423 pragma Assert (False
3424 or else NT (N).Nkind = N_With_Clause);
3426 end Set_Elaborate_Present;
3428 procedure Set_Elaboration_Boolean
3429 (N : Node_Id; Val : Node_Id) is
3431 pragma Assert (False
3432 or else NT (N).Nkind = N_Function_Specification
3433 or else NT (N).Nkind = N_Procedure_Specification);
3435 end Set_Elaboration_Boolean;
3437 procedure Set_Else_Actions
3438 (N : Node_Id; Val : List_Id) is
3440 pragma Assert (False
3441 or else NT (N).Nkind = N_Conditional_Expression);
3442 Set_List3 (N, Val); -- semantic field, no parent set
3443 end Set_Else_Actions;
3445 procedure Set_Else_Statements
3446 (N : Node_Id; Val : List_Id) is
3448 pragma Assert (False
3449 or else NT (N).Nkind = N_Conditional_Entry_Call
3450 or else NT (N).Nkind = N_If_Statement
3451 or else NT (N).Nkind = N_Selective_Accept);
3452 Set_List4_With_Parent (N, Val);
3453 end Set_Else_Statements;
3455 procedure Set_Elsif_Parts
3456 (N : Node_Id; Val : List_Id) is
3458 pragma Assert (False
3459 or else NT (N).Nkind = N_If_Statement);
3460 Set_List3_With_Parent (N, Val);
3461 end Set_Elsif_Parts;
3463 procedure Set_Enclosing_Variant
3464 (N : Node_Id; Val : Node_Id) is
3466 pragma Assert (False
3467 or else NT (N).Nkind = N_Variant);
3468 Set_Node2 (N, Val); -- semantic field, no parent set
3469 end Set_Enclosing_Variant;
3471 procedure Set_End_Label
3472 (N : Node_Id; Val : Node_Id) is
3474 pragma Assert (False
3475 or else NT (N).Nkind = N_Enumeration_Type_Definition
3476 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements
3477 or else NT (N).Nkind = N_Loop_Statement
3478 or else NT (N).Nkind = N_Package_Specification
3479 or else NT (N).Nkind = N_Protected_Body
3480 or else NT (N).Nkind = N_Protected_Definition
3481 or else NT (N).Nkind = N_Record_Definition
3482 or else NT (N).Nkind = N_Task_Definition);
3483 Set_Node4_With_Parent (N, Val);
3486 procedure Set_End_Span
3487 (N : Node_Id; Val : Uint) is
3489 pragma Assert (False
3490 or else NT (N).Nkind = N_Case_Statement
3491 or else NT (N).Nkind = N_If_Statement);
3495 procedure Set_Entity
3496 (N : Node_Id; Val : Node_Id) is
3498 pragma Assert (False
3499 or else NT (N).Nkind in N_Has_Entity
3500 or else NT (N).Nkind = N_Freeze_Entity);
3501 Set_Node4 (N, Val); -- semantic field, no parent set
3504 procedure Set_Entry_Body_Formal_Part
3505 (N : Node_Id; Val : Node_Id) is
3507 pragma Assert (False
3508 or else NT (N).Nkind = N_Entry_Body);
3509 Set_Node5_With_Parent (N, Val);
3510 end Set_Entry_Body_Formal_Part;
3512 procedure Set_Entry_Call_Alternative
3513 (N : Node_Id; Val : Node_Id) is
3515 pragma Assert (False
3516 or else NT (N).Nkind = N_Conditional_Entry_Call
3517 or else NT (N).Nkind = N_Timed_Entry_Call);
3518 Set_Node1_With_Parent (N, Val);
3519 end Set_Entry_Call_Alternative;
3521 procedure Set_Entry_Call_Statement
3522 (N : Node_Id; Val : Node_Id) is
3524 pragma Assert (False
3525 or else NT (N).Nkind = N_Entry_Call_Alternative);
3526 Set_Node1_With_Parent (N, Val);
3527 end Set_Entry_Call_Statement;
3529 procedure Set_Entry_Direct_Name
3530 (N : Node_Id; Val : Node_Id) is
3532 pragma Assert (False
3533 or else NT (N).Nkind = N_Accept_Statement);
3534 Set_Node1_With_Parent (N, Val);
3535 end Set_Entry_Direct_Name;
3537 procedure Set_Entry_Index
3538 (N : Node_Id; Val : Node_Id) is
3540 pragma Assert (False
3541 or else NT (N).Nkind = N_Accept_Statement);
3542 Set_Node5_With_Parent (N, Val);
3543 end Set_Entry_Index;
3545 procedure Set_Entry_Index_Specification
3546 (N : Node_Id; Val : Node_Id) is
3548 pragma Assert (False
3549 or else NT (N).Nkind = N_Entry_Body_Formal_Part);
3550 Set_Node4_With_Parent (N, Val);
3551 end Set_Entry_Index_Specification;
3554 (N : Node_Id; Val : Node_Id) is
3556 pragma Assert (False
3557 or else NT (N).Nkind in N_Has_Etype);
3558 Set_Node5 (N, Val); -- semantic field, no parent set
3561 procedure Set_Exception_Choices
3562 (N : Node_Id; Val : List_Id) is
3564 pragma Assert (False
3565 or else NT (N).Nkind = N_Exception_Handler);
3566 Set_List4_With_Parent (N, Val);
3567 end Set_Exception_Choices;
3569 procedure Set_Exception_Handlers
3570 (N : Node_Id; Val : List_Id) is
3572 pragma Assert (False
3573 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements);
3574 Set_List5_With_Parent (N, Val);
3575 end Set_Exception_Handlers;
3577 procedure Set_Exception_Junk
3578 (N : Node_Id; Val : Boolean := True) is
3580 pragma Assert (False
3581 or else NT (N).Nkind = N_Goto_Statement
3582 or else NT (N).Nkind = N_Label
3583 or else NT (N).Nkind = N_Object_Declaration
3584 or else NT (N).Nkind = N_Subtype_Declaration);
3586 end Set_Exception_Junk;
3588 procedure Set_Expansion_Delayed
3589 (N : Node_Id; Val : Boolean := True) is
3591 pragma Assert (False
3592 or else NT (N).Nkind = N_Aggregate
3593 or else NT (N).Nkind = N_Extension_Aggregate);
3594 Set_Flag11 (N, Val);
3595 end Set_Expansion_Delayed;
3597 procedure Set_Explicit_Actual_Parameter
3598 (N : Node_Id; Val : Node_Id) is
3600 pragma Assert (False
3601 or else NT (N).Nkind = N_Parameter_Association);
3602 Set_Node3_With_Parent (N, Val);
3603 end Set_Explicit_Actual_Parameter;
3605 procedure Set_Explicit_Generic_Actual_Parameter
3606 (N : Node_Id; Val : Node_Id) is
3608 pragma Assert (False
3609 or else NT (N).Nkind = N_Generic_Association);
3610 Set_Node1_With_Parent (N, Val);
3611 end Set_Explicit_Generic_Actual_Parameter;
3613 procedure Set_Expression
3614 (N : Node_Id; Val : Node_Id) is
3616 pragma Assert (False
3617 or else NT (N).Nkind = N_Allocator
3618 or else NT (N).Nkind = N_Assignment_Statement
3619 or else NT (N).Nkind = N_At_Clause
3620 or else NT (N).Nkind = N_Attribute_Definition_Clause
3621 or else NT (N).Nkind = N_Case_Statement
3622 or else NT (N).Nkind = N_Code_Statement
3623 or else NT (N).Nkind = N_Component_Association
3624 or else NT (N).Nkind = N_Component_Declaration
3625 or else NT (N).Nkind = N_Delay_Relative_Statement
3626 or else NT (N).Nkind = N_Delay_Until_Statement
3627 or else NT (N).Nkind = N_Discriminant_Association
3628 or else NT (N).Nkind = N_Discriminant_Specification
3629 or else NT (N).Nkind = N_Exception_Declaration
3630 or else NT (N).Nkind = N_Formal_Object_Declaration
3631 or else NT (N).Nkind = N_Free_Statement
3632 or else NT (N).Nkind = N_Mod_Clause
3633 or else NT (N).Nkind = N_Modular_Type_Definition
3634 or else NT (N).Nkind = N_Number_Declaration
3635 or else NT (N).Nkind = N_Object_Declaration
3636 or else NT (N).Nkind = N_Parameter_Specification
3637 or else NT (N).Nkind = N_Pragma_Argument_Association
3638 or else NT (N).Nkind = N_Qualified_Expression
3639 or else NT (N).Nkind = N_Raise_Statement
3640 or else NT (N).Nkind = N_Return_Statement
3641 or else NT (N).Nkind = N_Type_Conversion
3642 or else NT (N).Nkind = N_Unchecked_Expression
3643 or else NT (N).Nkind = N_Unchecked_Type_Conversion);
3644 Set_Node3_With_Parent (N, Val);
3647 procedure Set_Expressions
3648 (N : Node_Id; Val : List_Id) is
3650 pragma Assert (False
3651 or else NT (N).Nkind = N_Aggregate
3652 or else NT (N).Nkind = N_Attribute_Reference
3653 or else NT (N).Nkind = N_Conditional_Expression
3654 or else NT (N).Nkind = N_Extension_Aggregate
3655 or else NT (N).Nkind = N_Indexed_Component);
3656 Set_List1_With_Parent (N, Val);
3657 end Set_Expressions;
3659 procedure Set_First_Bit
3660 (N : Node_Id; Val : Node_Id) is
3662 pragma Assert (False
3663 or else NT (N).Nkind = N_Component_Clause);
3664 Set_Node3_With_Parent (N, Val);
3667 procedure Set_First_Inlined_Subprogram
3668 (N : Node_Id; Val : Entity_Id) is
3670 pragma Assert (False
3671 or else NT (N).Nkind = N_Compilation_Unit);
3672 Set_Node3 (N, Val); -- semantic field, no parent set
3673 end Set_First_Inlined_Subprogram;
3675 procedure Set_First_Name
3676 (N : Node_Id; Val : Boolean := True) is
3678 pragma Assert (False
3679 or else NT (N).Nkind = N_With_Clause);
3683 procedure Set_First_Named_Actual
3684 (N : Node_Id; Val : Node_Id) is
3686 pragma Assert (False
3687 or else NT (N).Nkind = N_Entry_Call_Statement
3688 or else NT (N).Nkind = N_Function_Call
3689 or else NT (N).Nkind = N_Procedure_Call_Statement);
3690 Set_Node4 (N, Val); -- semantic field, no parent set
3691 end Set_First_Named_Actual;
3693 procedure Set_First_Real_Statement
3694 (N : Node_Id; Val : Node_Id) is
3696 pragma Assert (False
3697 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements);
3698 Set_Node2 (N, Val); -- semantic field, no parent set
3699 end Set_First_Real_Statement;
3701 procedure Set_First_Subtype_Link
3702 (N : Node_Id; Val : Entity_Id) is
3704 pragma Assert (False
3705 or else NT (N).Nkind = N_Freeze_Entity);
3706 Set_Node5 (N, Val); -- semantic field, no parent set
3707 end Set_First_Subtype_Link;
3709 procedure Set_Float_Truncate
3710 (N : Node_Id; Val : Boolean := True) is
3712 pragma Assert (False
3713 or else NT (N).Nkind = N_Type_Conversion);
3714 Set_Flag11 (N, Val);
3715 end Set_Float_Truncate;
3717 procedure Set_Formal_Type_Definition
3718 (N : Node_Id; Val : Node_Id) is
3720 pragma Assert (False
3721 or else NT (N).Nkind = N_Formal_Type_Declaration);
3722 Set_Node3_With_Parent (N, Val);
3723 end Set_Formal_Type_Definition;
3725 procedure Set_Forwards_OK
3726 (N : Node_Id; Val : Boolean := True) is
3728 pragma Assert (False
3729 or else NT (N).Nkind = N_Assignment_Statement);
3731 end Set_Forwards_OK;
3733 procedure Set_From_At_Mod
3734 (N : Node_Id; Val : Boolean := True) is
3736 pragma Assert (False
3737 or else NT (N).Nkind = N_Attribute_Definition_Clause);
3739 end Set_From_At_Mod;
3741 procedure Set_From_Default
3742 (N : Node_Id; Val : Boolean := True) is
3744 pragma Assert (False
3745 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration);
3747 end Set_From_Default;
3749 procedure Set_Generic_Associations
3750 (N : Node_Id; Val : List_Id) is
3752 pragma Assert (False
3753 or else NT (N).Nkind = N_Formal_Package_Declaration
3754 or else NT (N).Nkind = N_Function_Instantiation
3755 or else NT (N).Nkind = N_Package_Instantiation
3756 or else NT (N).Nkind = N_Procedure_Instantiation);
3757 Set_List3_With_Parent (N, Val);
3758 end Set_Generic_Associations;
3760 procedure Set_Generic_Formal_Declarations
3761 (N : Node_Id; Val : List_Id) is
3763 pragma Assert (False
3764 or else NT (N).Nkind = N_Generic_Package_Declaration
3765 or else NT (N).Nkind = N_Generic_Subprogram_Declaration);
3766 Set_List2_With_Parent (N, Val);
3767 end Set_Generic_Formal_Declarations;
3769 procedure Set_Generic_Parent
3770 (N : Node_Id; Val : Node_Id) is
3772 pragma Assert (False
3773 or else NT (N).Nkind = N_Function_Specification
3774 or else NT (N).Nkind = N_Package_Specification
3775 or else NT (N).Nkind = N_Procedure_Specification);
3777 end Set_Generic_Parent;
3779 procedure Set_Generic_Parent_Type
3780 (N : Node_Id; Val : Node_Id) is
3782 pragma Assert (False
3783 or else NT (N).Nkind = N_Subtype_Declaration);
3785 end Set_Generic_Parent_Type;
3787 procedure Set_Handled_Statement_Sequence
3788 (N : Node_Id; Val : Node_Id) is
3790 pragma Assert (False
3791 or else NT (N).Nkind = N_Accept_Statement
3792 or else NT (N).Nkind = N_Block_Statement
3793 or else NT (N).Nkind = N_Entry_Body
3794 or else NT (N).Nkind = N_Package_Body
3795 or else NT (N).Nkind = N_Subprogram_Body
3796 or else NT (N).Nkind = N_Task_Body);
3797 Set_Node4_With_Parent (N, Val);
3798 end Set_Handled_Statement_Sequence;
3800 procedure Set_Handler_List_Entry
3801 (N : Node_Id; Val : Node_Id) is
3803 pragma Assert (False
3804 or else NT (N).Nkind = N_Object_Declaration);
3806 end Set_Handler_List_Entry;
3808 procedure Set_Has_Created_Identifier
3809 (N : Node_Id; Val : Boolean := True) is
3811 pragma Assert (False
3812 or else NT (N).Nkind = N_Block_Statement
3813 or else NT (N).Nkind = N_Loop_Statement);
3814 Set_Flag15 (N, Val);
3815 end Set_Has_Created_Identifier;
3817 procedure Set_Has_Dynamic_Length_Check
3818 (N : Node_Id; Val : Boolean := True) is
3820 Set_Flag10 (N, Val);
3821 end Set_Has_Dynamic_Length_Check;
3823 procedure Set_Has_Dynamic_Range_Check
3824 (N : Node_Id; Val : Boolean := True) is
3826 Set_Flag12 (N, Val);
3827 end Set_Has_Dynamic_Range_Check;
3829 procedure Set_Has_No_Elaboration_Code
3830 (N : Node_Id; Val : Boolean := True) is
3832 pragma Assert (False
3833 or else NT (N).Nkind = N_Compilation_Unit);
3834 Set_Flag17 (N, Val);
3835 end Set_Has_No_Elaboration_Code;
3837 procedure Set_Has_Priority_Pragma
3838 (N : Node_Id; Val : Boolean := True) is
3840 pragma Assert (False
3841 or else NT (N).Nkind = N_Protected_Definition
3842 or else NT (N).Nkind = N_Subprogram_Body
3843 or else NT (N).Nkind = N_Task_Definition);
3845 end Set_Has_Priority_Pragma;
3847 procedure Set_Has_Private_View
3848 (N : Node_Id; Val : Boolean := True) is
3850 pragma Assert (False
3851 or else NT (N).Nkind in N_Op
3852 or else NT (N).Nkind = N_Character_Literal
3853 or else NT (N).Nkind = N_Expanded_Name
3854 or else NT (N).Nkind = N_Identifier
3855 or else NT (N).Nkind = N_Operator_Symbol);
3856 Set_Flag11 (N, Val);
3857 end Set_Has_Private_View;
3859 procedure Set_Has_Storage_Size_Pragma
3860 (N : Node_Id; Val : Boolean := True) is
3862 pragma Assert (False
3863 or else NT (N).Nkind = N_Task_Definition);
3865 end Set_Has_Storage_Size_Pragma;
3867 procedure Set_Has_Task_Info_Pragma
3868 (N : Node_Id; Val : Boolean := True) is
3870 pragma Assert (False
3871 or else NT (N).Nkind = N_Task_Definition);
3873 end Set_Has_Task_Info_Pragma;
3875 procedure Set_Has_Task_Name_Pragma
3876 (N : Node_Id; Val : Boolean := True) is
3878 pragma Assert (False
3879 or else NT (N).Nkind = N_Task_Definition);
3881 end Set_Has_Task_Name_Pragma;
3883 procedure Set_Has_Wide_Character
3884 (N : Node_Id; Val : Boolean := True) is
3886 pragma Assert (False
3887 or else NT (N).Nkind = N_String_Literal);
3888 Set_Flag11 (N, Val);
3889 end Set_Has_Wide_Character;
3891 procedure Set_Hidden_By_Use_Clause
3892 (N : Node_Id; Val : Elist_Id) is
3894 pragma Assert (False
3895 or else NT (N).Nkind = N_Use_Package_Clause
3896 or else NT (N).Nkind = N_Use_Type_Clause);
3897 Set_Elist4 (N, Val);
3898 end Set_Hidden_By_Use_Clause;
3900 procedure Set_High_Bound
3901 (N : Node_Id; Val : Node_Id) is
3903 pragma Assert (False
3904 or else NT (N).Nkind = N_Range
3905 or else NT (N).Nkind = N_Real_Range_Specification
3906 or else NT (N).Nkind = N_Signed_Integer_Type_Definition);
3907 Set_Node2_With_Parent (N, Val);
3910 procedure Set_Identifier
3911 (N : Node_Id; Val : Node_Id) is
3913 pragma Assert (False
3914 or else NT (N).Nkind = N_At_Clause
3915 or else NT (N).Nkind = N_Block_Statement
3916 or else NT (N).Nkind = N_Designator
3917 or else NT (N).Nkind = N_Enumeration_Representation_Clause
3918 or else NT (N).Nkind = N_Label
3919 or else NT (N).Nkind = N_Loop_Statement
3920 or else NT (N).Nkind = N_Record_Representation_Clause
3921 or else NT (N).Nkind = N_Subprogram_Info);
3922 Set_Node1_With_Parent (N, Val);
3925 procedure Set_Implicit_With
3926 (N : Node_Id; Val : Boolean := True) is
3928 pragma Assert (False
3929 or else NT (N).Nkind = N_With_Clause);
3930 Set_Flag16 (N, Val);
3931 end Set_Implicit_With;
3933 procedure Set_Interface_List
3934 (N : Node_Id; Val : List_Id) is
3936 pragma Assert (False
3937 or else NT (N).Nkind = N_Derived_Type_Definition
3938 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
3939 or else NT (N).Nkind = N_Private_Extension_Declaration
3940 or else NT (N).Nkind = N_Protected_Type_Declaration
3941 or else NT (N).Nkind = N_Record_Definition
3942 or else NT (N).Nkind = N_Task_Type_Declaration);
3943 Set_List2_With_Parent (N, Val);
3944 end Set_Interface_List;
3946 procedure Set_Interface_Present
3947 (N : Node_Id; Val : Boolean := True) is
3949 pragma Assert (False
3950 or else NT (N).Nkind = N_Derived_Type_Definition
3951 or else NT (N).Nkind = N_Record_Definition);
3952 Set_Flag16 (N, Val);
3953 end Set_Interface_Present;
3955 procedure Set_In_Present
3956 (N : Node_Id; Val : Boolean := True) is
3958 pragma Assert (False
3959 or else NT (N).Nkind = N_Formal_Object_Declaration
3960 or else NT (N).Nkind = N_Parameter_Specification);
3961 Set_Flag15 (N, Val);
3964 procedure Set_Includes_Infinities
3965 (N : Node_Id; Val : Boolean := True) is
3967 pragma Assert (False
3968 or else NT (N).Nkind = N_Range);
3969 Set_Flag11 (N, Val);
3970 end Set_Includes_Infinities;
3972 procedure Set_Instance_Spec
3973 (N : Node_Id; Val : Node_Id) is
3975 pragma Assert (False
3976 or else NT (N).Nkind = N_Formal_Package_Declaration
3977 or else NT (N).Nkind = N_Function_Instantiation
3978 or else NT (N).Nkind = N_Package_Instantiation
3979 or else NT (N).Nkind = N_Procedure_Instantiation);
3980 Set_Node5 (N, Val); -- semantic field, no Parent set
3981 end Set_Instance_Spec;
3983 procedure Set_Intval
3984 (N : Node_Id; Val : Uint) is
3986 pragma Assert (False
3987 or else NT (N).Nkind = N_Integer_Literal);
3991 procedure Set_Is_Asynchronous_Call_Block
3992 (N : Node_Id; Val : Boolean := True) is
3994 pragma Assert (False
3995 or else NT (N).Nkind = N_Block_Statement);
3997 end Set_Is_Asynchronous_Call_Block;
3999 procedure Set_Is_Component_Left_Opnd
4000 (N : Node_Id; Val : Boolean := True) is
4002 pragma Assert (False
4003 or else NT (N).Nkind = N_Op_Concat);
4004 Set_Flag13 (N, Val);
4005 end Set_Is_Component_Left_Opnd;
4007 procedure Set_Is_Component_Right_Opnd
4008 (N : Node_Id; Val : Boolean := True) is
4010 pragma Assert (False
4011 or else NT (N).Nkind = N_Op_Concat);
4012 Set_Flag14 (N, Val);
4013 end Set_Is_Component_Right_Opnd;
4015 procedure Set_Is_Controlling_Actual
4016 (N : Node_Id; Val : Boolean := True) is
4018 pragma Assert (False
4019 or else NT (N).Nkind in N_Subexpr);
4020 Set_Flag16 (N, Val);
4021 end Set_Is_Controlling_Actual;
4023 procedure Set_Is_In_Discriminant_Check
4024 (N : Node_Id; Val : Boolean := True) is
4026 pragma Assert (False
4027 or else NT (N).Nkind = N_Selected_Component);
4028 Set_Flag11 (N, Val);
4029 end Set_Is_In_Discriminant_Check;
4031 procedure Set_Is_Machine_Number
4032 (N : Node_Id; Val : Boolean := True) is
4034 pragma Assert (False
4035 or else NT (N).Nkind = N_Real_Literal);
4036 Set_Flag11 (N, Val);
4037 end Set_Is_Machine_Number;
4039 procedure Set_Is_Null_Loop
4040 (N : Node_Id; Val : Boolean := True) is
4042 pragma Assert (False
4043 or else NT (N).Nkind = N_Loop_Statement);
4044 Set_Flag16 (N, Val);
4045 end Set_Is_Null_Loop;
4047 procedure Set_Is_Overloaded
4048 (N : Node_Id; Val : Boolean := True) is
4050 pragma Assert (False
4051 or else NT (N).Nkind in N_Subexpr);
4053 end Set_Is_Overloaded;
4055 procedure Set_Is_Power_Of_2_For_Shift
4056 (N : Node_Id; Val : Boolean := True) is
4058 pragma Assert (False
4059 or else NT (N).Nkind = N_Op_Expon);
4060 Set_Flag13 (N, Val);
4061 end Set_Is_Power_Of_2_For_Shift;
4063 procedure Set_Is_Protected_Subprogram_Body
4064 (N : Node_Id; Val : Boolean := True) is
4066 pragma Assert (False
4067 or else NT (N).Nkind = N_Subprogram_Body);
4069 end Set_Is_Protected_Subprogram_Body;
4071 procedure Set_Is_Static_Expression
4072 (N : Node_Id; Val : Boolean := True) is
4074 pragma Assert (False
4075 or else NT (N).Nkind in N_Subexpr);
4077 end Set_Is_Static_Expression;
4079 procedure Set_Is_Subprogram_Descriptor
4080 (N : Node_Id; Val : Boolean := True) is
4082 pragma Assert (False
4083 or else NT (N).Nkind = N_Object_Declaration);
4084 Set_Flag16 (N, Val);
4085 end Set_Is_Subprogram_Descriptor;
4087 procedure Set_Is_Task_Allocation_Block
4088 (N : Node_Id; Val : Boolean := True) is
4090 pragma Assert (False
4091 or else NT (N).Nkind = N_Block_Statement);
4093 end Set_Is_Task_Allocation_Block;
4095 procedure Set_Is_Task_Master
4096 (N : Node_Id; Val : Boolean := True) is
4098 pragma Assert (False
4099 or else NT (N).Nkind = N_Block_Statement
4100 or else NT (N).Nkind = N_Subprogram_Body
4101 or else NT (N).Nkind = N_Task_Body);
4103 end Set_Is_Task_Master;
4105 procedure Set_Iteration_Scheme
4106 (N : Node_Id; Val : Node_Id) is
4108 pragma Assert (False
4109 or else NT (N).Nkind = N_Loop_Statement);
4110 Set_Node2_With_Parent (N, Val);
4111 end Set_Iteration_Scheme;
4114 (N : Node_Id; Val : Entity_Id) is
4116 pragma Assert (False
4117 or else NT (N).Nkind = N_Itype_Reference);
4118 Set_Node1 (N, Val); -- no parent, semantic field
4121 procedure Set_Kill_Range_Check
4122 (N : Node_Id; Val : Boolean := True) is
4124 pragma Assert (False
4125 or else NT (N).Nkind = N_Unchecked_Type_Conversion);
4126 Set_Flag11 (N, Val);
4127 end Set_Kill_Range_Check;
4129 procedure Set_Label_Construct
4130 (N : Node_Id; Val : Node_Id) is
4132 pragma Assert (False
4133 or else NT (N).Nkind = N_Implicit_Label_Declaration);
4134 Set_Node2 (N, Val); -- semantic field, no parent set
4135 end Set_Label_Construct;
4137 procedure Set_Last_Bit
4138 (N : Node_Id; Val : Node_Id) is
4140 pragma Assert (False
4141 or else NT (N).Nkind = N_Component_Clause);
4142 Set_Node4_With_Parent (N, Val);
4145 procedure Set_Last_Name
4146 (N : Node_Id; Val : Boolean := True) is
4148 pragma Assert (False
4149 or else NT (N).Nkind = N_With_Clause);
4153 procedure Set_Left_Opnd
4154 (N : Node_Id; Val : Node_Id) is
4156 pragma Assert (False
4157 or else NT (N).Nkind = N_And_Then
4158 or else NT (N).Nkind = N_In
4159 or else NT (N).Nkind = N_Not_In
4160 or else NT (N).Nkind = N_Or_Else
4161 or else NT (N).Nkind in N_Binary_Op);
4162 Set_Node2_With_Parent (N, Val);
4165 procedure Set_Library_Unit
4166 (N : Node_Id; Val : Node_Id) is
4168 pragma Assert (False
4169 or else NT (N).Nkind = N_Compilation_Unit
4170 or else NT (N).Nkind = N_Package_Body_Stub
4171 or else NT (N).Nkind = N_Protected_Body_Stub
4172 or else NT (N).Nkind = N_Subprogram_Body_Stub
4173 or else NT (N).Nkind = N_Task_Body_Stub
4174 or else NT (N).Nkind = N_With_Clause);
4175 Set_Node4 (N, Val); -- semantic field, no parent set
4176 end Set_Library_Unit;
4178 procedure Set_Limited_View_Installed
4179 (N : Node_Id; Val : Boolean := True) is
4181 pragma Assert (False
4182 or else NT (N).Nkind = N_Package_Specification
4183 or else NT (N).Nkind = N_With_Clause);
4184 Set_Flag18 (N, Val);
4185 end Set_Limited_View_Installed;
4187 procedure Set_Limited_Present
4188 (N : Node_Id; Val : Boolean := True) is
4190 pragma Assert (False
4191 or else NT (N).Nkind = N_Derived_Type_Definition
4192 or else NT (N).Nkind = N_Formal_Private_Type_Definition
4193 or else NT (N).Nkind = N_Private_Type_Declaration
4194 or else NT (N).Nkind = N_Record_Definition
4195 or else NT (N).Nkind = N_With_Clause);
4196 Set_Flag17 (N, Val);
4197 end Set_Limited_Present;
4199 procedure Set_Literals
4200 (N : Node_Id; Val : List_Id) is
4202 pragma Assert (False
4203 or else NT (N).Nkind = N_Enumeration_Type_Definition);
4204 Set_List1_With_Parent (N, Val);
4207 procedure Set_Loop_Actions
4208 (N : Node_Id; Val : List_Id) is
4210 pragma Assert (False
4211 or else NT (N).Nkind = N_Component_Association);
4212 Set_List2 (N, Val); -- semantic field, no parent set
4213 end Set_Loop_Actions;
4215 procedure Set_Loop_Parameter_Specification
4216 (N : Node_Id; Val : Node_Id) is
4218 pragma Assert (False
4219 or else NT (N).Nkind = N_Iteration_Scheme);
4220 Set_Node4_With_Parent (N, Val);
4221 end Set_Loop_Parameter_Specification;
4223 procedure Set_Low_Bound
4224 (N : Node_Id; Val : Node_Id) is
4226 pragma Assert (False
4227 or else NT (N).Nkind = N_Range
4228 or else NT (N).Nkind = N_Real_Range_Specification
4229 or else NT (N).Nkind = N_Signed_Integer_Type_Definition);
4230 Set_Node1_With_Parent (N, Val);
4233 procedure Set_Mod_Clause
4234 (N : Node_Id; Val : Node_Id) is
4236 pragma Assert (False
4237 or else NT (N).Nkind = N_Record_Representation_Clause);
4238 Set_Node2_With_Parent (N, Val);
4241 procedure Set_More_Ids
4242 (N : Node_Id; Val : Boolean := True) is
4244 pragma Assert (False
4245 or else NT (N).Nkind = N_Component_Declaration
4246 or else NT (N).Nkind = N_Discriminant_Specification
4247 or else NT (N).Nkind = N_Exception_Declaration
4248 or else NT (N).Nkind = N_Formal_Object_Declaration
4249 or else NT (N).Nkind = N_Number_Declaration
4250 or else NT (N).Nkind = N_Object_Declaration
4251 or else NT (N).Nkind = N_Parameter_Specification);
4255 procedure Set_Must_Be_Byte_Aligned
4256 (N : Node_Id; Val : Boolean := True) is
4258 pragma Assert (False
4259 or else NT (N).Nkind = N_Attribute_Reference);
4260 Set_Flag14 (N, Val);
4261 end Set_Must_Be_Byte_Aligned;
4263 procedure Set_Must_Not_Freeze
4264 (N : Node_Id; Val : Boolean := True) is
4266 pragma Assert (False
4267 or else NT (N).Nkind = N_Subtype_Indication
4268 or else NT (N).Nkind in N_Subexpr);
4270 end Set_Must_Not_Freeze;
4273 (N : Node_Id; Val : Node_Id) is
4275 pragma Assert (False
4276 or else NT (N).Nkind = N_Assignment_Statement
4277 or else NT (N).Nkind = N_Attribute_Definition_Clause
4278 or else NT (N).Nkind = N_Defining_Program_Unit_Name
4279 or else NT (N).Nkind = N_Designator
4280 or else NT (N).Nkind = N_Entry_Call_Statement
4281 or else NT (N).Nkind = N_Exception_Renaming_Declaration
4282 or else NT (N).Nkind = N_Exit_Statement
4283 or else NT (N).Nkind = N_Formal_Package_Declaration
4284 or else NT (N).Nkind = N_Function_Call
4285 or else NT (N).Nkind = N_Function_Instantiation
4286 or else NT (N).Nkind = N_Generic_Function_Renaming_Declaration
4287 or else NT (N).Nkind = N_Generic_Package_Renaming_Declaration
4288 or else NT (N).Nkind = N_Generic_Procedure_Renaming_Declaration
4289 or else NT (N).Nkind = N_Goto_Statement
4290 or else NT (N).Nkind = N_Object_Renaming_Declaration
4291 or else NT (N).Nkind = N_Package_Instantiation
4292 or else NT (N).Nkind = N_Package_Renaming_Declaration
4293 or else NT (N).Nkind = N_Procedure_Call_Statement
4294 or else NT (N).Nkind = N_Procedure_Instantiation
4295 or else NT (N).Nkind = N_Raise_Statement
4296 or else NT (N).Nkind = N_Requeue_Statement
4297 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration
4298 or else NT (N).Nkind = N_Subunit
4299 or else NT (N).Nkind = N_Variant_Part
4300 or else NT (N).Nkind = N_With_Clause
4301 or else NT (N).Nkind = N_With_Type_Clause);
4302 Set_Node2_With_Parent (N, Val);
4306 (N : Node_Id; Val : List_Id) is
4308 pragma Assert (False
4309 or else NT (N).Nkind = N_Abort_Statement
4310 or else NT (N).Nkind = N_Use_Package_Clause);
4311 Set_List2_With_Parent (N, Val);
4314 procedure Set_Next_Entity
4315 (N : Node_Id; Val : Node_Id) is
4317 pragma Assert (False
4318 or else NT (N).Nkind = N_Defining_Character_Literal
4319 or else NT (N).Nkind = N_Defining_Identifier
4320 or else NT (N).Nkind = N_Defining_Operator_Symbol);
4321 Set_Node2 (N, Val); -- semantic field, no parent set
4322 end Set_Next_Entity;
4324 procedure Set_Next_Named_Actual
4325 (N : Node_Id; Val : Node_Id) is
4327 pragma Assert (False
4328 or else NT (N).Nkind = N_Parameter_Association);
4329 Set_Node4 (N, Val); -- semantic field, no parent set
4330 end Set_Next_Named_Actual;
4332 procedure Set_Next_Rep_Item
4333 (N : Node_Id; Val : Node_Id) is
4335 pragma Assert (False
4336 or else NT (N).Nkind = N_Attribute_Definition_Clause
4337 or else NT (N).Nkind = N_Enumeration_Representation_Clause
4338 or else NT (N).Nkind = N_Pragma
4339 or else NT (N).Nkind = N_Record_Representation_Clause);
4340 Set_Node4 (N, Val); -- semantic field, no parent set
4341 end Set_Next_Rep_Item;
4343 procedure Set_Next_Use_Clause
4344 (N : Node_Id; Val : Node_Id) is
4346 pragma Assert (False
4347 or else NT (N).Nkind = N_Use_Package_Clause
4348 or else NT (N).Nkind = N_Use_Type_Clause);
4349 Set_Node3 (N, Val); -- semantic field, no parent set
4350 end Set_Next_Use_Clause;
4352 procedure Set_No_Ctrl_Actions
4353 (N : Node_Id; Val : Boolean := True) is
4355 pragma Assert (False
4356 or else NT (N).Nkind = N_Assignment_Statement);
4358 end Set_No_Ctrl_Actions;
4360 procedure Set_No_Elaboration_Check
4361 (N : Node_Id; Val : Boolean := True) is
4363 pragma Assert (False
4364 or else NT (N).Nkind = N_Function_Call
4365 or else NT (N).Nkind = N_Procedure_Call_Statement);
4366 Set_Flag14 (N, Val);
4367 end Set_No_Elaboration_Check;
4369 procedure Set_No_Entities_Ref_In_Spec
4370 (N : Node_Id; Val : Boolean := True) is
4372 pragma Assert (False
4373 or else NT (N).Nkind = N_With_Clause);
4375 end Set_No_Entities_Ref_In_Spec;
4377 procedure Set_No_Initialization
4378 (N : Node_Id; Val : Boolean := True) is
4380 pragma Assert (False
4381 or else NT (N).Nkind = N_Allocator
4382 or else NT (N).Nkind = N_Object_Declaration);
4383 Set_Flag13 (N, Val);
4384 end Set_No_Initialization;
4386 procedure Set_No_Truncation
4387 (N : Node_Id; Val : Boolean := True) is
4389 pragma Assert (False
4390 or else NT (N).Nkind = N_Unchecked_Type_Conversion);
4391 Set_Flag17 (N, Val);
4392 end Set_No_Truncation;
4394 procedure Set_Null_Present
4395 (N : Node_Id; Val : Boolean := True) is
4397 pragma Assert (False
4398 or else NT (N).Nkind = N_Component_List
4399 or else NT (N).Nkind = N_Record_Definition);
4400 Set_Flag13 (N, Val);
4401 end Set_Null_Present;
4403 procedure Set_Null_Exclusion_Present
4404 (N : Node_Id; Val : Boolean := True) is
4406 pragma Assert (False
4407 or else NT (N).Nkind = N_Access_Definition
4408 or else NT (N).Nkind = N_Access_Function_Definition
4409 or else NT (N).Nkind = N_Access_Procedure_Definition
4410 or else NT (N).Nkind = N_Access_To_Object_Definition
4411 or else NT (N).Nkind = N_Allocator
4412 or else NT (N).Nkind = N_Component_Definition
4413 or else NT (N).Nkind = N_Derived_Type_Definition
4414 or else NT (N).Nkind = N_Discriminant_Specification
4415 or else NT (N).Nkind = N_Object_Declaration
4416 or else NT (N).Nkind = N_Parameter_Specification
4417 or else NT (N).Nkind = N_Subtype_Declaration);
4418 Set_Flag11 (N, Val);
4419 end Set_Null_Exclusion_Present;
4421 procedure Set_Null_Record_Present
4422 (N : Node_Id; Val : Boolean := True) is
4424 pragma Assert (False
4425 or else NT (N).Nkind = N_Aggregate
4426 or else NT (N).Nkind = N_Extension_Aggregate);
4427 Set_Flag17 (N, Val);
4428 end Set_Null_Record_Present;
4430 procedure Set_Object_Definition
4431 (N : Node_Id; Val : Node_Id) is
4433 pragma Assert (False
4434 or else NT (N).Nkind = N_Object_Declaration);
4435 Set_Node4_With_Parent (N, Val);
4436 end Set_Object_Definition;
4438 procedure Set_Original_Discriminant
4439 (N : Node_Id; Val : Node_Id) is
4441 pragma Assert (False
4442 or else NT (N).Nkind = N_Identifier);
4443 Set_Node2 (N, Val); -- semantic field, no parent set
4444 end Set_Original_Discriminant;
4446 procedure Set_Original_Entity
4447 (N : Node_Id; Val : Entity_Id) is
4449 pragma Assert (False
4450 or else NT (N).Nkind = N_Integer_Literal
4451 or else NT (N).Nkind = N_Real_Literal);
4452 Set_Node2 (N, Val); -- semantic field, no parent set
4453 end Set_Original_Entity;
4455 procedure Set_Others_Discrete_Choices
4456 (N : Node_Id; Val : List_Id) is
4458 pragma Assert (False
4459 or else NT (N).Nkind = N_Others_Choice);
4460 Set_List1_With_Parent (N, Val);
4461 end Set_Others_Discrete_Choices;
4463 procedure Set_Out_Present
4464 (N : Node_Id; Val : Boolean := True) is
4466 pragma Assert (False
4467 or else NT (N).Nkind = N_Formal_Object_Declaration
4468 or else NT (N).Nkind = N_Parameter_Specification);
4469 Set_Flag17 (N, Val);
4470 end Set_Out_Present;
4472 procedure Set_Parameter_Associations
4473 (N : Node_Id; Val : List_Id) is
4475 pragma Assert (False
4476 or else NT (N).Nkind = N_Entry_Call_Statement
4477 or else NT (N).Nkind = N_Function_Call
4478 or else NT (N).Nkind = N_Procedure_Call_Statement);
4479 Set_List3_With_Parent (N, Val);
4480 end Set_Parameter_Associations;
4482 procedure Set_Parameter_List_Truncated
4483 (N : Node_Id; Val : Boolean := True) is
4485 pragma Assert (False
4486 or else NT (N).Nkind = N_Function_Call
4487 or else NT (N).Nkind = N_Procedure_Call_Statement);
4488 Set_Flag17 (N, Val);
4489 end Set_Parameter_List_Truncated;
4491 procedure Set_Parameter_Specifications
4492 (N : Node_Id; Val : List_Id) is
4494 pragma Assert (False
4495 or else NT (N).Nkind = N_Accept_Statement
4496 or else NT (N).Nkind = N_Access_Function_Definition
4497 or else NT (N).Nkind = N_Access_Procedure_Definition
4498 or else NT (N).Nkind = N_Entry_Body_Formal_Part
4499 or else NT (N).Nkind = N_Entry_Declaration
4500 or else NT (N).Nkind = N_Function_Specification
4501 or else NT (N).Nkind = N_Procedure_Specification);
4502 Set_List3_With_Parent (N, Val);
4503 end Set_Parameter_Specifications;
4505 procedure Set_Parameter_Type
4506 (N : Node_Id; Val : Node_Id) is
4508 pragma Assert (False
4509 or else NT (N).Nkind = N_Parameter_Specification);
4510 Set_Node2_With_Parent (N, Val);
4511 end Set_Parameter_Type;
4513 procedure Set_Parent_Spec
4514 (N : Node_Id; Val : Node_Id) is
4516 pragma Assert (False
4517 or else NT (N).Nkind = N_Function_Instantiation
4518 or else NT (N).Nkind = N_Generic_Function_Renaming_Declaration
4519 or else NT (N).Nkind = N_Generic_Package_Declaration
4520 or else NT (N).Nkind = N_Generic_Package_Renaming_Declaration
4521 or else NT (N).Nkind = N_Generic_Procedure_Renaming_Declaration
4522 or else NT (N).Nkind = N_Generic_Subprogram_Declaration
4523 or else NT (N).Nkind = N_Package_Declaration
4524 or else NT (N).Nkind = N_Package_Instantiation
4525 or else NT (N).Nkind = N_Package_Renaming_Declaration
4526 or else NT (N).Nkind = N_Procedure_Instantiation
4527 or else NT (N).Nkind = N_Subprogram_Declaration
4528 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration);
4529 Set_Node4 (N, Val); -- semantic field, no parent set
4530 end Set_Parent_Spec;
4532 procedure Set_Position
4533 (N : Node_Id; Val : Node_Id) is
4535 pragma Assert (False
4536 or else NT (N).Nkind = N_Component_Clause);
4537 Set_Node2_With_Parent (N, Val);
4540 procedure Set_Pragma_Argument_Associations
4541 (N : Node_Id; Val : List_Id) is
4543 pragma Assert (False
4544 or else NT (N).Nkind = N_Pragma);
4545 Set_List2_With_Parent (N, Val);
4546 end Set_Pragma_Argument_Associations;
4548 procedure Set_Pragmas_After
4549 (N : Node_Id; Val : List_Id) is
4551 pragma Assert (False
4552 or else NT (N).Nkind = N_Compilation_Unit_Aux
4553 or else NT (N).Nkind = N_Terminate_Alternative);
4554 Set_List5_With_Parent (N, Val);
4555 end Set_Pragmas_After;
4557 procedure Set_Pragmas_Before
4558 (N : Node_Id; Val : List_Id) is
4560 pragma Assert (False
4561 or else NT (N).Nkind = N_Accept_Alternative
4562 or else NT (N).Nkind = N_Delay_Alternative
4563 or else NT (N).Nkind = N_Entry_Call_Alternative
4564 or else NT (N).Nkind = N_Mod_Clause
4565 or else NT (N).Nkind = N_Terminate_Alternative
4566 or else NT (N).Nkind = N_Triggering_Alternative);
4567 Set_List4_With_Parent (N, Val);
4568 end Set_Pragmas_Before;
4570 procedure Set_Prefix
4571 (N : Node_Id; Val : Node_Id) is
4573 pragma Assert (False
4574 or else NT (N).Nkind = N_Attribute_Reference
4575 or else NT (N).Nkind = N_Expanded_Name
4576 or else NT (N).Nkind = N_Explicit_Dereference
4577 or else NT (N).Nkind = N_Indexed_Component
4578 or else NT (N).Nkind = N_Reference
4579 or else NT (N).Nkind = N_Selected_Component
4580 or else NT (N).Nkind = N_Slice);
4581 Set_Node3_With_Parent (N, Val);
4584 procedure Set_Present_Expr
4585 (N : Node_Id; Val : Uint) is
4587 pragma Assert (False
4588 or else NT (N).Nkind = N_Variant);
4590 end Set_Present_Expr;
4592 procedure Set_Prev_Ids
4593 (N : Node_Id; Val : Boolean := True) is
4595 pragma Assert (False
4596 or else NT (N).Nkind = N_Component_Declaration
4597 or else NT (N).Nkind = N_Discriminant_Specification
4598 or else NT (N).Nkind = N_Exception_Declaration
4599 or else NT (N).Nkind = N_Formal_Object_Declaration
4600 or else NT (N).Nkind = N_Number_Declaration
4601 or else NT (N).Nkind = N_Object_Declaration
4602 or else NT (N).Nkind = N_Parameter_Specification);
4606 procedure Set_Print_In_Hex
4607 (N : Node_Id; Val : Boolean := True) is
4609 pragma Assert (False
4610 or else NT (N).Nkind = N_Integer_Literal);
4611 Set_Flag13 (N, Val);
4612 end Set_Print_In_Hex;
4614 procedure Set_Private_Declarations
4615 (N : Node_Id; Val : List_Id) is
4617 pragma Assert (False
4618 or else NT (N).Nkind = N_Package_Specification
4619 or else NT (N).Nkind = N_Protected_Definition
4620 or else NT (N).Nkind = N_Task_Definition);
4621 Set_List3_With_Parent (N, Val);
4622 end Set_Private_Declarations;
4624 procedure Set_Private_Present
4625 (N : Node_Id; Val : Boolean := True) is
4627 pragma Assert (False
4628 or else NT (N).Nkind = N_Compilation_Unit
4629 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
4630 or else NT (N).Nkind = N_With_Clause);
4631 Set_Flag15 (N, Val);
4632 end Set_Private_Present;
4634 procedure Set_Procedure_To_Call
4635 (N : Node_Id; Val : Node_Id) is
4637 pragma Assert (False
4638 or else NT (N).Nkind = N_Allocator
4639 or else NT (N).Nkind = N_Free_Statement
4640 or else NT (N).Nkind = N_Return_Statement);
4641 Set_Node4 (N, Val); -- semantic field, no parent set
4642 end Set_Procedure_To_Call;
4644 procedure Set_Proper_Body
4645 (N : Node_Id; Val : Node_Id) is
4647 pragma Assert (False
4648 or else NT (N).Nkind = N_Subunit);
4649 Set_Node1_With_Parent (N, Val);
4650 end Set_Proper_Body;
4652 procedure Set_Protected_Definition
4653 (N : Node_Id; Val : Node_Id) is
4655 pragma Assert (False
4656 or else NT (N).Nkind = N_Protected_Type_Declaration
4657 or else NT (N).Nkind = N_Single_Protected_Declaration);
4658 Set_Node3_With_Parent (N, Val);
4659 end Set_Protected_Definition;
4661 procedure Set_Protected_Present
4662 (N : Node_Id; Val : Boolean := True) is
4664 pragma Assert (False
4665 or else NT (N).Nkind = N_Access_Function_Definition
4666 or else NT (N).Nkind = N_Access_Procedure_Definition
4667 or else NT (N).Nkind = N_Derived_Type_Definition
4668 or else NT (N).Nkind = N_Record_Definition);
4670 end Set_Protected_Present;
4672 procedure Set_Raises_Constraint_Error
4673 (N : Node_Id; Val : Boolean := True) is
4675 pragma Assert (False
4676 or else NT (N).Nkind in N_Subexpr);
4678 end Set_Raises_Constraint_Error;
4680 procedure Set_Range_Constraint
4681 (N : Node_Id; Val : Node_Id) is
4683 pragma Assert (False
4684 or else NT (N).Nkind = N_Delta_Constraint
4685 or else NT (N).Nkind = N_Digits_Constraint);
4686 Set_Node4_With_Parent (N, Val);
4687 end Set_Range_Constraint;
4689 procedure Set_Range_Expression
4690 (N : Node_Id; Val : Node_Id) is
4692 pragma Assert (False
4693 or else NT (N).Nkind = N_Range_Constraint);
4694 Set_Node4_With_Parent (N, Val);
4695 end Set_Range_Expression;
4697 procedure Set_Real_Range_Specification
4698 (N : Node_Id; Val : Node_Id) is
4700 pragma Assert (False
4701 or else NT (N).Nkind = N_Decimal_Fixed_Point_Definition
4702 or else NT (N).Nkind = N_Floating_Point_Definition
4703 or else NT (N).Nkind = N_Ordinary_Fixed_Point_Definition);
4704 Set_Node4_With_Parent (N, Val);
4705 end Set_Real_Range_Specification;
4707 procedure Set_Realval
4708 (N : Node_Id; Val : Ureal) is
4710 pragma Assert (False
4711 or else NT (N).Nkind = N_Real_Literal);
4712 Set_Ureal3 (N, Val);
4715 procedure Set_Reason
4716 (N : Node_Id; Val : Uint) is
4718 pragma Assert (False
4719 or else NT (N).Nkind = N_Raise_Constraint_Error
4720 or else NT (N).Nkind = N_Raise_Program_Error
4721 or else NT (N).Nkind = N_Raise_Storage_Error);
4725 procedure Set_Record_Extension_Part
4726 (N : Node_Id; Val : Node_Id) is
4728 pragma Assert (False
4729 or else NT (N).Nkind = N_Derived_Type_Definition);
4730 Set_Node3_With_Parent (N, Val);
4731 end Set_Record_Extension_Part;
4733 procedure Set_Redundant_Use
4734 (N : Node_Id; Val : Boolean := True) is
4736 pragma Assert (False
4737 or else NT (N).Nkind = N_Attribute_Reference
4738 or else NT (N).Nkind = N_Expanded_Name
4739 or else NT (N).Nkind = N_Identifier);
4740 Set_Flag13 (N, Val);
4741 end Set_Redundant_Use;
4743 procedure Set_Return_Type
4744 (N : Node_Id; Val : Node_Id) is
4746 pragma Assert (False
4747 or else NT (N).Nkind = N_Return_Statement);
4748 Set_Node2 (N, Val); -- semantic field, no parent set
4749 end Set_Return_Type;
4751 procedure Set_Reverse_Present
4752 (N : Node_Id; Val : Boolean := True) is
4754 pragma Assert (False
4755 or else NT (N).Nkind = N_Loop_Parameter_Specification);
4756 Set_Flag15 (N, Val);
4757 end Set_Reverse_Present;
4759 procedure Set_Right_Opnd
4760 (N : Node_Id; Val : Node_Id) is
4762 pragma Assert (False
4763 or else NT (N).Nkind in N_Op
4764 or else NT (N).Nkind = N_And_Then
4765 or else NT (N).Nkind = N_In
4766 or else NT (N).Nkind = N_Not_In
4767 or else NT (N).Nkind = N_Or_Else);
4768 Set_Node3_With_Parent (N, Val);
4771 procedure Set_Rounded_Result
4772 (N : Node_Id; Val : Boolean := True) is
4774 pragma Assert (False
4775 or else NT (N).Nkind = N_Op_Divide
4776 or else NT (N).Nkind = N_Op_Multiply
4777 or else NT (N).Nkind = N_Type_Conversion);
4778 Set_Flag18 (N, Val);
4779 end Set_Rounded_Result;
4782 (N : Node_Id; Val : Node_Id) is
4784 pragma Assert (False
4785 or else NT (N).Nkind = N_Defining_Character_Literal
4786 or else NT (N).Nkind = N_Defining_Identifier
4787 or else NT (N).Nkind = N_Defining_Operator_Symbol);
4788 Set_Node3 (N, Val); -- semantic field, no parent set
4791 procedure Set_Select_Alternatives
4792 (N : Node_Id; Val : List_Id) is
4794 pragma Assert (False
4795 or else NT (N).Nkind = N_Selective_Accept);
4796 Set_List1_With_Parent (N, Val);
4797 end Set_Select_Alternatives;
4799 procedure Set_Selector_Name
4800 (N : Node_Id; Val : Node_Id) is
4802 pragma Assert (False
4803 or else NT (N).Nkind = N_Expanded_Name
4804 or else NT (N).Nkind = N_Generic_Association
4805 or else NT (N).Nkind = N_Parameter_Association
4806 or else NT (N).Nkind = N_Selected_Component);
4807 Set_Node2_With_Parent (N, Val);
4808 end Set_Selector_Name;
4810 procedure Set_Selector_Names
4811 (N : Node_Id; Val : List_Id) is
4813 pragma Assert (False
4814 or else NT (N).Nkind = N_Discriminant_Association);
4815 Set_List1_With_Parent (N, Val);
4816 end Set_Selector_Names;
4818 procedure Set_Shift_Count_OK
4819 (N : Node_Id; Val : Boolean := True) is
4821 pragma Assert (False
4822 or else NT (N).Nkind = N_Op_Rotate_Left
4823 or else NT (N).Nkind = N_Op_Rotate_Right
4824 or else NT (N).Nkind = N_Op_Shift_Left
4825 or else NT (N).Nkind = N_Op_Shift_Right
4826 or else NT (N).Nkind = N_Op_Shift_Right_Arithmetic);
4828 end Set_Shift_Count_OK;
4830 procedure Set_Source_Type
4831 (N : Node_Id; Val : Entity_Id) is
4833 pragma Assert (False
4834 or else NT (N).Nkind = N_Validate_Unchecked_Conversion);
4835 Set_Node1 (N, Val); -- semantic field, no parent set
4836 end Set_Source_Type;
4838 procedure Set_Specification
4839 (N : Node_Id; Val : Node_Id) is
4841 pragma Assert (False
4842 or else NT (N).Nkind = N_Abstract_Subprogram_Declaration
4843 or else NT (N).Nkind = N_Formal_Abstract_Subprogram_Declaration
4844 or else NT (N).Nkind = N_Formal_Concrete_Subprogram_Declaration
4845 or else NT (N).Nkind = N_Generic_Package_Declaration
4846 or else NT (N).Nkind = N_Generic_Subprogram_Declaration
4847 or else NT (N).Nkind = N_Package_Declaration
4848 or else NT (N).Nkind = N_Subprogram_Body
4849 or else NT (N).Nkind = N_Subprogram_Body_Stub
4850 or else NT (N).Nkind = N_Subprogram_Declaration
4851 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration);
4852 Set_Node1_With_Parent (N, Val);
4853 end Set_Specification;
4855 procedure Set_Statements
4856 (N : Node_Id; Val : List_Id) is
4858 pragma Assert (False
4859 or else NT (N).Nkind = N_Abortable_Part
4860 or else NT (N).Nkind = N_Accept_Alternative
4861 or else NT (N).Nkind = N_Case_Statement_Alternative
4862 or else NT (N).Nkind = N_Delay_Alternative
4863 or else NT (N).Nkind = N_Entry_Call_Alternative
4864 or else NT (N).Nkind = N_Exception_Handler
4865 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements
4866 or else NT (N).Nkind = N_Loop_Statement
4867 or else NT (N).Nkind = N_Triggering_Alternative);
4868 Set_List3_With_Parent (N, Val);
4871 procedure Set_Static_Processing_OK
4872 (N : Node_Id; Val : Boolean) is
4874 pragma Assert (False
4875 or else NT (N).Nkind = N_Aggregate);
4877 end Set_Static_Processing_OK;
4879 procedure Set_Storage_Pool
4880 (N : Node_Id; Val : Node_Id) is
4882 pragma Assert (False
4883 or else NT (N).Nkind = N_Allocator
4884 or else NT (N).Nkind = N_Free_Statement
4885 or else NT (N).Nkind = N_Return_Statement);
4886 Set_Node1 (N, Val); -- semantic field, no parent set
4887 end Set_Storage_Pool;
4889 procedure Set_Strval
4890 (N : Node_Id; Val : String_Id) is
4892 pragma Assert (False
4893 or else NT (N).Nkind = N_Operator_Symbol
4894 or else NT (N).Nkind = N_String_Literal);
4898 procedure Set_Subtype_Indication
4899 (N : Node_Id; Val : Node_Id) is
4901 pragma Assert (False
4902 or else NT (N).Nkind = N_Access_To_Object_Definition
4903 or else NT (N).Nkind = N_Component_Definition
4904 or else NT (N).Nkind = N_Derived_Type_Definition
4905 or else NT (N).Nkind = N_Private_Extension_Declaration
4906 or else NT (N).Nkind = N_Subtype_Declaration);
4907 Set_Node5_With_Parent (N, Val);
4908 end Set_Subtype_Indication;
4910 procedure Set_Subtype_Mark
4911 (N : Node_Id; Val : Node_Id) is
4913 pragma Assert (False
4914 or else NT (N).Nkind = N_Access_Definition
4915 or else NT (N).Nkind = N_Access_Function_Definition
4916 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
4917 or else NT (N).Nkind = N_Formal_Object_Declaration
4918 or else NT (N).Nkind = N_Function_Specification
4919 or else NT (N).Nkind = N_Object_Renaming_Declaration
4920 or else NT (N).Nkind = N_Qualified_Expression
4921 or else NT (N).Nkind = N_Subtype_Indication
4922 or else NT (N).Nkind = N_Type_Conversion
4923 or else NT (N).Nkind = N_Unchecked_Type_Conversion);
4924 Set_Node4_With_Parent (N, Val);
4925 end Set_Subtype_Mark;
4927 procedure Set_Subtype_Marks
4928 (N : Node_Id; Val : List_Id) is
4930 pragma Assert (False
4931 or else NT (N).Nkind = N_Unconstrained_Array_Definition
4932 or else NT (N).Nkind = N_Use_Type_Clause);
4933 Set_List2_With_Parent (N, Val);
4934 end Set_Subtype_Marks;
4936 procedure Set_Synchronized_Present
4937 (N : Node_Id; Val : Boolean := True) is
4939 pragma Assert (False
4940 or else NT (N).Nkind = N_Derived_Type_Definition
4941 or else NT (N).Nkind = N_Record_Definition);
4943 end Set_Synchronized_Present;
4945 procedure Set_Tagged_Present
4946 (N : Node_Id; Val : Boolean := True) is
4948 pragma Assert (False
4949 or else NT (N).Nkind = N_Formal_Private_Type_Definition
4950 or else NT (N).Nkind = N_Private_Type_Declaration
4951 or else NT (N).Nkind = N_Record_Definition
4952 or else NT (N).Nkind = N_With_Type_Clause);
4953 Set_Flag15 (N, Val);
4954 end Set_Tagged_Present;
4956 procedure Set_Target_Type
4957 (N : Node_Id; Val : Entity_Id) is
4959 pragma Assert (False
4960 or else NT (N).Nkind = N_Validate_Unchecked_Conversion);
4961 Set_Node2 (N, Val); -- semantic field, no parent set
4962 end Set_Target_Type;
4964 procedure Set_Task_Definition
4965 (N : Node_Id; Val : Node_Id) is
4967 pragma Assert (False
4968 or else NT (N).Nkind = N_Single_Task_Declaration
4969 or else NT (N).Nkind = N_Task_Type_Declaration);
4970 Set_Node3_With_Parent (N, Val);
4971 end Set_Task_Definition;
4973 procedure Set_Task_Present
4974 (N : Node_Id; Val : Boolean := True) is
4976 pragma Assert (False
4977 or else NT (N).Nkind = N_Derived_Type_Definition
4978 or else NT (N).Nkind = N_Record_Definition);
4980 end Set_Task_Present;
4982 procedure Set_Then_Actions
4983 (N : Node_Id; Val : List_Id) is
4985 pragma Assert (False
4986 or else NT (N).Nkind = N_Conditional_Expression);
4987 Set_List2 (N, Val); -- semantic field, no parent set
4988 end Set_Then_Actions;
4990 procedure Set_Then_Statements
4991 (N : Node_Id; Val : List_Id) is
4993 pragma Assert (False
4994 or else NT (N).Nkind = N_Elsif_Part
4995 or else NT (N).Nkind = N_If_Statement);
4996 Set_List2_With_Parent (N, Val);
4997 end Set_Then_Statements;
4999 procedure Set_Treat_Fixed_As_Integer
5000 (N : Node_Id; Val : Boolean := True) is
5002 pragma Assert (False
5003 or else NT (N).Nkind = N_Op_Divide
5004 or else NT (N).Nkind = N_Op_Mod
5005 or else NT (N).Nkind = N_Op_Multiply
5006 or else NT (N).Nkind = N_Op_Rem);
5007 Set_Flag14 (N, Val);
5008 end Set_Treat_Fixed_As_Integer;
5010 procedure Set_Triggering_Alternative
5011 (N : Node_Id; Val : Node_Id) is
5013 pragma Assert (False
5014 or else NT (N).Nkind = N_Asynchronous_Select);
5015 Set_Node1_With_Parent (N, Val);
5016 end Set_Triggering_Alternative;
5018 procedure Set_Triggering_Statement
5019 (N : Node_Id; Val : Node_Id) is
5021 pragma Assert (False
5022 or else NT (N).Nkind = N_Triggering_Alternative);
5023 Set_Node1_With_Parent (N, Val);
5024 end Set_Triggering_Statement;
5026 procedure Set_TSS_Elist
5027 (N : Node_Id; Val : Elist_Id) is
5029 pragma Assert (False
5030 or else NT (N).Nkind = N_Freeze_Entity);
5031 Set_Elist3 (N, Val); -- semantic field, no parent set
5034 procedure Set_Type_Definition
5035 (N : Node_Id; Val : Node_Id) is
5037 pragma Assert (False
5038 or else NT (N).Nkind = N_Full_Type_Declaration);
5039 Set_Node3_With_Parent (N, Val);
5040 end Set_Type_Definition;
5043 (N : Node_Id; Val : Node_Id) is
5045 pragma Assert (False
5046 or else NT (N).Nkind = N_Compilation_Unit);
5047 Set_Node2_With_Parent (N, Val);
5050 procedure Set_Unknown_Discriminants_Present
5051 (N : Node_Id; Val : Boolean := True) is
5053 pragma Assert (False
5054 or else NT (N).Nkind = N_Formal_Type_Declaration
5055 or else NT (N).Nkind = N_Incomplete_Type_Declaration
5056 or else NT (N).Nkind = N_Private_Extension_Declaration
5057 or else NT (N).Nkind = N_Private_Type_Declaration);
5058 Set_Flag13 (N, Val);
5059 end Set_Unknown_Discriminants_Present;
5061 procedure Set_Unreferenced_In_Spec
5062 (N : Node_Id; Val : Boolean := True) is
5064 pragma Assert (False
5065 or else NT (N).Nkind = N_With_Clause);
5067 end Set_Unreferenced_In_Spec;
5069 procedure Set_Variant_Part
5070 (N : Node_Id; Val : Node_Id) is
5072 pragma Assert (False
5073 or else NT (N).Nkind = N_Component_List);
5074 Set_Node4_With_Parent (N, Val);
5075 end Set_Variant_Part;
5077 procedure Set_Variants
5078 (N : Node_Id; Val : List_Id) is
5080 pragma Assert (False
5081 or else NT (N).Nkind = N_Variant_Part);
5082 Set_List1_With_Parent (N, Val);
5085 procedure Set_Visible_Declarations
5086 (N : Node_Id; Val : List_Id) is
5088 pragma Assert (False
5089 or else NT (N).Nkind = N_Package_Specification
5090 or else NT (N).Nkind = N_Protected_Definition
5091 or else NT (N).Nkind = N_Task_Definition);
5092 Set_List2_With_Parent (N, Val);
5093 end Set_Visible_Declarations;
5095 procedure Set_Was_Originally_Stub
5096 (N : Node_Id; Val : Boolean := True) is
5098 pragma Assert (False
5099 or else NT (N).Nkind = N_Package_Body
5100 or else NT (N).Nkind = N_Protected_Body
5101 or else NT (N).Nkind = N_Subprogram_Body
5102 or else NT (N).Nkind = N_Task_Body);
5103 Set_Flag13 (N, Val);
5104 end Set_Was_Originally_Stub;
5106 procedure Set_Zero_Cost_Handling
5107 (N : Node_Id; Val : Boolean := True) is
5109 pragma Assert (False
5110 or else NT (N).Nkind = N_Exception_Handler
5111 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements);
5113 end Set_Zero_Cost_Handling;
5115 -------------------------
5116 -- Iterator Procedures --
5117 -------------------------
5119 procedure Next_Entity (N : in out Node_Id) is
5121 N := Next_Entity (N);
5124 procedure Next_Named_Actual (N : in out Node_Id) is
5126 N := Next_Named_Actual (N);
5127 end Next_Named_Actual;
5129 procedure Next_Rep_Item (N : in out Node_Id) is
5131 N := Next_Rep_Item (N);
5134 procedure Next_Use_Clause (N : in out Node_Id) is
5136 N := Next_Use_Clause (N);
5137 end Next_Use_Clause;
5143 function End_Location (N : Node_Id) return Source_Ptr is
5144 L : constant Uint := End_Span (N);
5150 return Source_Ptr (Int (Sloc (N)) + UI_To_Int (L));
5154 ----------------------
5155 -- Set_End_Location --
5156 ----------------------
5158 procedure Set_End_Location (N : Node_Id; S : Source_Ptr) is
5161 UI_From_Int (Int (S) - Int (Sloc (N))));
5162 end Set_End_Location;