1 ------------------------------------------------------------------------------
3 -- GNAT COMPILER COMPONENTS --
9 -- Copyright (C) 1992-2014, 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 3, or (at your option) any later ver- --
14 -- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
15 -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
16 -- or FITNESS FOR A PARTICULAR PURPOSE. --
18 -- As a special exception under Section 7 of GPL version 3, you are granted --
19 -- additional permissions described in the GCC Runtime Library Exception, --
20 -- version 3.1, as published by the Free Software Foundation. --
22 -- You should have received a copy of the GNU General Public License and --
23 -- a copy of the GCC Runtime Library Exception along with this program; --
24 -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see --
25 -- <http://www.gnu.org/licenses/>. --
27 -- GNAT was originally developed by the GNAT team at New York University. --
28 -- Extensive contributions were provided by Ada Core Technologies Inc. --
30 ------------------------------------------------------------------------------
32 pragma Style_Checks (All_Checks);
33 -- No subprogram ordering check, due to logical grouping
35 with Atree; use Atree;
39 use Atree.Unchecked_Access;
40 -- This package is one of the few packages which is allowed to make direct
41 -- references to tree nodes (since it is in the business of providing a
42 -- higher level of tree access which other clients are expected to use and
43 -- which implements checks).
45 use Atree_Private_Part;
46 -- The only reason that we ask for direct access to the private part of
47 -- the tree package is so that we can directly reference the Nkind field
48 -- of nodes table entries. We do this since it helps the efficiency of
49 -- the Sinfo debugging checks considerably (note that when we are checking
50 -- Nkind values, we don't need to check for a valid node reference, because
51 -- we will check that anyway when we reference the field).
53 NT : Nodes.Table_Ptr renames Nodes.Table;
54 -- A short hand abbreviation, useful for the debugging checks
56 ----------------------------
57 -- Field Access Functions --
58 ----------------------------
60 function ABE_Is_Certain
61 (N : Node_Id) return Boolean is
64 or else NT (N).Nkind = N_Formal_Package_Declaration
65 or else NT (N).Nkind = N_Function_Call
66 or else NT (N).Nkind = N_Function_Instantiation
67 or else NT (N).Nkind = N_Package_Instantiation
68 or else NT (N).Nkind = N_Procedure_Call_Statement
69 or else NT (N).Nkind = N_Procedure_Instantiation);
73 function Abort_Present
74 (N : Node_Id) return Boolean is
77 or else NT (N).Nkind = N_Requeue_Statement);
81 function Abortable_Part
82 (N : Node_Id) return Node_Id is
85 or else NT (N).Nkind = N_Asynchronous_Select);
89 function Abstract_Present
90 (N : Node_Id) return Boolean is
93 or else NT (N).Nkind = N_Derived_Type_Definition
94 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
95 or else NT (N).Nkind = N_Formal_Private_Type_Definition
96 or else NT (N).Nkind = N_Private_Extension_Declaration
97 or else NT (N).Nkind = N_Private_Type_Declaration
98 or else NT (N).Nkind = N_Record_Definition);
100 end Abstract_Present;
102 function Accept_Handler_Records
103 (N : Node_Id) return List_Id is
106 or else NT (N).Nkind = N_Accept_Alternative);
108 end Accept_Handler_Records;
110 function Accept_Statement
111 (N : Node_Id) return Node_Id is
114 or else NT (N).Nkind = N_Accept_Alternative);
116 end Accept_Statement;
118 function Access_Definition
119 (N : Node_Id) return Node_Id is
122 or else NT (N).Nkind = N_Component_Definition
123 or else NT (N).Nkind = N_Formal_Object_Declaration
124 or else NT (N).Nkind = N_Object_Renaming_Declaration);
126 end Access_Definition;
128 function Access_To_Subprogram_Definition
129 (N : Node_Id) return Node_Id is
132 or else NT (N).Nkind = N_Access_Definition);
134 end Access_To_Subprogram_Definition;
136 function Access_Types_To_Process
137 (N : Node_Id) return Elist_Id is
140 or else NT (N).Nkind = N_Freeze_Entity);
142 end Access_Types_To_Process;
145 (N : Node_Id) return List_Id is
148 or else NT (N).Nkind = N_And_Then
149 or else NT (N).Nkind = N_Case_Expression_Alternative
150 or else NT (N).Nkind = N_Compilation_Unit_Aux
151 or else NT (N).Nkind = N_Compound_Statement
152 or else NT (N).Nkind = N_Expression_With_Actions
153 or else NT (N).Nkind = N_Freeze_Entity
154 or else NT (N).Nkind = N_Or_Else);
158 function Activation_Chain_Entity
159 (N : Node_Id) return Node_Id is
162 or else NT (N).Nkind = N_Block_Statement
163 or else NT (N).Nkind = N_Entry_Body
164 or else NT (N).Nkind = N_Generic_Package_Declaration
165 or else NT (N).Nkind = N_Package_Declaration
166 or else NT (N).Nkind = N_Subprogram_Body
167 or else NT (N).Nkind = N_Task_Body);
169 end Activation_Chain_Entity;
171 function Acts_As_Spec
172 (N : Node_Id) return Boolean is
175 or else NT (N).Nkind = N_Compilation_Unit
176 or else NT (N).Nkind = N_Subprogram_Body);
180 function Actual_Designated_Subtype
181 (N : Node_Id) return Node_Id is
184 or else NT (N).Nkind = N_Explicit_Dereference
185 or else NT (N).Nkind = N_Free_Statement);
187 end Actual_Designated_Subtype;
189 function Address_Warning_Posted
190 (N : Node_Id) return Boolean is
193 or else NT (N).Nkind = N_Attribute_Definition_Clause);
195 end Address_Warning_Posted;
197 function Aggregate_Bounds
198 (N : Node_Id) return Node_Id is
201 or else NT (N).Nkind = N_Aggregate);
203 end Aggregate_Bounds;
205 function Aliased_Present
206 (N : Node_Id) return Boolean is
209 or else NT (N).Nkind = N_Component_Definition
210 or else NT (N).Nkind = N_Object_Declaration
211 or else NT (N).Nkind = N_Parameter_Specification);
216 (N : Node_Id) return Boolean is
219 or else NT (N).Nkind = N_Others_Choice);
224 (N : Node_Id) return Boolean is
227 or else NT (N).Nkind = N_Access_Definition
228 or else NT (N).Nkind = N_Access_To_Object_Definition
229 or else NT (N).Nkind = N_Quantified_Expression
230 or else NT (N).Nkind = N_Use_Type_Clause);
234 function Alternatives
235 (N : Node_Id) return List_Id is
238 or else NT (N).Nkind = N_Case_Expression
239 or else NT (N).Nkind = N_Case_Statement
240 or else NT (N).Nkind = N_In
241 or else NT (N).Nkind = N_Not_In);
245 function Ancestor_Part
246 (N : Node_Id) return Node_Id is
249 or else NT (N).Nkind = N_Extension_Aggregate);
253 function Atomic_Sync_Required
254 (N : Node_Id) return Boolean is
257 or else NT (N).Nkind = N_Expanded_Name
258 or else NT (N).Nkind = N_Explicit_Dereference
259 or else NT (N).Nkind = N_Identifier
260 or else NT (N).Nkind = N_Indexed_Component
261 or else NT (N).Nkind = N_Selected_Component);
263 end Atomic_Sync_Required;
265 function Array_Aggregate
266 (N : Node_Id) return Node_Id is
269 or else NT (N).Nkind = N_Enumeration_Representation_Clause);
273 function Aspect_Rep_Item
274 (N : Node_Id) return Node_Id is
277 or else NT (N).Nkind = N_Aspect_Specification);
281 function Assignment_OK
282 (N : Node_Id) return Boolean is
285 or else NT (N).Nkind = N_Object_Declaration
286 or else NT (N).Nkind in N_Subexpr);
290 function Associated_Node
291 (N : Node_Id) return Node_Id is
294 or else NT (N).Nkind in N_Has_Entity
295 or else NT (N).Nkind = N_Aggregate
296 or else NT (N).Nkind = N_Extension_Aggregate
297 or else NT (N).Nkind = N_Selected_Component);
302 (N : Node_Id) return Node_Id is
305 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements);
309 function Attribute_Name
310 (N : Node_Id) return Name_Id is
313 or else NT (N).Nkind = N_Attribute_Reference);
317 function Aux_Decls_Node
318 (N : Node_Id) return Node_Id is
321 or else NT (N).Nkind = N_Compilation_Unit);
325 function Backwards_OK
326 (N : Node_Id) return Boolean is
329 or else NT (N).Nkind = N_Assignment_Statement);
333 function Bad_Is_Detected
334 (N : Node_Id) return Boolean is
337 or else NT (N).Nkind = N_Subprogram_Body);
341 function Body_Required
342 (N : Node_Id) return Boolean is
345 or else NT (N).Nkind = N_Compilation_Unit);
349 function Body_To_Inline
350 (N : Node_Id) return Node_Id is
353 or else NT (N).Nkind = N_Subprogram_Declaration);
358 (N : Node_Id) return Boolean is
361 or else NT (N).Nkind = N_Component_Association
362 or else NT (N).Nkind = N_Formal_Abstract_Subprogram_Declaration
363 or else NT (N).Nkind = N_Formal_Concrete_Subprogram_Declaration
364 or else NT (N).Nkind = N_Formal_Package_Declaration
365 or else NT (N).Nkind = N_Generic_Association);
370 (N : Node_Id) return Boolean is
373 or else NT (N).Nkind = N_Extended_Return_Statement
374 or else NT (N).Nkind = N_Simple_Return_Statement);
378 function Char_Literal_Value
379 (N : Node_Id) return Uint is
382 or else NT (N).Nkind = N_Character_Literal);
384 end Char_Literal_Value;
387 (N : Node_Id) return Name_Id is
390 or else NT (N).Nkind in N_Has_Chars);
394 function Check_Address_Alignment
395 (N : Node_Id) return Boolean is
398 or else NT (N).Nkind = N_Attribute_Definition_Clause);
400 end Check_Address_Alignment;
402 function Choice_Parameter
403 (N : Node_Id) return Node_Id is
406 or else NT (N).Nkind = N_Exception_Handler);
408 end Choice_Parameter;
411 (N : Node_Id) return List_Id is
414 or else NT (N).Nkind = N_Component_Association);
418 function Class_Present
419 (N : Node_Id) return Boolean is
422 or else NT (N).Nkind = N_Aspect_Specification
423 or else NT (N).Nkind = N_Pragma);
427 function Classifications
428 (N : Node_Id) return Node_Id is
431 or else NT (N).Nkind = N_Contract);
435 function Cleanup_Actions
436 (N : Node_Id) return List_Id is
439 or else NT (N).Nkind = N_Block_Statement);
443 function Comes_From_Extended_Return_Statement
444 (N : Node_Id) return Boolean is
447 or else NT (N).Nkind = N_Simple_Return_Statement);
449 end Comes_From_Extended_Return_Statement;
451 function Compile_Time_Known_Aggregate
452 (N : Node_Id) return Boolean is
455 or else NT (N).Nkind = N_Aggregate);
457 end Compile_Time_Known_Aggregate;
459 function Component_Associations
460 (N : Node_Id) return List_Id is
463 or else NT (N).Nkind = N_Aggregate
464 or else NT (N).Nkind = N_Extension_Aggregate);
466 end Component_Associations;
468 function Component_Clauses
469 (N : Node_Id) return List_Id is
472 or else NT (N).Nkind = N_Record_Representation_Clause);
474 end Component_Clauses;
476 function Component_Definition
477 (N : Node_Id) return Node_Id is
480 or else NT (N).Nkind = N_Component_Declaration
481 or else NT (N).Nkind = N_Constrained_Array_Definition
482 or else NT (N).Nkind = N_Unconstrained_Array_Definition);
484 end Component_Definition;
486 function Component_Items
487 (N : Node_Id) return List_Id is
490 or else NT (N).Nkind = N_Component_List);
494 function Component_List
495 (N : Node_Id) return Node_Id is
498 or else NT (N).Nkind = N_Record_Definition
499 or else NT (N).Nkind = N_Variant);
503 function Component_Name
504 (N : Node_Id) return Node_Id is
507 or else NT (N).Nkind = N_Component_Clause);
511 function Componentwise_Assignment
512 (N : Node_Id) return Boolean is
515 or else NT (N).Nkind = N_Assignment_Statement);
517 end Componentwise_Assignment;
520 (N : Node_Id) return Node_Id is
523 or else NT (N).Nkind = N_Accept_Alternative
524 or else NT (N).Nkind = N_Delay_Alternative
525 or else NT (N).Nkind = N_Elsif_Part
526 or else NT (N).Nkind = N_Entry_Body_Formal_Part
527 or else NT (N).Nkind = N_Exit_Statement
528 or else NT (N).Nkind = N_If_Statement
529 or else NT (N).Nkind = N_Iteration_Scheme
530 or else NT (N).Nkind = N_Quantified_Expression
531 or else NT (N).Nkind = N_Raise_Constraint_Error
532 or else NT (N).Nkind = N_Raise_Program_Error
533 or else NT (N).Nkind = N_Raise_Storage_Error
534 or else NT (N).Nkind = N_Terminate_Alternative);
538 function Condition_Actions
539 (N : Node_Id) return List_Id is
542 or else NT (N).Nkind = N_Elsif_Part
543 or else NT (N).Nkind = N_Iteration_Scheme);
545 end Condition_Actions;
547 function Config_Pragmas
548 (N : Node_Id) return List_Id is
551 or else NT (N).Nkind = N_Compilation_Unit_Aux);
555 function Constant_Present
556 (N : Node_Id) return Boolean is
559 or else NT (N).Nkind = N_Access_Definition
560 or else NT (N).Nkind = N_Access_To_Object_Definition
561 or else NT (N).Nkind = N_Object_Declaration);
563 end Constant_Present;
566 (N : Node_Id) return Node_Id is
569 or else NT (N).Nkind = N_Subtype_Indication);
574 (N : Node_Id) return List_Id is
577 or else NT (N).Nkind = N_Index_Or_Discriminant_Constraint);
581 function Context_Installed
582 (N : Node_Id) return Boolean is
585 or else NT (N).Nkind = N_With_Clause);
587 end Context_Installed;
589 function Context_Items
590 (N : Node_Id) return List_Id is
593 or else NT (N).Nkind = N_Compilation_Unit);
597 function Context_Pending
598 (N : Node_Id) return Boolean is
601 or else NT (N).Nkind = N_Compilation_Unit);
605 function Contract_Test_Cases
606 (N : Node_Id) return Node_Id is
609 or else NT (N).Nkind = N_Contract);
611 end Contract_Test_Cases;
613 function Controlling_Argument
614 (N : Node_Id) return Node_Id is
617 or else NT (N).Nkind = N_Function_Call
618 or else NT (N).Nkind = N_Procedure_Call_Statement);
620 end Controlling_Argument;
622 function Conversion_OK
623 (N : Node_Id) return Boolean is
626 or else NT (N).Nkind = N_Type_Conversion);
630 function Convert_To_Return_False
631 (N : Node_Id) return Boolean is
634 or else NT (N).Nkind = N_Raise_Expression);
636 end Convert_To_Return_False;
638 function Corresponding_Aspect
639 (N : Node_Id) return Node_Id is
642 or else NT (N).Nkind = N_Pragma);
644 end Corresponding_Aspect;
646 function Corresponding_Body
647 (N : Node_Id) return Node_Id is
650 or else NT (N).Nkind = N_Entry_Declaration
651 or else NT (N).Nkind = N_Generic_Package_Declaration
652 or else NT (N).Nkind = N_Generic_Subprogram_Declaration
653 or else NT (N).Nkind = N_Package_Body_Stub
654 or else NT (N).Nkind = N_Package_Declaration
655 or else NT (N).Nkind = N_Protected_Body_Stub
656 or else NT (N).Nkind = N_Protected_Type_Declaration
657 or else NT (N).Nkind = N_Subprogram_Body_Stub
658 or else NT (N).Nkind = N_Subprogram_Declaration
659 or else NT (N).Nkind = N_Task_Body_Stub
660 or else NT (N).Nkind = N_Task_Type_Declaration);
662 end Corresponding_Body;
664 function Corresponding_Formal_Spec
665 (N : Node_Id) return Node_Id is
668 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration);
670 end Corresponding_Formal_Spec;
672 function Corresponding_Generic_Association
673 (N : Node_Id) return Node_Id is
676 or else NT (N).Nkind = N_Object_Declaration
677 or else NT (N).Nkind = N_Object_Renaming_Declaration);
679 end Corresponding_Generic_Association;
681 function Corresponding_Integer_Value
682 (N : Node_Id) return Uint is
685 or else NT (N).Nkind = N_Real_Literal);
687 end Corresponding_Integer_Value;
689 function Corresponding_Spec
690 (N : Node_Id) return Node_Id is
693 or else NT (N).Nkind = N_Expression_Function
694 or else NT (N).Nkind = N_Package_Body
695 or else NT (N).Nkind = N_Protected_Body
696 or else NT (N).Nkind = N_Subprogram_Body
697 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration
698 or else NT (N).Nkind = N_Task_Body
699 or else NT (N).Nkind = N_With_Clause);
701 end Corresponding_Spec;
703 function Corresponding_Spec_Of_Stub
704 (N : Node_Id) return Entity_Id is
707 or else NT (N).Nkind = N_Package_Body_Stub
708 or else NT (N).Nkind = N_Protected_Body_Stub
709 or else NT (N).Nkind = N_Subprogram_Body_Stub
710 or else NT (N).Nkind = N_Task_Body_Stub);
712 end Corresponding_Spec_Of_Stub;
714 function Corresponding_Stub
715 (N : Node_Id) return Node_Id is
718 or else NT (N).Nkind = N_Subunit);
720 end Corresponding_Stub;
722 function Dcheck_Function
723 (N : Node_Id) return Entity_Id is
726 or else NT (N).Nkind = N_Variant);
730 function Declarations
731 (N : Node_Id) return List_Id is
734 or else NT (N).Nkind = N_Accept_Statement
735 or else NT (N).Nkind = N_Block_Statement
736 or else NT (N).Nkind = N_Compilation_Unit_Aux
737 or else NT (N).Nkind = N_Entry_Body
738 or else NT (N).Nkind = N_Package_Body
739 or else NT (N).Nkind = N_Protected_Body
740 or else NT (N).Nkind = N_Subprogram_Body
741 or else NT (N).Nkind = N_Task_Body);
745 function Default_Expression
746 (N : Node_Id) return Node_Id is
749 or else NT (N).Nkind = N_Formal_Object_Declaration
750 or else NT (N).Nkind = N_Parameter_Specification);
752 end Default_Expression;
754 function Default_Storage_Pool
755 (N : Node_Id) return Node_Id is
758 or else NT (N).Nkind = N_Compilation_Unit_Aux);
760 end Default_Storage_Pool;
762 function Default_Name
763 (N : Node_Id) return Node_Id is
766 or else NT (N).Nkind = N_Formal_Abstract_Subprogram_Declaration
767 or else NT (N).Nkind = N_Formal_Concrete_Subprogram_Declaration);
771 function Defining_Identifier
772 (N : Node_Id) return Entity_Id is
775 or else NT (N).Nkind = N_Component_Declaration
776 or else NT (N).Nkind = N_Defining_Program_Unit_Name
777 or else NT (N).Nkind = N_Discriminant_Specification
778 or else NT (N).Nkind = N_Entry_Body
779 or else NT (N).Nkind = N_Entry_Declaration
780 or else NT (N).Nkind = N_Entry_Index_Specification
781 or else NT (N).Nkind = N_Exception_Declaration
782 or else NT (N).Nkind = N_Exception_Renaming_Declaration
783 or else NT (N).Nkind = N_Formal_Object_Declaration
784 or else NT (N).Nkind = N_Formal_Package_Declaration
785 or else NT (N).Nkind = N_Formal_Type_Declaration
786 or else NT (N).Nkind = N_Full_Type_Declaration
787 or else NT (N).Nkind = N_Implicit_Label_Declaration
788 or else NT (N).Nkind = N_Incomplete_Type_Declaration
789 or else NT (N).Nkind = N_Iterator_Specification
790 or else NT (N).Nkind = N_Loop_Parameter_Specification
791 or else NT (N).Nkind = N_Number_Declaration
792 or else NT (N).Nkind = N_Object_Declaration
793 or else NT (N).Nkind = N_Object_Renaming_Declaration
794 or else NT (N).Nkind = N_Package_Body_Stub
795 or else NT (N).Nkind = N_Parameter_Specification
796 or else NT (N).Nkind = N_Private_Extension_Declaration
797 or else NT (N).Nkind = N_Private_Type_Declaration
798 or else NT (N).Nkind = N_Protected_Body
799 or else NT (N).Nkind = N_Protected_Body_Stub
800 or else NT (N).Nkind = N_Protected_Type_Declaration
801 or else NT (N).Nkind = N_Single_Protected_Declaration
802 or else NT (N).Nkind = N_Single_Task_Declaration
803 or else NT (N).Nkind = N_Subtype_Declaration
804 or else NT (N).Nkind = N_Task_Body
805 or else NT (N).Nkind = N_Task_Body_Stub
806 or else NT (N).Nkind = N_Task_Type_Declaration);
808 end Defining_Identifier;
810 function Defining_Unit_Name
811 (N : Node_Id) return Node_Id is
814 or else NT (N).Nkind = N_Function_Instantiation
815 or else NT (N).Nkind = N_Function_Specification
816 or else NT (N).Nkind = N_Generic_Function_Renaming_Declaration
817 or else NT (N).Nkind = N_Generic_Package_Renaming_Declaration
818 or else NT (N).Nkind = N_Generic_Procedure_Renaming_Declaration
819 or else NT (N).Nkind = N_Package_Body
820 or else NT (N).Nkind = N_Package_Instantiation
821 or else NT (N).Nkind = N_Package_Renaming_Declaration
822 or else NT (N).Nkind = N_Package_Specification
823 or else NT (N).Nkind = N_Procedure_Instantiation
824 or else NT (N).Nkind = N_Procedure_Specification);
826 end Defining_Unit_Name;
828 function Delay_Alternative
829 (N : Node_Id) return Node_Id is
832 or else NT (N).Nkind = N_Timed_Entry_Call);
834 end Delay_Alternative;
836 function Delay_Statement
837 (N : Node_Id) return Node_Id is
840 or else NT (N).Nkind = N_Delay_Alternative);
844 function Delta_Expression
845 (N : Node_Id) return Node_Id is
848 or else NT (N).Nkind = N_Decimal_Fixed_Point_Definition
849 or else NT (N).Nkind = N_Delta_Constraint
850 or else NT (N).Nkind = N_Ordinary_Fixed_Point_Definition);
852 end Delta_Expression;
854 function Digits_Expression
855 (N : Node_Id) return Node_Id is
858 or else NT (N).Nkind = N_Decimal_Fixed_Point_Definition
859 or else NT (N).Nkind = N_Digits_Constraint
860 or else NT (N).Nkind = N_Floating_Point_Definition);
862 end Digits_Expression;
864 function Discr_Check_Funcs_Built
865 (N : Node_Id) return Boolean is
868 or else NT (N).Nkind = N_Full_Type_Declaration);
870 end Discr_Check_Funcs_Built;
872 function Discrete_Choices
873 (N : Node_Id) return List_Id is
876 or else NT (N).Nkind = N_Case_Expression_Alternative
877 or else NT (N).Nkind = N_Case_Statement_Alternative
878 or else NT (N).Nkind = N_Variant);
880 end Discrete_Choices;
882 function Discrete_Range
883 (N : Node_Id) return Node_Id is
886 or else NT (N).Nkind = N_Slice);
890 function Discrete_Subtype_Definition
891 (N : Node_Id) return Node_Id is
894 or else NT (N).Nkind = N_Entry_Declaration
895 or else NT (N).Nkind = N_Entry_Index_Specification
896 or else NT (N).Nkind = N_Loop_Parameter_Specification);
898 end Discrete_Subtype_Definition;
900 function Discrete_Subtype_Definitions
901 (N : Node_Id) return List_Id is
904 or else NT (N).Nkind = N_Constrained_Array_Definition);
906 end Discrete_Subtype_Definitions;
908 function Discriminant_Specifications
909 (N : Node_Id) return List_Id is
912 or else NT (N).Nkind = N_Formal_Type_Declaration
913 or else NT (N).Nkind = N_Full_Type_Declaration
914 or else NT (N).Nkind = N_Incomplete_Type_Declaration
915 or else NT (N).Nkind = N_Private_Extension_Declaration
916 or else NT (N).Nkind = N_Private_Type_Declaration
917 or else NT (N).Nkind = N_Protected_Type_Declaration
918 or else NT (N).Nkind = N_Task_Type_Declaration);
920 end Discriminant_Specifications;
922 function Discriminant_Type
923 (N : Node_Id) return Node_Id is
926 or else NT (N).Nkind = N_Discriminant_Specification);
928 end Discriminant_Type;
930 function Do_Accessibility_Check
931 (N : Node_Id) return Boolean is
934 or else NT (N).Nkind = N_Parameter_Specification);
936 end Do_Accessibility_Check;
938 function Do_Discriminant_Check
939 (N : Node_Id) return Boolean is
942 or else NT (N).Nkind = N_Assignment_Statement
943 or else NT (N).Nkind = N_Selected_Component
944 or else NT (N).Nkind = N_Type_Conversion);
946 end Do_Discriminant_Check;
948 function Do_Division_Check
949 (N : Node_Id) return Boolean is
952 or else NT (N).Nkind = N_Op_Divide
953 or else NT (N).Nkind = N_Op_Mod
954 or else NT (N).Nkind = N_Op_Rem);
956 end Do_Division_Check;
958 function Do_Length_Check
959 (N : Node_Id) return Boolean is
962 or else NT (N).Nkind = N_Assignment_Statement
963 or else NT (N).Nkind = N_Op_And
964 or else NT (N).Nkind = N_Op_Or
965 or else NT (N).Nkind = N_Op_Xor
966 or else NT (N).Nkind = N_Type_Conversion);
970 function Do_Overflow_Check
971 (N : Node_Id) return Boolean is
974 or else NT (N).Nkind in N_Op
975 or else NT (N).Nkind = N_Attribute_Reference
976 or else NT (N).Nkind = N_Case_Expression
977 or else NT (N).Nkind = N_If_Expression
978 or else NT (N).Nkind = N_Type_Conversion);
980 end Do_Overflow_Check;
982 function Do_Range_Check
983 (N : Node_Id) return Boolean is
986 or else NT (N).Nkind in N_Subexpr);
990 function Do_Storage_Check
991 (N : Node_Id) return Boolean is
994 or else NT (N).Nkind = N_Allocator
995 or else NT (N).Nkind = N_Subprogram_Body);
997 end Do_Storage_Check;
999 function Do_Tag_Check
1000 (N : Node_Id) return Boolean is
1002 pragma Assert (False
1003 or else NT (N).Nkind = N_Assignment_Statement
1004 or else NT (N).Nkind = N_Extended_Return_Statement
1005 or else NT (N).Nkind = N_Function_Call
1006 or else NT (N).Nkind = N_Procedure_Call_Statement
1007 or else NT (N).Nkind = N_Simple_Return_Statement
1008 or else NT (N).Nkind = N_Type_Conversion);
1012 function Elaborate_All_Desirable
1013 (N : Node_Id) return Boolean is
1015 pragma Assert (False
1016 or else NT (N).Nkind = N_With_Clause);
1018 end Elaborate_All_Desirable;
1020 function Elaborate_All_Present
1021 (N : Node_Id) return Boolean is
1023 pragma Assert (False
1024 or else NT (N).Nkind = N_With_Clause);
1026 end Elaborate_All_Present;
1028 function Elaborate_Desirable
1029 (N : Node_Id) return Boolean is
1031 pragma Assert (False
1032 or else NT (N).Nkind = N_With_Clause);
1034 end Elaborate_Desirable;
1036 function Elaborate_Present
1037 (N : Node_Id) return Boolean is
1039 pragma Assert (False
1040 or else NT (N).Nkind = N_With_Clause);
1042 end Elaborate_Present;
1044 function Elaboration_Boolean
1045 (N : Node_Id) return Node_Id is
1047 pragma Assert (False
1048 or else NT (N).Nkind = N_Function_Specification
1049 or else NT (N).Nkind = N_Procedure_Specification);
1051 end Elaboration_Boolean;
1053 function Else_Actions
1054 (N : Node_Id) return List_Id is
1056 pragma Assert (False
1057 or else NT (N).Nkind = N_If_Expression);
1061 function Else_Statements
1062 (N : Node_Id) return List_Id is
1064 pragma Assert (False
1065 or else NT (N).Nkind = N_Conditional_Entry_Call
1066 or else NT (N).Nkind = N_If_Statement
1067 or else NT (N).Nkind = N_Selective_Accept);
1069 end Else_Statements;
1071 function Elsif_Parts
1072 (N : Node_Id) return List_Id is
1074 pragma Assert (False
1075 or else NT (N).Nkind = N_If_Statement);
1079 function Enclosing_Variant
1080 (N : Node_Id) return Node_Id is
1082 pragma Assert (False
1083 or else NT (N).Nkind = N_Variant);
1085 end Enclosing_Variant;
1088 (N : Node_Id) return Node_Id is
1090 pragma Assert (False
1091 or else NT (N).Nkind = N_Enumeration_Type_Definition
1092 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements
1093 or else NT (N).Nkind = N_Loop_Statement
1094 or else NT (N).Nkind = N_Package_Specification
1095 or else NT (N).Nkind = N_Protected_Body
1096 or else NT (N).Nkind = N_Protected_Definition
1097 or else NT (N).Nkind = N_Record_Definition
1098 or else NT (N).Nkind = N_Task_Definition);
1103 (N : Node_Id) return Uint is
1105 pragma Assert (False
1106 or else NT (N).Nkind = N_Case_Statement
1107 or else NT (N).Nkind = N_If_Statement);
1112 (N : Node_Id) return Node_Id is
1114 pragma Assert (False
1115 or else NT (N).Nkind in N_Has_Entity
1116 or else NT (N).Nkind = N_Aspect_Specification
1117 or else NT (N).Nkind = N_Attribute_Definition_Clause
1118 or else NT (N).Nkind = N_Freeze_Entity
1119 or else NT (N).Nkind = N_Freeze_Generic_Entity);
1123 function Entity_Or_Associated_Node
1124 (N : Node_Id) return Node_Id is
1126 pragma Assert (False
1127 or else NT (N).Nkind in N_Has_Entity
1128 or else NT (N).Nkind = N_Freeze_Entity);
1130 end Entity_Or_Associated_Node;
1132 function Entry_Body_Formal_Part
1133 (N : Node_Id) return Node_Id is
1135 pragma Assert (False
1136 or else NT (N).Nkind = N_Entry_Body);
1138 end Entry_Body_Formal_Part;
1140 function Entry_Call_Alternative
1141 (N : Node_Id) return Node_Id is
1143 pragma Assert (False
1144 or else NT (N).Nkind = N_Conditional_Entry_Call
1145 or else NT (N).Nkind = N_Timed_Entry_Call);
1147 end Entry_Call_Alternative;
1149 function Entry_Call_Statement
1150 (N : Node_Id) return Node_Id is
1152 pragma Assert (False
1153 or else NT (N).Nkind = N_Entry_Call_Alternative);
1155 end Entry_Call_Statement;
1157 function Entry_Direct_Name
1158 (N : Node_Id) return Node_Id is
1160 pragma Assert (False
1161 or else NT (N).Nkind = N_Accept_Statement);
1163 end Entry_Direct_Name;
1165 function Entry_Index
1166 (N : Node_Id) return Node_Id is
1168 pragma Assert (False
1169 or else NT (N).Nkind = N_Accept_Statement);
1173 function Entry_Index_Specification
1174 (N : Node_Id) return Node_Id is
1176 pragma Assert (False
1177 or else NT (N).Nkind = N_Entry_Body_Formal_Part);
1179 end Entry_Index_Specification;
1182 (N : Node_Id) return Node_Id is
1184 pragma Assert (False
1185 or else NT (N).Nkind in N_Has_Etype);
1189 function Exception_Choices
1190 (N : Node_Id) return List_Id is
1192 pragma Assert (False
1193 or else NT (N).Nkind = N_Exception_Handler);
1195 end Exception_Choices;
1197 function Exception_Handlers
1198 (N : Node_Id) return List_Id is
1200 pragma Assert (False
1201 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements);
1203 end Exception_Handlers;
1205 function Exception_Junk
1206 (N : Node_Id) return Boolean is
1208 pragma Assert (False
1209 or else NT (N).Nkind = N_Block_Statement
1210 or else NT (N).Nkind = N_Goto_Statement
1211 or else NT (N).Nkind = N_Label
1212 or else NT (N).Nkind = N_Object_Declaration
1213 or else NT (N).Nkind = N_Subtype_Declaration);
1217 function Exception_Label
1218 (N : Node_Id) return Node_Id is
1220 pragma Assert (False
1221 or else NT (N).Nkind = N_Exception_Handler
1222 or else NT (N).Nkind = N_Push_Constraint_Error_Label
1223 or else NT (N).Nkind = N_Push_Program_Error_Label
1224 or else NT (N).Nkind = N_Push_Storage_Error_Label);
1226 end Exception_Label;
1228 function Expansion_Delayed
1229 (N : Node_Id) return Boolean is
1231 pragma Assert (False
1232 or else NT (N).Nkind = N_Aggregate
1233 or else NT (N).Nkind = N_Extension_Aggregate);
1235 end Expansion_Delayed;
1237 function Explicit_Actual_Parameter
1238 (N : Node_Id) return Node_Id is
1240 pragma Assert (False
1241 or else NT (N).Nkind = N_Parameter_Association);
1243 end Explicit_Actual_Parameter;
1245 function Explicit_Generic_Actual_Parameter
1246 (N : Node_Id) return Node_Id is
1248 pragma Assert (False
1249 or else NT (N).Nkind = N_Generic_Association);
1251 end Explicit_Generic_Actual_Parameter;
1254 (N : Node_Id) return Node_Id is
1256 pragma Assert (False
1257 or else NT (N).Nkind = N_Allocator
1258 or else NT (N).Nkind = N_Aspect_Specification
1259 or else NT (N).Nkind = N_Assignment_Statement
1260 or else NT (N).Nkind = N_At_Clause
1261 or else NT (N).Nkind = N_Attribute_Definition_Clause
1262 or else NT (N).Nkind = N_Case_Expression
1263 or else NT (N).Nkind = N_Case_Expression_Alternative
1264 or else NT (N).Nkind = N_Case_Statement
1265 or else NT (N).Nkind = N_Code_Statement
1266 or else NT (N).Nkind = N_Component_Association
1267 or else NT (N).Nkind = N_Component_Declaration
1268 or else NT (N).Nkind = N_Delay_Relative_Statement
1269 or else NT (N).Nkind = N_Delay_Until_Statement
1270 or else NT (N).Nkind = N_Discriminant_Association
1271 or else NT (N).Nkind = N_Discriminant_Specification
1272 or else NT (N).Nkind = N_Exception_Declaration
1273 or else NT (N).Nkind = N_Expression_Function
1274 or else NT (N).Nkind = N_Expression_With_Actions
1275 or else NT (N).Nkind = N_Free_Statement
1276 or else NT (N).Nkind = N_Mod_Clause
1277 or else NT (N).Nkind = N_Modular_Type_Definition
1278 or else NT (N).Nkind = N_Number_Declaration
1279 or else NT (N).Nkind = N_Object_Declaration
1280 or else NT (N).Nkind = N_Parameter_Specification
1281 or else NT (N).Nkind = N_Pragma_Argument_Association
1282 or else NT (N).Nkind = N_Qualified_Expression
1283 or else NT (N).Nkind = N_Raise_Expression
1284 or else NT (N).Nkind = N_Raise_Statement
1285 or else NT (N).Nkind = N_Simple_Return_Statement
1286 or else NT (N).Nkind = N_Type_Conversion
1287 or else NT (N).Nkind = N_Unchecked_Expression
1288 or else NT (N).Nkind = N_Unchecked_Type_Conversion);
1292 function Expressions
1293 (N : Node_Id) return List_Id is
1295 pragma Assert (False
1296 or else NT (N).Nkind = N_Aggregate
1297 or else NT (N).Nkind = N_Attribute_Reference
1298 or else NT (N).Nkind = N_Extension_Aggregate
1299 or else NT (N).Nkind = N_If_Expression
1300 or else NT (N).Nkind = N_Indexed_Component);
1305 (N : Node_Id) return Node_Id is
1307 pragma Assert (False
1308 or else NT (N).Nkind = N_Component_Clause);
1312 function First_Inlined_Subprogram
1313 (N : Node_Id) return Entity_Id is
1315 pragma Assert (False
1316 or else NT (N).Nkind = N_Compilation_Unit);
1318 end First_Inlined_Subprogram;
1321 (N : Node_Id) return Boolean is
1323 pragma Assert (False
1324 or else NT (N).Nkind = N_With_Clause);
1328 function First_Named_Actual
1329 (N : Node_Id) return Node_Id is
1331 pragma Assert (False
1332 or else NT (N).Nkind = N_Entry_Call_Statement
1333 or else NT (N).Nkind = N_Function_Call
1334 or else NT (N).Nkind = N_Procedure_Call_Statement);
1336 end First_Named_Actual;
1338 function First_Real_Statement
1339 (N : Node_Id) return Node_Id is
1341 pragma Assert (False
1342 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements);
1344 end First_Real_Statement;
1346 function First_Subtype_Link
1347 (N : Node_Id) return Entity_Id is
1349 pragma Assert (False
1350 or else NT (N).Nkind = N_Freeze_Entity);
1352 end First_Subtype_Link;
1354 function Float_Truncate
1355 (N : Node_Id) return Boolean is
1357 pragma Assert (False
1358 or else NT (N).Nkind = N_Type_Conversion);
1362 function Formal_Type_Definition
1363 (N : Node_Id) return Node_Id is
1365 pragma Assert (False
1366 or else NT (N).Nkind = N_Formal_Type_Declaration);
1368 end Formal_Type_Definition;
1370 function Forwards_OK
1371 (N : Node_Id) return Boolean is
1373 pragma Assert (False
1374 or else NT (N).Nkind = N_Assignment_Statement);
1378 function From_Aspect_Specification
1379 (N : Node_Id) return Boolean is
1381 pragma Assert (False
1382 or else NT (N).Nkind = N_Attribute_Definition_Clause
1383 or else NT (N).Nkind = N_Pragma);
1385 end From_Aspect_Specification;
1387 function From_At_End
1388 (N : Node_Id) return Boolean is
1390 pragma Assert (False
1391 or else NT (N).Nkind = N_Raise_Statement);
1395 function From_At_Mod
1396 (N : Node_Id) return Boolean is
1398 pragma Assert (False
1399 or else NT (N).Nkind = N_Attribute_Definition_Clause);
1403 function From_Default
1404 (N : Node_Id) return Boolean is
1406 pragma Assert (False
1407 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration);
1411 function Generalized_Indexing
1412 (N : Node_Id) return Node_Id is
1414 pragma Assert (False
1415 or else NT (N).Nkind = N_Indexed_Component);
1417 end Generalized_Indexing;
1419 function Generic_Associations
1420 (N : Node_Id) return List_Id is
1422 pragma Assert (False
1423 or else NT (N).Nkind = N_Formal_Package_Declaration
1424 or else NT (N).Nkind = N_Function_Instantiation
1425 or else NT (N).Nkind = N_Package_Instantiation
1426 or else NT (N).Nkind = N_Procedure_Instantiation);
1428 end Generic_Associations;
1430 function Generic_Formal_Declarations
1431 (N : Node_Id) return List_Id is
1433 pragma Assert (False
1434 or else NT (N).Nkind = N_Generic_Package_Declaration
1435 or else NT (N).Nkind = N_Generic_Subprogram_Declaration);
1437 end Generic_Formal_Declarations;
1439 function Generic_Parent
1440 (N : Node_Id) return Node_Id is
1442 pragma Assert (False
1443 or else NT (N).Nkind = N_Function_Specification
1444 or else NT (N).Nkind = N_Package_Specification
1445 or else NT (N).Nkind = N_Procedure_Specification);
1449 function Generic_Parent_Type
1450 (N : Node_Id) return Node_Id is
1452 pragma Assert (False
1453 or else NT (N).Nkind = N_Subtype_Declaration);
1455 end Generic_Parent_Type;
1457 function Handled_Statement_Sequence
1458 (N : Node_Id) return Node_Id is
1460 pragma Assert (False
1461 or else NT (N).Nkind = N_Accept_Statement
1462 or else NT (N).Nkind = N_Block_Statement
1463 or else NT (N).Nkind = N_Entry_Body
1464 or else NT (N).Nkind = N_Extended_Return_Statement
1465 or else NT (N).Nkind = N_Package_Body
1466 or else NT (N).Nkind = N_Subprogram_Body
1467 or else NT (N).Nkind = N_Task_Body);
1469 end Handled_Statement_Sequence;
1471 function Handler_List_Entry
1472 (N : Node_Id) return Node_Id is
1474 pragma Assert (False
1475 or else NT (N).Nkind = N_Object_Declaration);
1477 end Handler_List_Entry;
1479 function Has_Created_Identifier
1480 (N : Node_Id) return Boolean is
1482 pragma Assert (False
1483 or else NT (N).Nkind = N_Block_Statement
1484 or else NT (N).Nkind = N_Loop_Statement);
1486 end Has_Created_Identifier;
1488 function Has_Dereference_Action
1489 (N : Node_Id) return Boolean is
1491 pragma Assert (False
1492 or else NT (N).Nkind = N_Explicit_Dereference);
1494 end Has_Dereference_Action;
1496 function Has_Dynamic_Length_Check
1497 (N : Node_Id) return Boolean is
1499 pragma Assert (False
1500 or else NT (N).Nkind in N_Subexpr);
1502 end Has_Dynamic_Length_Check;
1504 function Has_Dynamic_Range_Check
1505 (N : Node_Id) return Boolean is
1507 pragma Assert (False
1508 or else NT (N).Nkind = N_Subtype_Declaration
1509 or else NT (N).Nkind in N_Subexpr);
1511 end Has_Dynamic_Range_Check;
1513 function Has_Init_Expression
1514 (N : Node_Id) return Boolean is
1516 pragma Assert (False
1517 or else NT (N).Nkind = N_Object_Declaration);
1519 end Has_Init_Expression;
1521 function Has_Local_Raise
1522 (N : Node_Id) return Boolean is
1524 pragma Assert (False
1525 or else NT (N).Nkind = N_Exception_Handler);
1527 end Has_Local_Raise;
1529 function Has_No_Elaboration_Code
1530 (N : Node_Id) return Boolean is
1532 pragma Assert (False
1533 or else NT (N).Nkind = N_Compilation_Unit);
1535 end Has_No_Elaboration_Code;
1537 function Has_Pragma_Suppress_All
1538 (N : Node_Id) return Boolean is
1540 pragma Assert (False
1541 or else NT (N).Nkind = N_Compilation_Unit);
1543 end Has_Pragma_Suppress_All;
1545 function Has_Private_View
1546 (N : Node_Id) return Boolean is
1548 pragma Assert (False
1549 or else NT (N).Nkind in N_Op
1550 or else NT (N).Nkind = N_Character_Literal
1551 or else NT (N).Nkind = N_Expanded_Name
1552 or else NT (N).Nkind = N_Identifier
1553 or else NT (N).Nkind = N_Operator_Symbol);
1555 end Has_Private_View;
1557 function Has_Relative_Deadline_Pragma
1558 (N : Node_Id) return Boolean is
1560 pragma Assert (False
1561 or else NT (N).Nkind = N_Subprogram_Body
1562 or else NT (N).Nkind = N_Task_Definition);
1564 end Has_Relative_Deadline_Pragma;
1566 function Has_Self_Reference
1567 (N : Node_Id) return Boolean is
1569 pragma Assert (False
1570 or else NT (N).Nkind = N_Aggregate
1571 or else NT (N).Nkind = N_Extension_Aggregate);
1573 end Has_Self_Reference;
1575 function Has_SP_Choice
1576 (N : Node_Id) return Boolean is
1578 pragma Assert (False
1579 or else NT (N).Nkind = N_Case_Expression_Alternative
1580 or else NT (N).Nkind = N_Case_Statement_Alternative
1581 or else NT (N).Nkind = N_Variant);
1585 function Has_Storage_Size_Pragma
1586 (N : Node_Id) return Boolean is
1588 pragma Assert (False
1589 or else NT (N).Nkind = N_Task_Definition);
1591 end Has_Storage_Size_Pragma;
1593 function Has_Wide_Character
1594 (N : Node_Id) return Boolean is
1596 pragma Assert (False
1597 or else NT (N).Nkind = N_String_Literal);
1599 end Has_Wide_Character;
1601 function Has_Wide_Wide_Character
1602 (N : Node_Id) return Boolean is
1604 pragma Assert (False
1605 or else NT (N).Nkind = N_String_Literal);
1607 end Has_Wide_Wide_Character;
1609 function Header_Size_Added
1610 (N : Node_Id) return Boolean is
1612 pragma Assert (False
1613 or else NT (N).Nkind = N_Attribute_Reference);
1615 end Header_Size_Added;
1617 function Hidden_By_Use_Clause
1618 (N : Node_Id) return Elist_Id is
1620 pragma Assert (False
1621 or else NT (N).Nkind = N_Use_Package_Clause
1622 or else NT (N).Nkind = N_Use_Type_Clause);
1624 end Hidden_By_Use_Clause;
1627 (N : Node_Id) return Node_Id is
1629 pragma Assert (False
1630 or else NT (N).Nkind = N_Range
1631 or else NT (N).Nkind = N_Real_Range_Specification
1632 or else NT (N).Nkind = N_Signed_Integer_Type_Definition);
1637 (N : Node_Id) return Node_Id is
1639 pragma Assert (False
1640 or else NT (N).Nkind = N_Aspect_Specification
1641 or else NT (N).Nkind = N_At_Clause
1642 or else NT (N).Nkind = N_Block_Statement
1643 or else NT (N).Nkind = N_Designator
1644 or else NT (N).Nkind = N_Enumeration_Representation_Clause
1645 or else NT (N).Nkind = N_Label
1646 or else NT (N).Nkind = N_Loop_Statement
1647 or else NT (N).Nkind = N_Record_Representation_Clause);
1651 function Implicit_With
1652 (N : Node_Id) return Boolean is
1654 pragma Assert (False
1655 or else NT (N).Nkind = N_With_Clause);
1659 function Implicit_With_From_Instantiation
1660 (N : Node_Id) return Boolean is
1662 pragma Assert (False
1663 or else NT (N).Nkind = N_With_Clause);
1665 end Implicit_With_From_Instantiation;
1667 function Interface_List
1668 (N : Node_Id) return List_Id is
1670 pragma Assert (False
1671 or else NT (N).Nkind = N_Derived_Type_Definition
1672 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
1673 or else NT (N).Nkind = N_Private_Extension_Declaration
1674 or else NT (N).Nkind = N_Protected_Type_Declaration
1675 or else NT (N).Nkind = N_Record_Definition
1676 or else NT (N).Nkind = N_Single_Protected_Declaration
1677 or else NT (N).Nkind = N_Single_Task_Declaration
1678 or else NT (N).Nkind = N_Task_Type_Declaration);
1682 function Interface_Present
1683 (N : Node_Id) return Boolean is
1685 pragma Assert (False
1686 or else NT (N).Nkind = N_Derived_Type_Definition
1687 or else NT (N).Nkind = N_Record_Definition);
1689 end Interface_Present;
1691 function Import_Interface_Present
1692 (N : Node_Id) return Boolean is
1694 pragma Assert (False
1695 or else NT (N).Nkind = N_Pragma);
1697 end Import_Interface_Present;
1700 (N : Node_Id) return Boolean is
1702 pragma Assert (False
1703 or else NT (N).Nkind = N_Formal_Object_Declaration
1704 or else NT (N).Nkind = N_Parameter_Specification);
1708 function Includes_Infinities
1709 (N : Node_Id) return Boolean is
1711 pragma Assert (False
1712 or else NT (N).Nkind = N_Range);
1714 end Includes_Infinities;
1716 function Inherited_Discriminant
1717 (N : Node_Id) return Boolean is
1719 pragma Assert (False
1720 or else NT (N).Nkind = N_Component_Association);
1722 end Inherited_Discriminant;
1724 function Instance_Spec
1725 (N : Node_Id) return Node_Id is
1727 pragma Assert (False
1728 or else NT (N).Nkind = N_Formal_Package_Declaration
1729 or else NT (N).Nkind = N_Function_Instantiation
1730 or else NT (N).Nkind = N_Package_Instantiation
1731 or else NT (N).Nkind = N_Procedure_Instantiation);
1736 (N : Node_Id) return Uint is
1738 pragma Assert (False
1739 or else NT (N).Nkind = N_Integer_Literal);
1743 function Is_Accessibility_Actual
1744 (N : Node_Id) return Boolean is
1746 pragma Assert (False
1747 or else NT (N).Nkind = N_Parameter_Association);
1749 end Is_Accessibility_Actual;
1751 function Is_Asynchronous_Call_Block
1752 (N : Node_Id) return Boolean is
1754 pragma Assert (False
1755 or else NT (N).Nkind = N_Block_Statement);
1757 end Is_Asynchronous_Call_Block;
1759 function Is_Boolean_Aspect
1760 (N : Node_Id) return Boolean is
1762 pragma Assert (False
1763 or else NT (N).Nkind = N_Aspect_Specification);
1765 end Is_Boolean_Aspect;
1768 (N : Node_Id) return Boolean is
1770 pragma Assert (False
1771 or else NT (N).Nkind = N_Aspect_Specification
1772 or else NT (N).Nkind = N_Pragma);
1776 function Is_Component_Left_Opnd
1777 (N : Node_Id) return Boolean is
1779 pragma Assert (False
1780 or else NT (N).Nkind = N_Op_Concat);
1782 end Is_Component_Left_Opnd;
1784 function Is_Component_Right_Opnd
1785 (N : Node_Id) return Boolean is
1787 pragma Assert (False
1788 or else NT (N).Nkind = N_Op_Concat);
1790 end Is_Component_Right_Opnd;
1792 function Is_Controlling_Actual
1793 (N : Node_Id) return Boolean is
1795 pragma Assert (False
1796 or else NT (N).Nkind in N_Subexpr);
1798 end Is_Controlling_Actual;
1800 function Is_Disabled
1801 (N : Node_Id) return Boolean is
1803 pragma Assert (False
1804 or else NT (N).Nkind = N_Aspect_Specification
1805 or else NT (N).Nkind = N_Pragma);
1809 function Is_Delayed_Aspect
1810 (N : Node_Id) return Boolean is
1812 pragma Assert (False
1813 or else NT (N).Nkind = N_Aspect_Specification
1814 or else NT (N).Nkind = N_Attribute_Definition_Clause
1815 or else NT (N).Nkind = N_Pragma);
1817 end Is_Delayed_Aspect;
1819 function Is_Dynamic_Coextension
1820 (N : Node_Id) return Boolean is
1822 pragma Assert (False
1823 or else NT (N).Nkind = N_Allocator);
1825 end Is_Dynamic_Coextension;
1828 (N : Node_Id) return Boolean is
1830 pragma Assert (False
1831 or else NT (N).Nkind = N_If_Expression);
1835 function Is_Entry_Barrier_Function
1836 (N : Node_Id) return Boolean is
1838 pragma Assert (False
1839 or else NT (N).Nkind = N_Subprogram_Body);
1841 end Is_Entry_Barrier_Function;
1843 function Is_Expanded_Build_In_Place_Call
1844 (N : Node_Id) return Boolean is
1846 pragma Assert (False
1847 or else NT (N).Nkind = N_Function_Call);
1849 end Is_Expanded_Build_In_Place_Call;
1851 function Is_Finalization_Wrapper
1852 (N : Node_Id) return Boolean is
1854 pragma Assert (False
1855 or else NT (N).Nkind = N_Block_Statement);
1857 end Is_Finalization_Wrapper;
1859 function Is_Folded_In_Parser
1860 (N : Node_Id) return Boolean is
1862 pragma Assert (False
1863 or else NT (N).Nkind = N_String_Literal);
1865 end Is_Folded_In_Parser;
1868 (N : Node_Id) return Boolean is
1870 pragma Assert (False
1871 or else NT (N).Nkind = N_Aspect_Specification
1872 or else NT (N).Nkind = N_Pragma);
1876 function Is_In_Discriminant_Check
1877 (N : Node_Id) return Boolean is
1879 pragma Assert (False
1880 or else NT (N).Nkind = N_Selected_Component);
1882 end Is_In_Discriminant_Check;
1884 function Is_Machine_Number
1885 (N : Node_Id) return Boolean is
1887 pragma Assert (False
1888 or else NT (N).Nkind = N_Real_Literal);
1890 end Is_Machine_Number;
1892 function Is_Null_Loop
1893 (N : Node_Id) return Boolean is
1895 pragma Assert (False
1896 or else NT (N).Nkind = N_Loop_Statement);
1900 function Is_Overloaded
1901 (N : Node_Id) return Boolean is
1903 pragma Assert (False
1904 or else NT (N).Nkind in N_Subexpr);
1908 function Is_Power_Of_2_For_Shift
1909 (N : Node_Id) return Boolean is
1911 pragma Assert (False
1912 or else NT (N).Nkind = N_Op_Expon);
1914 end Is_Power_Of_2_For_Shift;
1916 function Is_Prefixed_Call
1917 (N : Node_Id) return Boolean is
1919 pragma Assert (False
1920 or else NT (N).Nkind = N_Selected_Component);
1922 end Is_Prefixed_Call;
1924 function Is_Protected_Subprogram_Body
1925 (N : Node_Id) return Boolean is
1927 pragma Assert (False
1928 or else NT (N).Nkind = N_Subprogram_Body);
1930 end Is_Protected_Subprogram_Body;
1932 function Is_Static_Coextension
1933 (N : Node_Id) return Boolean is
1935 pragma Assert (False
1936 or else NT (N).Nkind = N_Allocator);
1938 end Is_Static_Coextension;
1940 function Is_Static_Expression
1941 (N : Node_Id) return Boolean is
1943 pragma Assert (False
1944 or else NT (N).Nkind in N_Subexpr);
1946 end Is_Static_Expression;
1948 function Is_Subprogram_Descriptor
1949 (N : Node_Id) return Boolean is
1951 pragma Assert (False
1952 or else NT (N).Nkind = N_Object_Declaration);
1954 end Is_Subprogram_Descriptor;
1956 function Is_Task_Allocation_Block
1957 (N : Node_Id) return Boolean is
1959 pragma Assert (False
1960 or else NT (N).Nkind = N_Block_Statement);
1962 end Is_Task_Allocation_Block;
1964 function Is_Task_Master
1965 (N : Node_Id) return Boolean is
1967 pragma Assert (False
1968 or else NT (N).Nkind = N_Block_Statement
1969 or else NT (N).Nkind = N_Subprogram_Body
1970 or else NT (N).Nkind = N_Task_Body);
1974 function Iteration_Scheme
1975 (N : Node_Id) return Node_Id is
1977 pragma Assert (False
1978 or else NT (N).Nkind = N_Loop_Statement);
1980 end Iteration_Scheme;
1982 function Iterator_Specification
1983 (N : Node_Id) return Node_Id is
1985 pragma Assert (False
1986 or else NT (N).Nkind = N_Iteration_Scheme
1987 or else NT (N).Nkind = N_Quantified_Expression);
1989 end Iterator_Specification;
1992 (N : Node_Id) return Node_Id is
1994 pragma Assert (False
1995 or else NT (N).Nkind = N_Itype_Reference);
1999 function Kill_Range_Check
2000 (N : Node_Id) return Boolean is
2002 pragma Assert (False
2003 or else NT (N).Nkind = N_Unchecked_Type_Conversion);
2005 end Kill_Range_Check;
2007 function Label_Construct
2008 (N : Node_Id) return Node_Id is
2010 pragma Assert (False
2011 or else NT (N).Nkind = N_Implicit_Label_Declaration);
2013 end Label_Construct;
2016 (N : Node_Id) return Node_Id is
2018 pragma Assert (False
2019 or else NT (N).Nkind = N_Component_Clause);
2024 (N : Node_Id) return Boolean is
2026 pragma Assert (False
2027 or else NT (N).Nkind = N_With_Clause);
2032 (N : Node_Id) return Node_Id is
2034 pragma Assert (False
2035 or else NT (N).Nkind = N_And_Then
2036 or else NT (N).Nkind = N_In
2037 or else NT (N).Nkind = N_Not_In
2038 or else NT (N).Nkind = N_Or_Else
2039 or else NT (N).Nkind in N_Binary_Op);
2043 function Library_Unit
2044 (N : Node_Id) return Node_Id is
2046 pragma Assert (False
2047 or else NT (N).Nkind = N_Compilation_Unit
2048 or else NT (N).Nkind = N_Package_Body_Stub
2049 or else NT (N).Nkind = N_Protected_Body_Stub
2050 or else NT (N).Nkind = N_Subprogram_Body_Stub
2051 or else NT (N).Nkind = N_Task_Body_Stub
2052 or else NT (N).Nkind = N_With_Clause);
2056 function Limited_View_Installed
2057 (N : Node_Id) return Boolean is
2059 pragma Assert (False
2060 or else NT (N).Nkind = N_Package_Specification
2061 or else NT (N).Nkind = N_With_Clause);
2063 end Limited_View_Installed;
2065 function Limited_Present
2066 (N : Node_Id) return Boolean is
2068 pragma Assert (False
2069 or else NT (N).Nkind = N_Derived_Type_Definition
2070 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
2071 or else NT (N).Nkind = N_Formal_Private_Type_Definition
2072 or else NT (N).Nkind = N_Private_Extension_Declaration
2073 or else NT (N).Nkind = N_Private_Type_Declaration
2074 or else NT (N).Nkind = N_Record_Definition
2075 or else NT (N).Nkind = N_With_Clause);
2077 end Limited_Present;
2080 (N : Node_Id) return List_Id is
2082 pragma Assert (False
2083 or else NT (N).Nkind = N_Enumeration_Type_Definition);
2087 function Local_Raise_Not_OK
2088 (N : Node_Id) return Boolean is
2090 pragma Assert (False
2091 or else NT (N).Nkind = N_Exception_Handler);
2093 end Local_Raise_Not_OK;
2095 function Local_Raise_Statements
2096 (N : Node_Id) return Elist_Id is
2098 pragma Assert (False
2099 or else NT (N).Nkind = N_Exception_Handler);
2101 end Local_Raise_Statements;
2103 function Loop_Actions
2104 (N : Node_Id) return List_Id is
2106 pragma Assert (False
2107 or else NT (N).Nkind = N_Component_Association);
2111 function Loop_Parameter_Specification
2112 (N : Node_Id) return Node_Id is
2114 pragma Assert (False
2115 or else NT (N).Nkind = N_Iteration_Scheme
2116 or else NT (N).Nkind = N_Quantified_Expression);
2118 end Loop_Parameter_Specification;
2121 (N : Node_Id) return Node_Id is
2123 pragma Assert (False
2124 or else NT (N).Nkind = N_Range
2125 or else NT (N).Nkind = N_Real_Range_Specification
2126 or else NT (N).Nkind = N_Signed_Integer_Type_Definition);
2131 (N : Node_Id) return Node_Id is
2133 pragma Assert (False
2134 or else NT (N).Nkind = N_Record_Representation_Clause);
2139 (N : Node_Id) return Boolean is
2141 pragma Assert (False
2142 or else NT (N).Nkind = N_Component_Declaration
2143 or else NT (N).Nkind = N_Discriminant_Specification
2144 or else NT (N).Nkind = N_Exception_Declaration
2145 or else NT (N).Nkind = N_Formal_Object_Declaration
2146 or else NT (N).Nkind = N_Number_Declaration
2147 or else NT (N).Nkind = N_Object_Declaration
2148 or else NT (N).Nkind = N_Parameter_Specification);
2152 function Must_Be_Byte_Aligned
2153 (N : Node_Id) return Boolean is
2155 pragma Assert (False
2156 or else NT (N).Nkind = N_Attribute_Reference);
2158 end Must_Be_Byte_Aligned;
2160 function Must_Not_Freeze
2161 (N : Node_Id) return Boolean is
2163 pragma Assert (False
2164 or else NT (N).Nkind = N_Subtype_Indication
2165 or else NT (N).Nkind in N_Subexpr);
2167 end Must_Not_Freeze;
2169 function Must_Not_Override
2170 (N : Node_Id) return Boolean is
2172 pragma Assert (False
2173 or else NT (N).Nkind = N_Entry_Declaration
2174 or else NT (N).Nkind = N_Function_Instantiation
2175 or else NT (N).Nkind = N_Function_Specification
2176 or else NT (N).Nkind = N_Procedure_Instantiation
2177 or else NT (N).Nkind = N_Procedure_Specification);
2179 end Must_Not_Override;
2181 function Must_Override
2182 (N : Node_Id) return Boolean is
2184 pragma Assert (False
2185 or else NT (N).Nkind = N_Entry_Declaration
2186 or else NT (N).Nkind = N_Function_Instantiation
2187 or else NT (N).Nkind = N_Function_Specification
2188 or else NT (N).Nkind = N_Procedure_Instantiation
2189 or else NT (N).Nkind = N_Procedure_Specification);
2194 (N : Node_Id) return Node_Id is
2196 pragma Assert (False
2197 or else NT (N).Nkind = N_Assignment_Statement
2198 or else NT (N).Nkind = N_Attribute_Definition_Clause
2199 or else NT (N).Nkind = N_Defining_Program_Unit_Name
2200 or else NT (N).Nkind = N_Designator
2201 or else NT (N).Nkind = N_Entry_Call_Statement
2202 or else NT (N).Nkind = N_Exception_Renaming_Declaration
2203 or else NT (N).Nkind = N_Exit_Statement
2204 or else NT (N).Nkind = N_Formal_Package_Declaration
2205 or else NT (N).Nkind = N_Function_Call
2206 or else NT (N).Nkind = N_Function_Instantiation
2207 or else NT (N).Nkind = N_Generic_Function_Renaming_Declaration
2208 or else NT (N).Nkind = N_Generic_Package_Renaming_Declaration
2209 or else NT (N).Nkind = N_Generic_Procedure_Renaming_Declaration
2210 or else NT (N).Nkind = N_Goto_Statement
2211 or else NT (N).Nkind = N_Iterator_Specification
2212 or else NT (N).Nkind = N_Object_Renaming_Declaration
2213 or else NT (N).Nkind = N_Package_Instantiation
2214 or else NT (N).Nkind = N_Package_Renaming_Declaration
2215 or else NT (N).Nkind = N_Procedure_Call_Statement
2216 or else NT (N).Nkind = N_Procedure_Instantiation
2217 or else NT (N).Nkind = N_Raise_Expression
2218 or else NT (N).Nkind = N_Raise_Statement
2219 or else NT (N).Nkind = N_Requeue_Statement
2220 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration
2221 or else NT (N).Nkind = N_Subunit
2222 or else NT (N).Nkind = N_Variant_Part
2223 or else NT (N).Nkind = N_With_Clause);
2228 (N : Node_Id) return List_Id is
2230 pragma Assert (False
2231 or else NT (N).Nkind = N_Abort_Statement
2232 or else NT (N).Nkind = N_Use_Package_Clause);
2236 function Next_Entity
2237 (N : Node_Id) return Node_Id is
2239 pragma Assert (False
2240 or else NT (N).Nkind = N_Defining_Character_Literal
2241 or else NT (N).Nkind = N_Defining_Identifier
2242 or else NT (N).Nkind = N_Defining_Operator_Symbol);
2246 function Next_Exit_Statement
2247 (N : Node_Id) return Node_Id is
2249 pragma Assert (False
2250 or else NT (N).Nkind = N_Exit_Statement);
2252 end Next_Exit_Statement;
2254 function Next_Implicit_With
2255 (N : Node_Id) return Node_Id is
2257 pragma Assert (False
2258 or else NT (N).Nkind = N_With_Clause);
2260 end Next_Implicit_With;
2262 function Next_Named_Actual
2263 (N : Node_Id) return Node_Id is
2265 pragma Assert (False
2266 or else NT (N).Nkind = N_Parameter_Association);
2268 end Next_Named_Actual;
2270 function Next_Pragma
2271 (N : Node_Id) return Node_Id is
2273 pragma Assert (False
2274 or else NT (N).Nkind = N_Pragma);
2278 function Next_Rep_Item
2279 (N : Node_Id) return Node_Id is
2281 pragma Assert (False
2282 or else NT (N).Nkind = N_Aspect_Specification
2283 or else NT (N).Nkind = N_Attribute_Definition_Clause
2284 or else NT (N).Nkind = N_Enumeration_Representation_Clause
2285 or else NT (N).Nkind = N_Pragma
2286 or else NT (N).Nkind = N_Record_Representation_Clause);
2290 function Next_Use_Clause
2291 (N : Node_Id) return Node_Id is
2293 pragma Assert (False
2294 or else NT (N).Nkind = N_Use_Package_Clause
2295 or else NT (N).Nkind = N_Use_Type_Clause);
2297 end Next_Use_Clause;
2299 function No_Ctrl_Actions
2300 (N : Node_Id) return Boolean is
2302 pragma Assert (False
2303 or else NT (N).Nkind = N_Assignment_Statement);
2305 end No_Ctrl_Actions;
2307 function No_Elaboration_Check
2308 (N : Node_Id) return Boolean is
2310 pragma Assert (False
2311 or else NT (N).Nkind = N_Function_Call
2312 or else NT (N).Nkind = N_Procedure_Call_Statement);
2314 end No_Elaboration_Check;
2316 function No_Entities_Ref_In_Spec
2317 (N : Node_Id) return Boolean is
2319 pragma Assert (False
2320 or else NT (N).Nkind = N_With_Clause);
2322 end No_Entities_Ref_In_Spec;
2324 function No_Initialization
2325 (N : Node_Id) return Boolean is
2327 pragma Assert (False
2328 or else NT (N).Nkind = N_Allocator
2329 or else NT (N).Nkind = N_Object_Declaration);
2331 end No_Initialization;
2333 function No_Minimize_Eliminate
2334 (N : Node_Id) return Boolean is
2336 pragma Assert (False
2337 or else NT (N).Nkind = N_In
2338 or else NT (N).Nkind = N_Not_In);
2340 end No_Minimize_Eliminate;
2342 function No_Truncation
2343 (N : Node_Id) return Boolean is
2345 pragma Assert (False
2346 or else NT (N).Nkind = N_Unchecked_Type_Conversion);
2350 function Non_Aliased_Prefix
2351 (N : Node_Id) return Boolean is
2353 pragma Assert (False
2354 or else NT (N).Nkind = N_Attribute_Reference);
2356 end Non_Aliased_Prefix;
2358 function Null_Present
2359 (N : Node_Id) return Boolean is
2361 pragma Assert (False
2362 or else NT (N).Nkind = N_Component_List
2363 or else NT (N).Nkind = N_Procedure_Specification
2364 or else NT (N).Nkind = N_Record_Definition);
2368 function Null_Exclusion_Present
2369 (N : Node_Id) return Boolean is
2371 pragma Assert (False
2372 or else NT (N).Nkind = N_Access_Definition
2373 or else NT (N).Nkind = N_Access_Function_Definition
2374 or else NT (N).Nkind = N_Access_Procedure_Definition
2375 or else NT (N).Nkind = N_Access_To_Object_Definition
2376 or else NT (N).Nkind = N_Allocator
2377 or else NT (N).Nkind = N_Component_Definition
2378 or else NT (N).Nkind = N_Derived_Type_Definition
2379 or else NT (N).Nkind = N_Discriminant_Specification
2380 or else NT (N).Nkind = N_Formal_Object_Declaration
2381 or else NT (N).Nkind = N_Function_Specification
2382 or else NT (N).Nkind = N_Object_Declaration
2383 or else NT (N).Nkind = N_Object_Renaming_Declaration
2384 or else NT (N).Nkind = N_Parameter_Specification
2385 or else NT (N).Nkind = N_Subtype_Declaration);
2387 end Null_Exclusion_Present;
2389 function Null_Exclusion_In_Return_Present
2390 (N : Node_Id) return Boolean is
2392 pragma Assert (False
2393 or else NT (N).Nkind = N_Access_Function_Definition);
2395 end Null_Exclusion_In_Return_Present;
2397 function Null_Record_Present
2398 (N : Node_Id) return Boolean is
2400 pragma Assert (False
2401 or else NT (N).Nkind = N_Aggregate
2402 or else NT (N).Nkind = N_Extension_Aggregate);
2404 end Null_Record_Present;
2406 function Object_Definition
2407 (N : Node_Id) return Node_Id is
2409 pragma Assert (False
2410 or else NT (N).Nkind = N_Object_Declaration);
2412 end Object_Definition;
2415 (N : Node_Id) return Boolean is
2417 pragma Assert (False
2418 or else NT (N).Nkind = N_Iterator_Specification);
2422 function Original_Discriminant
2423 (N : Node_Id) return Node_Id is
2425 pragma Assert (False
2426 or else NT (N).Nkind = N_Identifier);
2428 end Original_Discriminant;
2430 function Original_Entity
2431 (N : Node_Id) return Entity_Id is
2433 pragma Assert (False
2434 or else NT (N).Nkind = N_Integer_Literal
2435 or else NT (N).Nkind = N_Real_Literal);
2437 end Original_Entity;
2439 function Others_Discrete_Choices
2440 (N : Node_Id) return List_Id is
2442 pragma Assert (False
2443 or else NT (N).Nkind = N_Others_Choice);
2445 end Others_Discrete_Choices;
2447 function Out_Present
2448 (N : Node_Id) return Boolean is
2450 pragma Assert (False
2451 or else NT (N).Nkind = N_Formal_Object_Declaration
2452 or else NT (N).Nkind = N_Parameter_Specification);
2456 function Parameter_Associations
2457 (N : Node_Id) return List_Id is
2459 pragma Assert (False
2460 or else NT (N).Nkind = N_Entry_Call_Statement
2461 or else NT (N).Nkind = N_Function_Call
2462 or else NT (N).Nkind = N_Procedure_Call_Statement);
2464 end Parameter_Associations;
2466 function Parameter_List_Truncated
2467 (N : Node_Id) return Boolean is
2469 pragma Assert (False
2470 or else NT (N).Nkind = N_Function_Call
2471 or else NT (N).Nkind = N_Procedure_Call_Statement);
2473 end Parameter_List_Truncated;
2475 function Parameter_Specifications
2476 (N : Node_Id) return List_Id is
2478 pragma Assert (False
2479 or else NT (N).Nkind = N_Accept_Statement
2480 or else NT (N).Nkind = N_Access_Function_Definition
2481 or else NT (N).Nkind = N_Access_Procedure_Definition
2482 or else NT (N).Nkind = N_Entry_Body_Formal_Part
2483 or else NT (N).Nkind = N_Entry_Declaration
2484 or else NT (N).Nkind = N_Function_Specification
2485 or else NT (N).Nkind = N_Procedure_Specification);
2487 end Parameter_Specifications;
2489 function Parameter_Type
2490 (N : Node_Id) return Node_Id is
2492 pragma Assert (False
2493 or else NT (N).Nkind = N_Parameter_Specification);
2497 function Parent_Spec
2498 (N : Node_Id) return Node_Id is
2500 pragma Assert (False
2501 or else NT (N).Nkind = N_Function_Instantiation
2502 or else NT (N).Nkind = N_Generic_Function_Renaming_Declaration
2503 or else NT (N).Nkind = N_Generic_Package_Declaration
2504 or else NT (N).Nkind = N_Generic_Package_Renaming_Declaration
2505 or else NT (N).Nkind = N_Generic_Procedure_Renaming_Declaration
2506 or else NT (N).Nkind = N_Generic_Subprogram_Declaration
2507 or else NT (N).Nkind = N_Package_Declaration
2508 or else NT (N).Nkind = N_Package_Instantiation
2509 or else NT (N).Nkind = N_Package_Renaming_Declaration
2510 or else NT (N).Nkind = N_Procedure_Instantiation
2511 or else NT (N).Nkind = N_Subprogram_Declaration
2512 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration);
2517 (N : Node_Id) return Node_Id is
2519 pragma Assert (False
2520 or else NT (N).Nkind = N_Component_Clause);
2524 function Pragma_Argument_Associations
2525 (N : Node_Id) return List_Id is
2527 pragma Assert (False
2528 or else NT (N).Nkind = N_Pragma);
2530 end Pragma_Argument_Associations;
2532 function Pragma_Identifier
2533 (N : Node_Id) return Node_Id is
2535 pragma Assert (False
2536 or else NT (N).Nkind = N_Pragma);
2538 end Pragma_Identifier;
2540 function Pragmas_After
2541 (N : Node_Id) return List_Id is
2543 pragma Assert (False
2544 or else NT (N).Nkind = N_Compilation_Unit_Aux
2545 or else NT (N).Nkind = N_Terminate_Alternative);
2549 function Pragmas_Before
2550 (N : Node_Id) return List_Id is
2552 pragma Assert (False
2553 or else NT (N).Nkind = N_Accept_Alternative
2554 or else NT (N).Nkind = N_Delay_Alternative
2555 or else NT (N).Nkind = N_Entry_Call_Alternative
2556 or else NT (N).Nkind = N_Mod_Clause
2557 or else NT (N).Nkind = N_Terminate_Alternative
2558 or else NT (N).Nkind = N_Triggering_Alternative);
2562 function Pre_Post_Conditions
2563 (N : Node_Id) return Node_Id is
2565 pragma Assert (False
2566 or else NT (N).Nkind = N_Contract);
2568 end Pre_Post_Conditions;
2571 (N : Node_Id) return Node_Id is
2573 pragma Assert (False
2574 or else NT (N).Nkind = N_Attribute_Reference
2575 or else NT (N).Nkind = N_Expanded_Name
2576 or else NT (N).Nkind = N_Explicit_Dereference
2577 or else NT (N).Nkind = N_Indexed_Component
2578 or else NT (N).Nkind = N_Reference
2579 or else NT (N).Nkind = N_Selected_Component
2580 or else NT (N).Nkind = N_Slice);
2584 function Premature_Use
2585 (N : Node_Id) return Node_Id is
2587 pragma Assert (False
2588 or else NT (N).Nkind = N_Incomplete_Type_Declaration);
2592 function Present_Expr
2593 (N : Node_Id) return Uint is
2595 pragma Assert (False
2596 or else NT (N).Nkind = N_Variant);
2601 (N : Node_Id) return Boolean is
2603 pragma Assert (False
2604 or else NT (N).Nkind = N_Component_Declaration
2605 or else NT (N).Nkind = N_Discriminant_Specification
2606 or else NT (N).Nkind = N_Exception_Declaration
2607 or else NT (N).Nkind = N_Formal_Object_Declaration
2608 or else NT (N).Nkind = N_Number_Declaration
2609 or else NT (N).Nkind = N_Object_Declaration
2610 or else NT (N).Nkind = N_Parameter_Specification);
2614 function Print_In_Hex
2615 (N : Node_Id) return Boolean is
2617 pragma Assert (False
2618 or else NT (N).Nkind = N_Integer_Literal);
2622 function Private_Declarations
2623 (N : Node_Id) return List_Id is
2625 pragma Assert (False
2626 or else NT (N).Nkind = N_Package_Specification
2627 or else NT (N).Nkind = N_Protected_Definition
2628 or else NT (N).Nkind = N_Task_Definition);
2630 end Private_Declarations;
2632 function Private_Present
2633 (N : Node_Id) return Boolean is
2635 pragma Assert (False
2636 or else NT (N).Nkind = N_Compilation_Unit
2637 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
2638 or else NT (N).Nkind = N_With_Clause);
2640 end Private_Present;
2642 function Procedure_To_Call
2643 (N : Node_Id) return Node_Id is
2645 pragma Assert (False
2646 or else NT (N).Nkind = N_Allocator
2647 or else NT (N).Nkind = N_Extended_Return_Statement
2648 or else NT (N).Nkind = N_Free_Statement
2649 or else NT (N).Nkind = N_Simple_Return_Statement);
2651 end Procedure_To_Call;
2653 function Proper_Body
2654 (N : Node_Id) return Node_Id is
2656 pragma Assert (False
2657 or else NT (N).Nkind = N_Subunit);
2661 function Protected_Definition
2662 (N : Node_Id) return Node_Id is
2664 pragma Assert (False
2665 or else NT (N).Nkind = N_Protected_Type_Declaration
2666 or else NT (N).Nkind = N_Single_Protected_Declaration);
2668 end Protected_Definition;
2670 function Protected_Present
2671 (N : Node_Id) return Boolean is
2673 pragma Assert (False
2674 or else NT (N).Nkind = N_Access_Function_Definition
2675 or else NT (N).Nkind = N_Access_Procedure_Definition
2676 or else NT (N).Nkind = N_Derived_Type_Definition
2677 or else NT (N).Nkind = N_Record_Definition);
2679 end Protected_Present;
2681 function Raises_Constraint_Error
2682 (N : Node_Id) return Boolean is
2684 pragma Assert (False
2685 or else NT (N).Nkind in N_Subexpr);
2687 end Raises_Constraint_Error;
2689 function Range_Constraint
2690 (N : Node_Id) return Node_Id is
2692 pragma Assert (False
2693 or else NT (N).Nkind = N_Delta_Constraint
2694 or else NT (N).Nkind = N_Digits_Constraint);
2696 end Range_Constraint;
2698 function Range_Expression
2699 (N : Node_Id) return Node_Id is
2701 pragma Assert (False
2702 or else NT (N).Nkind = N_Range_Constraint);
2704 end Range_Expression;
2706 function Real_Range_Specification
2707 (N : Node_Id) return Node_Id is
2709 pragma Assert (False
2710 or else NT (N).Nkind = N_Decimal_Fixed_Point_Definition
2711 or else NT (N).Nkind = N_Floating_Point_Definition
2712 or else NT (N).Nkind = N_Ordinary_Fixed_Point_Definition);
2714 end Real_Range_Specification;
2717 (N : Node_Id) return Ureal is
2719 pragma Assert (False
2720 or else NT (N).Nkind = N_Real_Literal);
2725 (N : Node_Id) return Uint is
2727 pragma Assert (False
2728 or else NT (N).Nkind = N_Raise_Constraint_Error
2729 or else NT (N).Nkind = N_Raise_Program_Error
2730 or else NT (N).Nkind = N_Raise_Storage_Error);
2734 function Record_Extension_Part
2735 (N : Node_Id) return Node_Id is
2737 pragma Assert (False
2738 or else NT (N).Nkind = N_Derived_Type_Definition);
2740 end Record_Extension_Part;
2742 function Redundant_Use
2743 (N : Node_Id) return Boolean is
2745 pragma Assert (False
2746 or else NT (N).Nkind = N_Attribute_Reference
2747 or else NT (N).Nkind = N_Expanded_Name
2748 or else NT (N).Nkind = N_Identifier);
2752 function Renaming_Exception
2753 (N : Node_Id) return Node_Id is
2755 pragma Assert (False
2756 or else NT (N).Nkind = N_Exception_Declaration);
2758 end Renaming_Exception;
2760 function Result_Definition
2761 (N : Node_Id) return Node_Id is
2763 pragma Assert (False
2764 or else NT (N).Nkind = N_Access_Function_Definition
2765 or else NT (N).Nkind = N_Function_Specification);
2767 end Result_Definition;
2769 function Return_Object_Declarations
2770 (N : Node_Id) return List_Id is
2772 pragma Assert (False
2773 or else NT (N).Nkind = N_Extended_Return_Statement);
2775 end Return_Object_Declarations;
2777 function Return_Statement_Entity
2778 (N : Node_Id) return Node_Id is
2780 pragma Assert (False
2781 or else NT (N).Nkind = N_Extended_Return_Statement
2782 or else NT (N).Nkind = N_Simple_Return_Statement);
2784 end Return_Statement_Entity;
2786 function Reverse_Present
2787 (N : Node_Id) return Boolean is
2789 pragma Assert (False
2790 or else NT (N).Nkind = N_Iterator_Specification
2791 or else NT (N).Nkind = N_Loop_Parameter_Specification);
2793 end Reverse_Present;
2796 (N : Node_Id) return Node_Id is
2798 pragma Assert (False
2799 or else NT (N).Nkind in N_Op
2800 or else NT (N).Nkind = N_And_Then
2801 or else NT (N).Nkind = N_In
2802 or else NT (N).Nkind = N_Not_In
2803 or else NT (N).Nkind = N_Or_Else);
2807 function Rounded_Result
2808 (N : Node_Id) return Boolean is
2810 pragma Assert (False
2811 or else NT (N).Nkind = N_Op_Divide
2812 or else NT (N).Nkind = N_Op_Multiply
2813 or else NT (N).Nkind = N_Type_Conversion);
2817 function SCIL_Controlling_Tag
2818 (N : Node_Id) return Node_Id is
2820 pragma Assert (False
2821 or else NT (N).Nkind = N_SCIL_Dispatching_Call);
2823 end SCIL_Controlling_Tag;
2825 function SCIL_Entity
2826 (N : Node_Id) return Node_Id is
2828 pragma Assert (False
2829 or else NT (N).Nkind = N_SCIL_Dispatch_Table_Tag_Init
2830 or else NT (N).Nkind = N_SCIL_Dispatching_Call
2831 or else NT (N).Nkind = N_SCIL_Membership_Test);
2835 function SCIL_Tag_Value
2836 (N : Node_Id) return Node_Id is
2838 pragma Assert (False
2839 or else NT (N).Nkind = N_SCIL_Membership_Test);
2843 function SCIL_Target_Prim
2844 (N : Node_Id) return Node_Id is
2846 pragma Assert (False
2847 or else NT (N).Nkind = N_SCIL_Dispatching_Call);
2849 end SCIL_Target_Prim;
2852 (N : Node_Id) return Node_Id is
2854 pragma Assert (False
2855 or else NT (N).Nkind = N_Defining_Character_Literal
2856 or else NT (N).Nkind = N_Defining_Identifier
2857 or else NT (N).Nkind = N_Defining_Operator_Symbol);
2861 function Select_Alternatives
2862 (N : Node_Id) return List_Id is
2864 pragma Assert (False
2865 or else NT (N).Nkind = N_Selective_Accept);
2867 end Select_Alternatives;
2869 function Selector_Name
2870 (N : Node_Id) return Node_Id is
2872 pragma Assert (False
2873 or else NT (N).Nkind = N_Expanded_Name
2874 or else NT (N).Nkind = N_Generic_Association
2875 or else NT (N).Nkind = N_Parameter_Association
2876 or else NT (N).Nkind = N_Selected_Component);
2880 function Selector_Names
2881 (N : Node_Id) return List_Id is
2883 pragma Assert (False
2884 or else NT (N).Nkind = N_Discriminant_Association);
2888 function Shift_Count_OK
2889 (N : Node_Id) return Boolean is
2891 pragma Assert (False
2892 or else NT (N).Nkind = N_Op_Rotate_Left
2893 or else NT (N).Nkind = N_Op_Rotate_Right
2894 or else NT (N).Nkind = N_Op_Shift_Left
2895 or else NT (N).Nkind = N_Op_Shift_Right
2896 or else NT (N).Nkind = N_Op_Shift_Right_Arithmetic);
2900 function Source_Type
2901 (N : Node_Id) return Entity_Id is
2903 pragma Assert (False
2904 or else NT (N).Nkind = N_Validate_Unchecked_Conversion);
2908 function Specification
2909 (N : Node_Id) return Node_Id is
2911 pragma Assert (False
2912 or else NT (N).Nkind = N_Abstract_Subprogram_Declaration
2913 or else NT (N).Nkind = N_Expression_Function
2914 or else NT (N).Nkind = N_Formal_Abstract_Subprogram_Declaration
2915 or else NT (N).Nkind = N_Formal_Concrete_Subprogram_Declaration
2916 or else NT (N).Nkind = N_Generic_Package_Declaration
2917 or else NT (N).Nkind = N_Generic_Subprogram_Declaration
2918 or else NT (N).Nkind = N_Package_Declaration
2919 or else NT (N).Nkind = N_Subprogram_Body
2920 or else NT (N).Nkind = N_Subprogram_Body_Stub
2921 or else NT (N).Nkind = N_Subprogram_Declaration
2922 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration);
2927 (N : Node_Id) return Boolean is
2929 pragma Assert (False
2930 or else NT (N).Nkind = N_Aspect_Specification
2931 or else NT (N).Nkind = N_Pragma);
2936 (N : Node_Id) return List_Id is
2938 pragma Assert (False
2939 or else NT (N).Nkind = N_Abortable_Part
2940 or else NT (N).Nkind = N_Accept_Alternative
2941 or else NT (N).Nkind = N_Case_Statement_Alternative
2942 or else NT (N).Nkind = N_Delay_Alternative
2943 or else NT (N).Nkind = N_Entry_Call_Alternative
2944 or else NT (N).Nkind = N_Exception_Handler
2945 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements
2946 or else NT (N).Nkind = N_Loop_Statement
2947 or else NT (N).Nkind = N_Triggering_Alternative);
2951 function Storage_Pool
2952 (N : Node_Id) return Node_Id is
2954 pragma Assert (False
2955 or else NT (N).Nkind = N_Allocator
2956 or else NT (N).Nkind = N_Extended_Return_Statement
2957 or else NT (N).Nkind = N_Free_Statement
2958 or else NT (N).Nkind = N_Simple_Return_Statement);
2962 function Subpool_Handle_Name
2963 (N : Node_Id) return Node_Id is
2965 pragma Assert (False
2966 or else NT (N).Nkind = N_Allocator);
2968 end Subpool_Handle_Name;
2971 (N : Node_Id) return String_Id is
2973 pragma Assert (False
2974 or else NT (N).Nkind = N_Operator_Symbol
2975 or else NT (N).Nkind = N_String_Literal);
2979 function Subtype_Indication
2980 (N : Node_Id) return Node_Id is
2982 pragma Assert (False
2983 or else NT (N).Nkind = N_Access_To_Object_Definition
2984 or else NT (N).Nkind = N_Component_Definition
2985 or else NT (N).Nkind = N_Derived_Type_Definition
2986 or else NT (N).Nkind = N_Iterator_Specification
2987 or else NT (N).Nkind = N_Private_Extension_Declaration
2988 or else NT (N).Nkind = N_Subtype_Declaration);
2990 end Subtype_Indication;
2992 function Suppress_Assignment_Checks
2993 (N : Node_Id) return Boolean is
2995 pragma Assert (False
2996 or else NT (N).Nkind = N_Assignment_Statement
2997 or else NT (N).Nkind = N_Object_Declaration);
2999 end Suppress_Assignment_Checks;
3001 function Suppress_Loop_Warnings
3002 (N : Node_Id) return Boolean is
3004 pragma Assert (False
3005 or else NT (N).Nkind = N_Loop_Statement);
3007 end Suppress_Loop_Warnings;
3009 function Subtype_Mark
3010 (N : Node_Id) return Node_Id is
3012 pragma Assert (False
3013 or else NT (N).Nkind = N_Access_Definition
3014 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
3015 or else NT (N).Nkind = N_Formal_Object_Declaration
3016 or else NT (N).Nkind = N_Object_Renaming_Declaration
3017 or else NT (N).Nkind = N_Qualified_Expression
3018 or else NT (N).Nkind = N_Subtype_Indication
3019 or else NT (N).Nkind = N_Type_Conversion
3020 or else NT (N).Nkind = N_Unchecked_Type_Conversion);
3024 function Subtype_Marks
3025 (N : Node_Id) return List_Id is
3027 pragma Assert (False
3028 or else NT (N).Nkind = N_Unconstrained_Array_Definition
3029 or else NT (N).Nkind = N_Use_Type_Clause);
3033 function Synchronized_Present
3034 (N : Node_Id) return Boolean is
3036 pragma Assert (False
3037 or else NT (N).Nkind = N_Derived_Type_Definition
3038 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
3039 or else NT (N).Nkind = N_Private_Extension_Declaration
3040 or else NT (N).Nkind = N_Record_Definition);
3042 end Synchronized_Present;
3044 function Tagged_Present
3045 (N : Node_Id) return Boolean is
3047 pragma Assert (False
3048 or else NT (N).Nkind = N_Formal_Incomplete_Type_Definition
3049 or else NT (N).Nkind = N_Formal_Private_Type_Definition
3050 or else NT (N).Nkind = N_Incomplete_Type_Declaration
3051 or else NT (N).Nkind = N_Private_Type_Declaration
3052 or else NT (N).Nkind = N_Record_Definition);
3056 function Target_Type
3057 (N : Node_Id) return Entity_Id is
3059 pragma Assert (False
3060 or else NT (N).Nkind = N_Validate_Unchecked_Conversion);
3064 function Task_Definition
3065 (N : Node_Id) return Node_Id is
3067 pragma Assert (False
3068 or else NT (N).Nkind = N_Single_Task_Declaration
3069 or else NT (N).Nkind = N_Task_Type_Declaration);
3071 end Task_Definition;
3073 function Task_Present
3074 (N : Node_Id) return Boolean is
3076 pragma Assert (False
3077 or else NT (N).Nkind = N_Derived_Type_Definition
3078 or else NT (N).Nkind = N_Record_Definition);
3082 function Then_Actions
3083 (N : Node_Id) return List_Id is
3085 pragma Assert (False
3086 or else NT (N).Nkind = N_If_Expression);
3090 function Then_Statements
3091 (N : Node_Id) return List_Id is
3093 pragma Assert (False
3094 or else NT (N).Nkind = N_Elsif_Part
3095 or else NT (N).Nkind = N_If_Statement);
3097 end Then_Statements;
3099 function Treat_Fixed_As_Integer
3100 (N : Node_Id) return Boolean is
3102 pragma Assert (False
3103 or else NT (N).Nkind = N_Op_Divide
3104 or else NT (N).Nkind = N_Op_Mod
3105 or else NT (N).Nkind = N_Op_Multiply
3106 or else NT (N).Nkind = N_Op_Rem);
3108 end Treat_Fixed_As_Integer;
3110 function Triggering_Alternative
3111 (N : Node_Id) return Node_Id is
3113 pragma Assert (False
3114 or else NT (N).Nkind = N_Asynchronous_Select);
3116 end Triggering_Alternative;
3118 function Triggering_Statement
3119 (N : Node_Id) return Node_Id is
3121 pragma Assert (False
3122 or else NT (N).Nkind = N_Triggering_Alternative);
3124 end Triggering_Statement;
3127 (N : Node_Id) return Elist_Id is
3129 pragma Assert (False
3130 or else NT (N).Nkind = N_Freeze_Entity);
3134 function Type_Definition
3135 (N : Node_Id) return Node_Id is
3137 pragma Assert (False
3138 or else NT (N).Nkind = N_Full_Type_Declaration);
3140 end Type_Definition;
3143 (N : Node_Id) return Node_Id is
3145 pragma Assert (False
3146 or else NT (N).Nkind = N_Compilation_Unit);
3150 function Unknown_Discriminants_Present
3151 (N : Node_Id) return Boolean is
3153 pragma Assert (False
3154 or else NT (N).Nkind = N_Formal_Type_Declaration
3155 or else NT (N).Nkind = N_Incomplete_Type_Declaration
3156 or else NT (N).Nkind = N_Private_Extension_Declaration
3157 or else NT (N).Nkind = N_Private_Type_Declaration);
3159 end Unknown_Discriminants_Present;
3161 function Unreferenced_In_Spec
3162 (N : Node_Id) return Boolean is
3164 pragma Assert (False
3165 or else NT (N).Nkind = N_With_Clause);
3167 end Unreferenced_In_Spec;
3169 function Variant_Part
3170 (N : Node_Id) return Node_Id is
3172 pragma Assert (False
3173 or else NT (N).Nkind = N_Component_List);
3178 (N : Node_Id) return List_Id is
3180 pragma Assert (False
3181 or else NT (N).Nkind = N_Variant_Part);
3185 function Visible_Declarations
3186 (N : Node_Id) return List_Id is
3188 pragma Assert (False
3189 or else NT (N).Nkind = N_Package_Specification
3190 or else NT (N).Nkind = N_Protected_Definition
3191 or else NT (N).Nkind = N_Task_Definition);
3193 end Visible_Declarations;
3195 function Uninitialized_Variable
3196 (N : Node_Id) return Node_Id is
3198 pragma Assert (False
3199 or else NT (N).Nkind = N_Formal_Private_Type_Definition
3200 or else NT (N).Nkind = N_Private_Extension_Declaration);
3202 end Uninitialized_Variable;
3204 function Used_Operations
3205 (N : Node_Id) return Elist_Id is
3207 pragma Assert (False
3208 or else NT (N).Nkind = N_Use_Type_Clause);
3210 end Used_Operations;
3212 function Was_Originally_Stub
3213 (N : Node_Id) return Boolean is
3215 pragma Assert (False
3216 or else NT (N).Nkind = N_Package_Body
3217 or else NT (N).Nkind = N_Protected_Body
3218 or else NT (N).Nkind = N_Subprogram_Body
3219 or else NT (N).Nkind = N_Task_Body);
3221 end Was_Originally_Stub;
3223 function Withed_Body
3224 (N : Node_Id) return Node_Id is
3226 pragma Assert (False
3227 or else NT (N).Nkind = N_With_Clause);
3231 --------------------------
3232 -- Field Set Procedures --
3233 --------------------------
3235 procedure Set_ABE_Is_Certain
3236 (N : Node_Id; Val : Boolean := True) is
3238 pragma Assert (False
3239 or else NT (N).Nkind = N_Formal_Package_Declaration
3240 or else NT (N).Nkind = N_Function_Call
3241 or else NT (N).Nkind = N_Function_Instantiation
3242 or else NT (N).Nkind = N_Package_Instantiation
3243 or else NT (N).Nkind = N_Procedure_Call_Statement
3244 or else NT (N).Nkind = N_Procedure_Instantiation);
3245 Set_Flag18 (N, Val);
3246 end Set_ABE_Is_Certain;
3248 procedure Set_Abort_Present
3249 (N : Node_Id; Val : Boolean := True) is
3251 pragma Assert (False
3252 or else NT (N).Nkind = N_Requeue_Statement);
3253 Set_Flag15 (N, Val);
3254 end Set_Abort_Present;
3256 procedure Set_Abortable_Part
3257 (N : Node_Id; Val : Node_Id) is
3259 pragma Assert (False
3260 or else NT (N).Nkind = N_Asynchronous_Select);
3261 Set_Node2_With_Parent (N, Val);
3262 end Set_Abortable_Part;
3264 procedure Set_Abstract_Present
3265 (N : Node_Id; Val : Boolean := True) is
3267 pragma Assert (False
3268 or else NT (N).Nkind = N_Derived_Type_Definition
3269 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
3270 or else NT (N).Nkind = N_Formal_Private_Type_Definition
3271 or else NT (N).Nkind = N_Private_Extension_Declaration
3272 or else NT (N).Nkind = N_Private_Type_Declaration
3273 or else NT (N).Nkind = N_Record_Definition);
3275 end Set_Abstract_Present;
3277 procedure Set_Accept_Handler_Records
3278 (N : Node_Id; Val : List_Id) is
3280 pragma Assert (False
3281 or else NT (N).Nkind = N_Accept_Alternative);
3282 Set_List5 (N, Val); -- semantic field, no parent set
3283 end Set_Accept_Handler_Records;
3285 procedure Set_Accept_Statement
3286 (N : Node_Id; Val : Node_Id) is
3288 pragma Assert (False
3289 or else NT (N).Nkind = N_Accept_Alternative);
3290 Set_Node2_With_Parent (N, Val);
3291 end Set_Accept_Statement;
3293 procedure Set_Access_Definition
3294 (N : Node_Id; Val : Node_Id) is
3296 pragma Assert (False
3297 or else NT (N).Nkind = N_Component_Definition
3298 or else NT (N).Nkind = N_Formal_Object_Declaration
3299 or else NT (N).Nkind = N_Object_Renaming_Declaration);
3300 Set_Node3_With_Parent (N, Val);
3301 end Set_Access_Definition;
3303 procedure Set_Access_To_Subprogram_Definition
3304 (N : Node_Id; Val : Node_Id) is
3306 pragma Assert (False
3307 or else NT (N).Nkind = N_Access_Definition);
3308 Set_Node3_With_Parent (N, Val);
3309 end Set_Access_To_Subprogram_Definition;
3311 procedure Set_Access_Types_To_Process
3312 (N : Node_Id; Val : Elist_Id) is
3314 pragma Assert (False
3315 or else NT (N).Nkind = N_Freeze_Entity);
3316 Set_Elist2 (N, Val); -- semantic field, no parent set
3317 end Set_Access_Types_To_Process;
3319 procedure Set_Actions
3320 (N : Node_Id; Val : List_Id) is
3322 pragma Assert (False
3323 or else NT (N).Nkind = N_And_Then
3324 or else NT (N).Nkind = N_Case_Expression_Alternative
3325 or else NT (N).Nkind = N_Compilation_Unit_Aux
3326 or else NT (N).Nkind = N_Compound_Statement
3327 or else NT (N).Nkind = N_Expression_With_Actions
3328 or else NT (N).Nkind = N_Freeze_Entity
3329 or else NT (N).Nkind = N_Or_Else);
3330 Set_List1_With_Parent (N, Val);
3333 procedure Set_Activation_Chain_Entity
3334 (N : Node_Id; Val : Node_Id) is
3336 pragma Assert (False
3337 or else NT (N).Nkind = N_Block_Statement
3338 or else NT (N).Nkind = N_Entry_Body
3339 or else NT (N).Nkind = N_Generic_Package_Declaration
3340 or else NT (N).Nkind = N_Package_Declaration
3341 or else NT (N).Nkind = N_Subprogram_Body
3342 or else NT (N).Nkind = N_Task_Body);
3343 Set_Node3 (N, Val); -- semantic field, no parent set
3344 end Set_Activation_Chain_Entity;
3346 procedure Set_Acts_As_Spec
3347 (N : Node_Id; Val : Boolean := True) is
3349 pragma Assert (False
3350 or else NT (N).Nkind = N_Compilation_Unit
3351 or else NT (N).Nkind = N_Subprogram_Body);
3353 end Set_Acts_As_Spec;
3355 procedure Set_Actual_Designated_Subtype
3356 (N : Node_Id; Val : Node_Id) is
3358 pragma Assert (False
3359 or else NT (N).Nkind = N_Explicit_Dereference
3360 or else NT (N).Nkind = N_Free_Statement);
3362 end Set_Actual_Designated_Subtype;
3364 procedure Set_Address_Warning_Posted
3365 (N : Node_Id; Val : Boolean := True) is
3367 pragma Assert (False
3368 or else NT (N).Nkind = N_Attribute_Definition_Clause);
3369 Set_Flag18 (N, Val);
3370 end Set_Address_Warning_Posted;
3372 procedure Set_Aggregate_Bounds
3373 (N : Node_Id; Val : Node_Id) is
3375 pragma Assert (False
3376 or else NT (N).Nkind = N_Aggregate);
3377 Set_Node3 (N, Val); -- semantic field, no parent set
3378 end Set_Aggregate_Bounds;
3380 procedure Set_Aliased_Present
3381 (N : Node_Id; Val : Boolean := True) is
3383 pragma Assert (False
3384 or else NT (N).Nkind = N_Component_Definition
3385 or else NT (N).Nkind = N_Object_Declaration
3386 or else NT (N).Nkind = N_Parameter_Specification);
3388 end Set_Aliased_Present;
3390 procedure Set_All_Others
3391 (N : Node_Id; Val : Boolean := True) is
3393 pragma Assert (False
3394 or else NT (N).Nkind = N_Others_Choice);
3395 Set_Flag11 (N, Val);
3398 procedure Set_All_Present
3399 (N : Node_Id; Val : Boolean := True) is
3401 pragma Assert (False
3402 or else NT (N).Nkind = N_Access_Definition
3403 or else NT (N).Nkind = N_Access_To_Object_Definition
3404 or else NT (N).Nkind = N_Quantified_Expression
3405 or else NT (N).Nkind = N_Use_Type_Clause);
3406 Set_Flag15 (N, Val);
3407 end Set_All_Present;
3409 procedure Set_Alternatives
3410 (N : Node_Id; Val : List_Id) is
3412 pragma Assert (False
3413 or else NT (N).Nkind = N_Case_Expression
3414 or else NT (N).Nkind = N_Case_Statement
3415 or else NT (N).Nkind = N_In
3416 or else NT (N).Nkind = N_Not_In);
3417 Set_List4_With_Parent (N, Val);
3418 end Set_Alternatives;
3420 procedure Set_Ancestor_Part
3421 (N : Node_Id; Val : Node_Id) is
3423 pragma Assert (False
3424 or else NT (N).Nkind = N_Extension_Aggregate);
3425 Set_Node3_With_Parent (N, Val);
3426 end Set_Ancestor_Part;
3428 procedure Set_Atomic_Sync_Required
3429 (N : Node_Id; Val : Boolean := True) is
3431 pragma Assert (False
3432 or else NT (N).Nkind = N_Expanded_Name
3433 or else NT (N).Nkind = N_Explicit_Dereference
3434 or else NT (N).Nkind = N_Identifier
3435 or else NT (N).Nkind = N_Indexed_Component
3436 or else NT (N).Nkind = N_Selected_Component);
3437 Set_Flag14 (N, Val);
3438 end Set_Atomic_Sync_Required;
3440 procedure Set_Array_Aggregate
3441 (N : Node_Id; Val : Node_Id) is
3443 pragma Assert (False
3444 or else NT (N).Nkind = N_Enumeration_Representation_Clause);
3445 Set_Node3_With_Parent (N, Val);
3446 end Set_Array_Aggregate;
3448 procedure Set_Aspect_Rep_Item
3449 (N : Node_Id; Val : Node_Id) is
3451 pragma Assert (False
3452 or else NT (N).Nkind = N_Aspect_Specification);
3454 end Set_Aspect_Rep_Item;
3456 procedure Set_Assignment_OK
3457 (N : Node_Id; Val : Boolean := True) is
3459 pragma Assert (False
3460 or else NT (N).Nkind = N_Object_Declaration
3461 or else NT (N).Nkind in N_Subexpr);
3462 Set_Flag15 (N, Val);
3463 end Set_Assignment_OK;
3465 procedure Set_Associated_Node
3466 (N : Node_Id; Val : Node_Id) is
3468 pragma Assert (False
3469 or else NT (N).Nkind in N_Has_Entity
3470 or else NT (N).Nkind = N_Aggregate
3471 or else NT (N).Nkind = N_Extension_Aggregate
3472 or else NT (N).Nkind = N_Selected_Component);
3473 Set_Node4 (N, Val); -- semantic field, no parent set
3474 end Set_Associated_Node;
3476 procedure Set_At_End_Proc
3477 (N : Node_Id; Val : Node_Id) is
3479 pragma Assert (False
3480 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements);
3482 end Set_At_End_Proc;
3484 procedure Set_Attribute_Name
3485 (N : Node_Id; Val : Name_Id) is
3487 pragma Assert (False
3488 or else NT (N).Nkind = N_Attribute_Reference);
3490 end Set_Attribute_Name;
3492 procedure Set_Aux_Decls_Node
3493 (N : Node_Id; Val : Node_Id) is
3495 pragma Assert (False
3496 or else NT (N).Nkind = N_Compilation_Unit);
3497 Set_Node5_With_Parent (N, Val);
3498 end Set_Aux_Decls_Node;
3500 procedure Set_Backwards_OK
3501 (N : Node_Id; Val : Boolean := True) is
3503 pragma Assert (False
3504 or else NT (N).Nkind = N_Assignment_Statement);
3506 end Set_Backwards_OK;
3508 procedure Set_Bad_Is_Detected
3509 (N : Node_Id; Val : Boolean := True) is
3511 pragma Assert (False
3512 or else NT (N).Nkind = N_Subprogram_Body);
3513 Set_Flag15 (N, Val);
3514 end Set_Bad_Is_Detected;
3516 procedure Set_Body_Required
3517 (N : Node_Id; Val : Boolean := True) is
3519 pragma Assert (False
3520 or else NT (N).Nkind = N_Compilation_Unit);
3521 Set_Flag13 (N, Val);
3522 end Set_Body_Required;
3524 procedure Set_Body_To_Inline
3525 (N : Node_Id; Val : Node_Id) is
3527 pragma Assert (False
3528 or else NT (N).Nkind = N_Subprogram_Declaration);
3530 end Set_Body_To_Inline;
3532 procedure Set_Box_Present
3533 (N : Node_Id; Val : Boolean := True) is
3535 pragma Assert (False
3536 or else NT (N).Nkind = N_Component_Association
3537 or else NT (N).Nkind = N_Formal_Abstract_Subprogram_Declaration
3538 or else NT (N).Nkind = N_Formal_Concrete_Subprogram_Declaration
3539 or else NT (N).Nkind = N_Formal_Package_Declaration
3540 or else NT (N).Nkind = N_Generic_Association);
3541 Set_Flag15 (N, Val);
3542 end Set_Box_Present;
3544 procedure Set_By_Ref
3545 (N : Node_Id; Val : Boolean := True) is
3547 pragma Assert (False
3548 or else NT (N).Nkind = N_Extended_Return_Statement
3549 or else NT (N).Nkind = N_Simple_Return_Statement);
3553 procedure Set_Char_Literal_Value
3554 (N : Node_Id; Val : Uint) is
3556 pragma Assert (False
3557 or else NT (N).Nkind = N_Character_Literal);
3559 end Set_Char_Literal_Value;
3562 (N : Node_Id; Val : Name_Id) is
3564 pragma Assert (False
3565 or else NT (N).Nkind in N_Has_Chars);
3569 procedure Set_Check_Address_Alignment
3570 (N : Node_Id; Val : Boolean := True) is
3572 pragma Assert (False
3573 or else NT (N).Nkind = N_Attribute_Definition_Clause);
3574 Set_Flag11 (N, Val);
3575 end Set_Check_Address_Alignment;
3577 procedure Set_Choice_Parameter
3578 (N : Node_Id; Val : Node_Id) is
3580 pragma Assert (False
3581 or else NT (N).Nkind = N_Exception_Handler);
3582 Set_Node2_With_Parent (N, Val);
3583 end Set_Choice_Parameter;
3585 procedure Set_Choices
3586 (N : Node_Id; Val : List_Id) is
3588 pragma Assert (False
3589 or else NT (N).Nkind = N_Component_Association);
3590 Set_List1_With_Parent (N, Val);
3593 procedure Set_Class_Present
3594 (N : Node_Id; Val : Boolean := True) is
3596 pragma Assert (False
3597 or else NT (N).Nkind = N_Aspect_Specification
3598 or else NT (N).Nkind = N_Pragma);
3600 end Set_Class_Present;
3602 procedure Set_Classifications
3603 (N : Node_Id; Val : Node_Id) is
3605 pragma Assert (False
3606 or else NT (N).Nkind = N_Contract);
3607 Set_Node3 (N, Val); -- semantic field, no parent set
3608 end Set_Classifications;
3610 procedure Set_Cleanup_Actions
3611 (N : Node_Id; Val : List_Id) is
3613 pragma Assert (False
3614 or else NT (N).Nkind = N_Block_Statement);
3615 Set_List5 (N, Val); -- semantic field, no parent set
3616 end Set_Cleanup_Actions;
3618 procedure Set_Comes_From_Extended_Return_Statement
3619 (N : Node_Id; Val : Boolean := True) is
3621 pragma Assert (False
3622 or else NT (N).Nkind = N_Simple_Return_Statement);
3623 Set_Flag18 (N, Val);
3624 end Set_Comes_From_Extended_Return_Statement;
3626 procedure Set_Compile_Time_Known_Aggregate
3627 (N : Node_Id; Val : Boolean := True) is
3629 pragma Assert (False
3630 or else NT (N).Nkind = N_Aggregate);
3631 Set_Flag18 (N, Val);
3632 end Set_Compile_Time_Known_Aggregate;
3634 procedure Set_Component_Associations
3635 (N : Node_Id; Val : List_Id) is
3637 pragma Assert (False
3638 or else NT (N).Nkind = N_Aggregate
3639 or else NT (N).Nkind = N_Extension_Aggregate);
3640 Set_List2_With_Parent (N, Val);
3641 end Set_Component_Associations;
3643 procedure Set_Component_Clauses
3644 (N : Node_Id; Val : List_Id) is
3646 pragma Assert (False
3647 or else NT (N).Nkind = N_Record_Representation_Clause);
3648 Set_List3_With_Parent (N, Val);
3649 end Set_Component_Clauses;
3651 procedure Set_Component_Definition
3652 (N : Node_Id; Val : Node_Id) is
3654 pragma Assert (False
3655 or else NT (N).Nkind = N_Component_Declaration
3656 or else NT (N).Nkind = N_Constrained_Array_Definition
3657 or else NT (N).Nkind = N_Unconstrained_Array_Definition);
3658 Set_Node4_With_Parent (N, Val);
3659 end Set_Component_Definition;
3661 procedure Set_Component_Items
3662 (N : Node_Id; Val : List_Id) is
3664 pragma Assert (False
3665 or else NT (N).Nkind = N_Component_List);
3666 Set_List3_With_Parent (N, Val);
3667 end Set_Component_Items;
3669 procedure Set_Component_List
3670 (N : Node_Id; Val : Node_Id) is
3672 pragma Assert (False
3673 or else NT (N).Nkind = N_Record_Definition
3674 or else NT (N).Nkind = N_Variant);
3675 Set_Node1_With_Parent (N, Val);
3676 end Set_Component_List;
3678 procedure Set_Component_Name
3679 (N : Node_Id; Val : Node_Id) is
3681 pragma Assert (False
3682 or else NT (N).Nkind = N_Component_Clause);
3683 Set_Node1_With_Parent (N, Val);
3684 end Set_Component_Name;
3686 procedure Set_Componentwise_Assignment
3687 (N : Node_Id; Val : Boolean := True) is
3689 pragma Assert (False
3690 or else NT (N).Nkind = N_Assignment_Statement);
3691 Set_Flag14 (N, Val);
3692 end Set_Componentwise_Assignment;
3694 procedure Set_Condition
3695 (N : Node_Id; Val : Node_Id) is
3697 pragma Assert (False
3698 or else NT (N).Nkind = N_Accept_Alternative
3699 or else NT (N).Nkind = N_Delay_Alternative
3700 or else NT (N).Nkind = N_Elsif_Part
3701 or else NT (N).Nkind = N_Entry_Body_Formal_Part
3702 or else NT (N).Nkind = N_Exit_Statement
3703 or else NT (N).Nkind = N_If_Statement
3704 or else NT (N).Nkind = N_Iteration_Scheme
3705 or else NT (N).Nkind = N_Quantified_Expression
3706 or else NT (N).Nkind = N_Raise_Constraint_Error
3707 or else NT (N).Nkind = N_Raise_Program_Error
3708 or else NT (N).Nkind = N_Raise_Storage_Error
3709 or else NT (N).Nkind = N_Terminate_Alternative);
3710 Set_Node1_With_Parent (N, Val);
3713 procedure Set_Condition_Actions
3714 (N : Node_Id; Val : List_Id) is
3716 pragma Assert (False
3717 or else NT (N).Nkind = N_Elsif_Part
3718 or else NT (N).Nkind = N_Iteration_Scheme);
3719 Set_List3 (N, Val); -- semantic field, no parent set
3720 end Set_Condition_Actions;
3722 procedure Set_Config_Pragmas
3723 (N : Node_Id; Val : List_Id) is
3725 pragma Assert (False
3726 or else NT (N).Nkind = N_Compilation_Unit_Aux);
3727 Set_List4_With_Parent (N, Val);
3728 end Set_Config_Pragmas;
3730 procedure Set_Constant_Present
3731 (N : Node_Id; Val : Boolean := True) is
3733 pragma Assert (False
3734 or else NT (N).Nkind = N_Access_Definition
3735 or else NT (N).Nkind = N_Access_To_Object_Definition
3736 or else NT (N).Nkind = N_Object_Declaration);
3737 Set_Flag17 (N, Val);
3738 end Set_Constant_Present;
3740 procedure Set_Constraint
3741 (N : Node_Id; Val : Node_Id) is
3743 pragma Assert (False
3744 or else NT (N).Nkind = N_Subtype_Indication);
3745 Set_Node3_With_Parent (N, Val);
3748 procedure Set_Constraints
3749 (N : Node_Id; Val : List_Id) is
3751 pragma Assert (False
3752 or else NT (N).Nkind = N_Index_Or_Discriminant_Constraint);
3753 Set_List1_With_Parent (N, Val);
3754 end Set_Constraints;
3756 procedure Set_Context_Installed
3757 (N : Node_Id; Val : Boolean := True) is
3759 pragma Assert (False
3760 or else NT (N).Nkind = N_With_Clause);
3761 Set_Flag13 (N, Val);
3762 end Set_Context_Installed;
3764 procedure Set_Context_Items
3765 (N : Node_Id; Val : List_Id) is
3767 pragma Assert (False
3768 or else NT (N).Nkind = N_Compilation_Unit);
3769 Set_List1_With_Parent (N, Val);
3770 end Set_Context_Items;
3772 procedure Set_Context_Pending
3773 (N : Node_Id; Val : Boolean := True) is
3775 pragma Assert (False
3776 or else NT (N).Nkind = N_Compilation_Unit);
3777 Set_Flag16 (N, Val);
3778 end Set_Context_Pending;
3780 procedure Set_Contract_Test_Cases
3781 (N : Node_Id; Val : Node_Id) is
3783 pragma Assert (False
3784 or else NT (N).Nkind = N_Contract);
3785 Set_Node2 (N, Val); -- semantic field, no parent set
3786 end Set_Contract_Test_Cases;
3788 procedure Set_Controlling_Argument
3789 (N : Node_Id; Val : Node_Id) is
3791 pragma Assert (False
3792 or else NT (N).Nkind = N_Function_Call
3793 or else NT (N).Nkind = N_Procedure_Call_Statement);
3794 Set_Node1 (N, Val); -- semantic field, no parent set
3795 end Set_Controlling_Argument;
3797 procedure Set_Conversion_OK
3798 (N : Node_Id; Val : Boolean := True) is
3800 pragma Assert (False
3801 or else NT (N).Nkind = N_Type_Conversion);
3802 Set_Flag14 (N, Val);
3803 end Set_Conversion_OK;
3805 procedure Set_Convert_To_Return_False
3806 (N : Node_Id; Val : Boolean := True) is
3808 pragma Assert (False
3809 or else NT (N).Nkind = N_Raise_Expression);
3810 Set_Flag13 (N, Val);
3811 end Set_Convert_To_Return_False;
3813 procedure Set_Corresponding_Aspect
3814 (N : Node_Id; Val : Node_Id) is
3816 pragma Assert (False
3817 or else NT (N).Nkind = N_Pragma);
3819 end Set_Corresponding_Aspect;
3821 procedure Set_Corresponding_Body
3822 (N : Node_Id; Val : Node_Id) is
3824 pragma Assert (False
3825 or else NT (N).Nkind = N_Entry_Declaration
3826 or else NT (N).Nkind = N_Generic_Package_Declaration
3827 or else NT (N).Nkind = N_Generic_Subprogram_Declaration
3828 or else NT (N).Nkind = N_Package_Body_Stub
3829 or else NT (N).Nkind = N_Package_Declaration
3830 or else NT (N).Nkind = N_Protected_Body_Stub
3831 or else NT (N).Nkind = N_Protected_Type_Declaration
3832 or else NT (N).Nkind = N_Subprogram_Body_Stub
3833 or else NT (N).Nkind = N_Subprogram_Declaration
3834 or else NT (N).Nkind = N_Task_Body_Stub
3835 or else NT (N).Nkind = N_Task_Type_Declaration);
3836 Set_Node5 (N, Val); -- semantic field, no parent set
3837 end Set_Corresponding_Body;
3839 procedure Set_Corresponding_Formal_Spec
3840 (N : Node_Id; Val : Node_Id) is
3842 pragma Assert (False
3843 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration);
3844 Set_Node3 (N, Val); -- semantic field, no parent set
3845 end Set_Corresponding_Formal_Spec;
3847 procedure Set_Corresponding_Generic_Association
3848 (N : Node_Id; Val : Node_Id) is
3850 pragma Assert (False
3851 or else NT (N).Nkind = N_Object_Declaration
3852 or else NT (N).Nkind = N_Object_Renaming_Declaration);
3853 Set_Node5 (N, Val); -- semantic field, no parent set
3854 end Set_Corresponding_Generic_Association;
3856 procedure Set_Corresponding_Integer_Value
3857 (N : Node_Id; Val : Uint) is
3859 pragma Assert (False
3860 or else NT (N).Nkind = N_Real_Literal);
3861 Set_Uint4 (N, Val); -- semantic field, no parent set
3862 end Set_Corresponding_Integer_Value;
3864 procedure Set_Corresponding_Spec
3865 (N : Node_Id; Val : Node_Id) is
3867 pragma Assert (False
3868 or else NT (N).Nkind = N_Expression_Function
3869 or else NT (N).Nkind = N_Package_Body
3870 or else NT (N).Nkind = N_Protected_Body
3871 or else NT (N).Nkind = N_Subprogram_Body
3872 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration
3873 or else NT (N).Nkind = N_Task_Body
3874 or else NT (N).Nkind = N_With_Clause);
3875 Set_Node5 (N, Val); -- semantic field, no parent set
3876 end Set_Corresponding_Spec;
3878 procedure Set_Corresponding_Spec_Of_Stub
3879 (N : Node_Id; Val : Entity_Id) is
3881 pragma Assert (False
3882 or else NT (N).Nkind = N_Package_Body_Stub
3883 or else NT (N).Nkind = N_Protected_Body_Stub
3884 or else NT (N).Nkind = N_Subprogram_Body_Stub
3885 or else NT (N).Nkind = N_Task_Body_Stub);
3886 Set_Node2 (N, Val); -- semantic field, no parent set
3887 end Set_Corresponding_Spec_Of_Stub;
3889 procedure Set_Corresponding_Stub
3890 (N : Node_Id; Val : Node_Id) is
3892 pragma Assert (False
3893 or else NT (N).Nkind = N_Subunit);
3895 end Set_Corresponding_Stub;
3897 procedure Set_Dcheck_Function
3898 (N : Node_Id; Val : Entity_Id) is
3900 pragma Assert (False
3901 or else NT (N).Nkind = N_Variant);
3902 Set_Node5 (N, Val); -- semantic field, no parent set
3903 end Set_Dcheck_Function;
3905 procedure Set_Declarations
3906 (N : Node_Id; Val : List_Id) is
3908 pragma Assert (False
3909 or else NT (N).Nkind = N_Accept_Statement
3910 or else NT (N).Nkind = N_Block_Statement
3911 or else NT (N).Nkind = N_Compilation_Unit_Aux
3912 or else NT (N).Nkind = N_Entry_Body
3913 or else NT (N).Nkind = N_Package_Body
3914 or else NT (N).Nkind = N_Protected_Body
3915 or else NT (N).Nkind = N_Subprogram_Body
3916 or else NT (N).Nkind = N_Task_Body);
3917 Set_List2_With_Parent (N, Val);
3918 end Set_Declarations;
3920 procedure Set_Default_Expression
3921 (N : Node_Id; Val : Node_Id) is
3923 pragma Assert (False
3924 or else NT (N).Nkind = N_Formal_Object_Declaration
3925 or else NT (N).Nkind = N_Parameter_Specification);
3926 Set_Node5 (N, Val); -- semantic field, no parent set
3927 end Set_Default_Expression;
3929 procedure Set_Default_Storage_Pool
3930 (N : Node_Id; Val : Node_Id) is
3932 pragma Assert (False
3933 or else NT (N).Nkind = N_Compilation_Unit_Aux);
3934 Set_Node3 (N, Val); -- semantic field, no parent set
3935 end Set_Default_Storage_Pool;
3937 procedure Set_Default_Name
3938 (N : Node_Id; Val : Node_Id) is
3940 pragma Assert (False
3941 or else NT (N).Nkind = N_Formal_Abstract_Subprogram_Declaration
3942 or else NT (N).Nkind = N_Formal_Concrete_Subprogram_Declaration);
3943 Set_Node2_With_Parent (N, Val);
3944 end Set_Default_Name;
3946 procedure Set_Defining_Identifier
3947 (N : Node_Id; Val : Entity_Id) is
3949 pragma Assert (False
3950 or else NT (N).Nkind = N_Component_Declaration
3951 or else NT (N).Nkind = N_Defining_Program_Unit_Name
3952 or else NT (N).Nkind = N_Discriminant_Specification
3953 or else NT (N).Nkind = N_Entry_Body
3954 or else NT (N).Nkind = N_Entry_Declaration
3955 or else NT (N).Nkind = N_Entry_Index_Specification
3956 or else NT (N).Nkind = N_Exception_Declaration
3957 or else NT (N).Nkind = N_Exception_Renaming_Declaration
3958 or else NT (N).Nkind = N_Formal_Object_Declaration
3959 or else NT (N).Nkind = N_Formal_Package_Declaration
3960 or else NT (N).Nkind = N_Formal_Type_Declaration
3961 or else NT (N).Nkind = N_Full_Type_Declaration
3962 or else NT (N).Nkind = N_Implicit_Label_Declaration
3963 or else NT (N).Nkind = N_Incomplete_Type_Declaration
3964 or else NT (N).Nkind = N_Iterator_Specification
3965 or else NT (N).Nkind = N_Loop_Parameter_Specification
3966 or else NT (N).Nkind = N_Number_Declaration
3967 or else NT (N).Nkind = N_Object_Declaration
3968 or else NT (N).Nkind = N_Object_Renaming_Declaration
3969 or else NT (N).Nkind = N_Package_Body_Stub
3970 or else NT (N).Nkind = N_Parameter_Specification
3971 or else NT (N).Nkind = N_Private_Extension_Declaration
3972 or else NT (N).Nkind = N_Private_Type_Declaration
3973 or else NT (N).Nkind = N_Protected_Body
3974 or else NT (N).Nkind = N_Protected_Body_Stub
3975 or else NT (N).Nkind = N_Protected_Type_Declaration
3976 or else NT (N).Nkind = N_Single_Protected_Declaration
3977 or else NT (N).Nkind = N_Single_Task_Declaration
3978 or else NT (N).Nkind = N_Subtype_Declaration
3979 or else NT (N).Nkind = N_Task_Body
3980 or else NT (N).Nkind = N_Task_Body_Stub
3981 or else NT (N).Nkind = N_Task_Type_Declaration);
3982 Set_Node1_With_Parent (N, Val);
3983 end Set_Defining_Identifier;
3985 procedure Set_Defining_Unit_Name
3986 (N : Node_Id; Val : Node_Id) is
3988 pragma Assert (False
3989 or else NT (N).Nkind = N_Function_Instantiation
3990 or else NT (N).Nkind = N_Function_Specification
3991 or else NT (N).Nkind = N_Generic_Function_Renaming_Declaration
3992 or else NT (N).Nkind = N_Generic_Package_Renaming_Declaration
3993 or else NT (N).Nkind = N_Generic_Procedure_Renaming_Declaration
3994 or else NT (N).Nkind = N_Package_Body
3995 or else NT (N).Nkind = N_Package_Instantiation
3996 or else NT (N).Nkind = N_Package_Renaming_Declaration
3997 or else NT (N).Nkind = N_Package_Specification
3998 or else NT (N).Nkind = N_Procedure_Instantiation
3999 or else NT (N).Nkind = N_Procedure_Specification);
4000 Set_Node1_With_Parent (N, Val);
4001 end Set_Defining_Unit_Name;
4003 procedure Set_Delay_Alternative
4004 (N : Node_Id; Val : Node_Id) is
4006 pragma Assert (False
4007 or else NT (N).Nkind = N_Timed_Entry_Call);
4008 Set_Node4_With_Parent (N, Val);
4009 end Set_Delay_Alternative;
4011 procedure Set_Delay_Statement
4012 (N : Node_Id; Val : Node_Id) is
4014 pragma Assert (False
4015 or else NT (N).Nkind = N_Delay_Alternative);
4016 Set_Node2_With_Parent (N, Val);
4017 end Set_Delay_Statement;
4019 procedure Set_Delta_Expression
4020 (N : Node_Id; Val : Node_Id) is
4022 pragma Assert (False
4023 or else NT (N).Nkind = N_Decimal_Fixed_Point_Definition
4024 or else NT (N).Nkind = N_Delta_Constraint
4025 or else NT (N).Nkind = N_Ordinary_Fixed_Point_Definition);
4026 Set_Node3_With_Parent (N, Val);
4027 end Set_Delta_Expression;
4029 procedure Set_Digits_Expression
4030 (N : Node_Id; Val : Node_Id) is
4032 pragma Assert (False
4033 or else NT (N).Nkind = N_Decimal_Fixed_Point_Definition
4034 or else NT (N).Nkind = N_Digits_Constraint
4035 or else NT (N).Nkind = N_Floating_Point_Definition);
4036 Set_Node2_With_Parent (N, Val);
4037 end Set_Digits_Expression;
4039 procedure Set_Discr_Check_Funcs_Built
4040 (N : Node_Id; Val : Boolean := True) is
4042 pragma Assert (False
4043 or else NT (N).Nkind = N_Full_Type_Declaration);
4044 Set_Flag11 (N, Val);
4045 end Set_Discr_Check_Funcs_Built;
4047 procedure Set_Discrete_Choices
4048 (N : Node_Id; Val : List_Id) is
4050 pragma Assert (False
4051 or else NT (N).Nkind = N_Case_Expression_Alternative
4052 or else NT (N).Nkind = N_Case_Statement_Alternative
4053 or else NT (N).Nkind = N_Variant);
4054 Set_List4_With_Parent (N, Val);
4055 end Set_Discrete_Choices;
4057 procedure Set_Discrete_Range
4058 (N : Node_Id; Val : Node_Id) is
4060 pragma Assert (False
4061 or else NT (N).Nkind = N_Slice);
4062 Set_Node4_With_Parent (N, Val);
4063 end Set_Discrete_Range;
4065 procedure Set_Discrete_Subtype_Definition
4066 (N : Node_Id; Val : Node_Id) is
4068 pragma Assert (False
4069 or else NT (N).Nkind = N_Entry_Declaration
4070 or else NT (N).Nkind = N_Entry_Index_Specification
4071 or else NT (N).Nkind = N_Loop_Parameter_Specification);
4072 Set_Node4_With_Parent (N, Val);
4073 end Set_Discrete_Subtype_Definition;
4075 procedure Set_Discrete_Subtype_Definitions
4076 (N : Node_Id; Val : List_Id) is
4078 pragma Assert (False
4079 or else NT (N).Nkind = N_Constrained_Array_Definition);
4080 Set_List2_With_Parent (N, Val);
4081 end Set_Discrete_Subtype_Definitions;
4083 procedure Set_Discriminant_Specifications
4084 (N : Node_Id; Val : List_Id) is
4086 pragma Assert (False
4087 or else NT (N).Nkind = N_Formal_Type_Declaration
4088 or else NT (N).Nkind = N_Full_Type_Declaration
4089 or else NT (N).Nkind = N_Incomplete_Type_Declaration
4090 or else NT (N).Nkind = N_Private_Extension_Declaration
4091 or else NT (N).Nkind = N_Private_Type_Declaration
4092 or else NT (N).Nkind = N_Protected_Type_Declaration
4093 or else NT (N).Nkind = N_Task_Type_Declaration);
4094 Set_List4_With_Parent (N, Val);
4095 end Set_Discriminant_Specifications;
4097 procedure Set_Discriminant_Type
4098 (N : Node_Id; Val : Node_Id) is
4100 pragma Assert (False
4101 or else NT (N).Nkind = N_Discriminant_Specification);
4102 Set_Node5_With_Parent (N, Val);
4103 end Set_Discriminant_Type;
4105 procedure Set_Do_Accessibility_Check
4106 (N : Node_Id; Val : Boolean := True) is
4108 pragma Assert (False
4109 or else NT (N).Nkind = N_Parameter_Specification);
4110 Set_Flag13 (N, Val);
4111 end Set_Do_Accessibility_Check;
4113 procedure Set_Do_Discriminant_Check
4114 (N : Node_Id; Val : Boolean := True) is
4116 pragma Assert (False
4117 or else NT (N).Nkind = N_Assignment_Statement
4118 or else NT (N).Nkind = N_Selected_Component
4119 or else NT (N).Nkind = N_Type_Conversion);
4121 end Set_Do_Discriminant_Check;
4123 procedure Set_Do_Division_Check
4124 (N : Node_Id; Val : Boolean := True) is
4126 pragma Assert (False
4127 or else NT (N).Nkind = N_Op_Divide
4128 or else NT (N).Nkind = N_Op_Mod
4129 or else NT (N).Nkind = N_Op_Rem);
4130 Set_Flag13 (N, Val);
4131 end Set_Do_Division_Check;
4133 procedure Set_Do_Length_Check
4134 (N : Node_Id; Val : Boolean := True) is
4136 pragma Assert (False
4137 or else NT (N).Nkind = N_Assignment_Statement
4138 or else NT (N).Nkind = N_Op_And
4139 or else NT (N).Nkind = N_Op_Or
4140 or else NT (N).Nkind = N_Op_Xor
4141 or else NT (N).Nkind = N_Type_Conversion);
4143 end Set_Do_Length_Check;
4145 procedure Set_Do_Overflow_Check
4146 (N : Node_Id; Val : Boolean := True) is
4148 pragma Assert (False
4149 or else NT (N).Nkind in N_Op
4150 or else NT (N).Nkind = N_Attribute_Reference
4151 or else NT (N).Nkind = N_Case_Expression
4152 or else NT (N).Nkind = N_If_Expression
4153 or else NT (N).Nkind = N_Type_Conversion);
4154 Set_Flag17 (N, Val);
4155 end Set_Do_Overflow_Check;
4157 procedure Set_Do_Range_Check
4158 (N : Node_Id; Val : Boolean := True) is
4160 pragma Assert (False
4161 or else NT (N).Nkind in N_Subexpr);
4163 end Set_Do_Range_Check;
4165 procedure Set_Do_Storage_Check
4166 (N : Node_Id; Val : Boolean := True) is
4168 pragma Assert (False
4169 or else NT (N).Nkind = N_Allocator
4170 or else NT (N).Nkind = N_Subprogram_Body);
4171 Set_Flag17 (N, Val);
4172 end Set_Do_Storage_Check;
4174 procedure Set_Do_Tag_Check
4175 (N : Node_Id; Val : Boolean := True) is
4177 pragma Assert (False
4178 or else NT (N).Nkind = N_Assignment_Statement
4179 or else NT (N).Nkind = N_Extended_Return_Statement
4180 or else NT (N).Nkind = N_Function_Call
4181 or else NT (N).Nkind = N_Procedure_Call_Statement
4182 or else NT (N).Nkind = N_Simple_Return_Statement
4183 or else NT (N).Nkind = N_Type_Conversion);
4184 Set_Flag13 (N, Val);
4185 end Set_Do_Tag_Check;
4187 procedure Set_Elaborate_All_Desirable
4188 (N : Node_Id; Val : Boolean := True) is
4190 pragma Assert (False
4191 or else NT (N).Nkind = N_With_Clause);
4193 end Set_Elaborate_All_Desirable;
4195 procedure Set_Elaborate_All_Present
4196 (N : Node_Id; Val : Boolean := True) is
4198 pragma Assert (False
4199 or else NT (N).Nkind = N_With_Clause);
4200 Set_Flag14 (N, Val);
4201 end Set_Elaborate_All_Present;
4203 procedure Set_Elaborate_Desirable
4204 (N : Node_Id; Val : Boolean := True) is
4206 pragma Assert (False
4207 or else NT (N).Nkind = N_With_Clause);
4208 Set_Flag11 (N, Val);
4209 end Set_Elaborate_Desirable;
4211 procedure Set_Elaborate_Present
4212 (N : Node_Id; Val : Boolean := True) is
4214 pragma Assert (False
4215 or else NT (N).Nkind = N_With_Clause);
4217 end Set_Elaborate_Present;
4219 procedure Set_Elaboration_Boolean
4220 (N : Node_Id; Val : Node_Id) is
4222 pragma Assert (False
4223 or else NT (N).Nkind = N_Function_Specification
4224 or else NT (N).Nkind = N_Procedure_Specification);
4226 end Set_Elaboration_Boolean;
4228 procedure Set_Else_Actions
4229 (N : Node_Id; Val : List_Id) is
4231 pragma Assert (False
4232 or else NT (N).Nkind = N_If_Expression);
4233 Set_List3 (N, Val); -- semantic field, no parent set
4234 end Set_Else_Actions;
4236 procedure Set_Else_Statements
4237 (N : Node_Id; Val : List_Id) is
4239 pragma Assert (False
4240 or else NT (N).Nkind = N_Conditional_Entry_Call
4241 or else NT (N).Nkind = N_If_Statement
4242 or else NT (N).Nkind = N_Selective_Accept);
4243 Set_List4_With_Parent (N, Val);
4244 end Set_Else_Statements;
4246 procedure Set_Elsif_Parts
4247 (N : Node_Id; Val : List_Id) is
4249 pragma Assert (False
4250 or else NT (N).Nkind = N_If_Statement);
4251 Set_List3_With_Parent (N, Val);
4252 end Set_Elsif_Parts;
4254 procedure Set_Enclosing_Variant
4255 (N : Node_Id; Val : Node_Id) is
4257 pragma Assert (False
4258 or else NT (N).Nkind = N_Variant);
4259 Set_Node2 (N, Val); -- semantic field, no parent set
4260 end Set_Enclosing_Variant;
4262 procedure Set_End_Label
4263 (N : Node_Id; Val : Node_Id) is
4265 pragma Assert (False
4266 or else NT (N).Nkind = N_Enumeration_Type_Definition
4267 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements
4268 or else NT (N).Nkind = N_Loop_Statement
4269 or else NT (N).Nkind = N_Package_Specification
4270 or else NT (N).Nkind = N_Protected_Body
4271 or else NT (N).Nkind = N_Protected_Definition
4272 or else NT (N).Nkind = N_Record_Definition
4273 or else NT (N).Nkind = N_Task_Definition);
4274 Set_Node4_With_Parent (N, Val);
4277 procedure Set_End_Span
4278 (N : Node_Id; Val : Uint) is
4280 pragma Assert (False
4281 or else NT (N).Nkind = N_Case_Statement
4282 or else NT (N).Nkind = N_If_Statement);
4286 procedure Set_Entity
4287 (N : Node_Id; Val : Node_Id) is
4289 pragma Assert (False
4290 or else NT (N).Nkind in N_Has_Entity
4291 or else NT (N).Nkind = N_Aspect_Specification
4292 or else NT (N).Nkind = N_Attribute_Definition_Clause
4293 or else NT (N).Nkind = N_Freeze_Entity
4294 or else NT (N).Nkind = N_Freeze_Generic_Entity);
4295 Set_Node4 (N, Val); -- semantic field, no parent set
4298 procedure Set_Entry_Body_Formal_Part
4299 (N : Node_Id; Val : Node_Id) is
4301 pragma Assert (False
4302 or else NT (N).Nkind = N_Entry_Body);
4303 Set_Node5_With_Parent (N, Val);
4304 end Set_Entry_Body_Formal_Part;
4306 procedure Set_Entry_Call_Alternative
4307 (N : Node_Id; Val : Node_Id) is
4309 pragma Assert (False
4310 or else NT (N).Nkind = N_Conditional_Entry_Call
4311 or else NT (N).Nkind = N_Timed_Entry_Call);
4312 Set_Node1_With_Parent (N, Val);
4313 end Set_Entry_Call_Alternative;
4315 procedure Set_Entry_Call_Statement
4316 (N : Node_Id; Val : Node_Id) is
4318 pragma Assert (False
4319 or else NT (N).Nkind = N_Entry_Call_Alternative);
4320 Set_Node1_With_Parent (N, Val);
4321 end Set_Entry_Call_Statement;
4323 procedure Set_Entry_Direct_Name
4324 (N : Node_Id; Val : Node_Id) is
4326 pragma Assert (False
4327 or else NT (N).Nkind = N_Accept_Statement);
4328 Set_Node1_With_Parent (N, Val);
4329 end Set_Entry_Direct_Name;
4331 procedure Set_Entry_Index
4332 (N : Node_Id; Val : Node_Id) is
4334 pragma Assert (False
4335 or else NT (N).Nkind = N_Accept_Statement);
4336 Set_Node5_With_Parent (N, Val);
4337 end Set_Entry_Index;
4339 procedure Set_Entry_Index_Specification
4340 (N : Node_Id; Val : Node_Id) is
4342 pragma Assert (False
4343 or else NT (N).Nkind = N_Entry_Body_Formal_Part);
4344 Set_Node4_With_Parent (N, Val);
4345 end Set_Entry_Index_Specification;
4348 (N : Node_Id; Val : Node_Id) is
4350 pragma Assert (False
4351 or else NT (N).Nkind in N_Has_Etype);
4352 Set_Node5 (N, Val); -- semantic field, no parent set
4355 procedure Set_Exception_Choices
4356 (N : Node_Id; Val : List_Id) is
4358 pragma Assert (False
4359 or else NT (N).Nkind = N_Exception_Handler);
4360 Set_List4_With_Parent (N, Val);
4361 end Set_Exception_Choices;
4363 procedure Set_Exception_Handlers
4364 (N : Node_Id; Val : List_Id) is
4366 pragma Assert (False
4367 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements);
4368 Set_List5_With_Parent (N, Val);
4369 end Set_Exception_Handlers;
4371 procedure Set_Exception_Junk
4372 (N : Node_Id; Val : Boolean := True) is
4374 pragma Assert (False
4375 or else NT (N).Nkind = N_Block_Statement
4376 or else NT (N).Nkind = N_Goto_Statement
4377 or else NT (N).Nkind = N_Label
4378 or else NT (N).Nkind = N_Object_Declaration
4379 or else NT (N).Nkind = N_Subtype_Declaration);
4381 end Set_Exception_Junk;
4383 procedure Set_Exception_Label
4384 (N : Node_Id; Val : Node_Id) is
4386 pragma Assert (False
4387 or else NT (N).Nkind = N_Exception_Handler
4388 or else NT (N).Nkind = N_Push_Constraint_Error_Label
4389 or else NT (N).Nkind = N_Push_Program_Error_Label
4390 or else NT (N).Nkind = N_Push_Storage_Error_Label);
4391 Set_Node5 (N, Val); -- semantic field, no parent set
4392 end Set_Exception_Label;
4394 procedure Set_Expansion_Delayed
4395 (N : Node_Id; Val : Boolean := True) is
4397 pragma Assert (False
4398 or else NT (N).Nkind = N_Aggregate
4399 or else NT (N).Nkind = N_Extension_Aggregate);
4400 Set_Flag11 (N, Val);
4401 end Set_Expansion_Delayed;
4403 procedure Set_Explicit_Actual_Parameter
4404 (N : Node_Id; Val : Node_Id) is
4406 pragma Assert (False
4407 or else NT (N).Nkind = N_Parameter_Association);
4408 Set_Node3_With_Parent (N, Val);
4409 end Set_Explicit_Actual_Parameter;
4411 procedure Set_Explicit_Generic_Actual_Parameter
4412 (N : Node_Id; Val : Node_Id) is
4414 pragma Assert (False
4415 or else NT (N).Nkind = N_Generic_Association);
4416 Set_Node1_With_Parent (N, Val);
4417 end Set_Explicit_Generic_Actual_Parameter;
4419 procedure Set_Expression
4420 (N : Node_Id; Val : Node_Id) is
4422 pragma Assert (False
4423 or else NT (N).Nkind = N_Allocator
4424 or else NT (N).Nkind = N_Aspect_Specification
4425 or else NT (N).Nkind = N_Assignment_Statement
4426 or else NT (N).Nkind = N_At_Clause
4427 or else NT (N).Nkind = N_Attribute_Definition_Clause
4428 or else NT (N).Nkind = N_Case_Expression
4429 or else NT (N).Nkind = N_Case_Expression_Alternative
4430 or else NT (N).Nkind = N_Case_Statement
4431 or else NT (N).Nkind = N_Code_Statement
4432 or else NT (N).Nkind = N_Component_Association
4433 or else NT (N).Nkind = N_Component_Declaration
4434 or else NT (N).Nkind = N_Delay_Relative_Statement
4435 or else NT (N).Nkind = N_Delay_Until_Statement
4436 or else NT (N).Nkind = N_Discriminant_Association
4437 or else NT (N).Nkind = N_Discriminant_Specification
4438 or else NT (N).Nkind = N_Exception_Declaration
4439 or else NT (N).Nkind = N_Expression_Function
4440 or else NT (N).Nkind = N_Expression_With_Actions
4441 or else NT (N).Nkind = N_Free_Statement
4442 or else NT (N).Nkind = N_Mod_Clause
4443 or else NT (N).Nkind = N_Modular_Type_Definition
4444 or else NT (N).Nkind = N_Number_Declaration
4445 or else NT (N).Nkind = N_Object_Declaration
4446 or else NT (N).Nkind = N_Parameter_Specification
4447 or else NT (N).Nkind = N_Pragma_Argument_Association
4448 or else NT (N).Nkind = N_Qualified_Expression
4449 or else NT (N).Nkind = N_Raise_Expression
4450 or else NT (N).Nkind = N_Raise_Statement
4451 or else NT (N).Nkind = N_Simple_Return_Statement
4452 or else NT (N).Nkind = N_Type_Conversion
4453 or else NT (N).Nkind = N_Unchecked_Expression
4454 or else NT (N).Nkind = N_Unchecked_Type_Conversion);
4455 Set_Node3_With_Parent (N, Val);
4458 procedure Set_Expressions
4459 (N : Node_Id; Val : List_Id) is
4461 pragma Assert (False
4462 or else NT (N).Nkind = N_Aggregate
4463 or else NT (N).Nkind = N_Attribute_Reference
4464 or else NT (N).Nkind = N_Extension_Aggregate
4465 or else NT (N).Nkind = N_If_Expression
4466 or else NT (N).Nkind = N_Indexed_Component);
4467 Set_List1_With_Parent (N, Val);
4468 end Set_Expressions;
4470 procedure Set_First_Bit
4471 (N : Node_Id; Val : Node_Id) is
4473 pragma Assert (False
4474 or else NT (N).Nkind = N_Component_Clause);
4475 Set_Node3_With_Parent (N, Val);
4478 procedure Set_First_Inlined_Subprogram
4479 (N : Node_Id; Val : Entity_Id) is
4481 pragma Assert (False
4482 or else NT (N).Nkind = N_Compilation_Unit);
4483 Set_Node3 (N, Val); -- semantic field, no parent set
4484 end Set_First_Inlined_Subprogram;
4486 procedure Set_First_Name
4487 (N : Node_Id; Val : Boolean := True) is
4489 pragma Assert (False
4490 or else NT (N).Nkind = N_With_Clause);
4494 procedure Set_First_Named_Actual
4495 (N : Node_Id; Val : Node_Id) is
4497 pragma Assert (False
4498 or else NT (N).Nkind = N_Entry_Call_Statement
4499 or else NT (N).Nkind = N_Function_Call
4500 or else NT (N).Nkind = N_Procedure_Call_Statement);
4501 Set_Node4 (N, Val); -- semantic field, no parent set
4502 end Set_First_Named_Actual;
4504 procedure Set_First_Real_Statement
4505 (N : Node_Id; Val : Node_Id) is
4507 pragma Assert (False
4508 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements);
4509 Set_Node2 (N, Val); -- semantic field, no parent set
4510 end Set_First_Real_Statement;
4512 procedure Set_First_Subtype_Link
4513 (N : Node_Id; Val : Entity_Id) is
4515 pragma Assert (False
4516 or else NT (N).Nkind = N_Freeze_Entity);
4517 Set_Node5 (N, Val); -- semantic field, no parent set
4518 end Set_First_Subtype_Link;
4520 procedure Set_Float_Truncate
4521 (N : Node_Id; Val : Boolean := True) is
4523 pragma Assert (False
4524 or else NT (N).Nkind = N_Type_Conversion);
4525 Set_Flag11 (N, Val);
4526 end Set_Float_Truncate;
4528 procedure Set_Formal_Type_Definition
4529 (N : Node_Id; Val : Node_Id) is
4531 pragma Assert (False
4532 or else NT (N).Nkind = N_Formal_Type_Declaration);
4533 Set_Node3_With_Parent (N, Val);
4534 end Set_Formal_Type_Definition;
4536 procedure Set_Forwards_OK
4537 (N : Node_Id; Val : Boolean := True) is
4539 pragma Assert (False
4540 or else NT (N).Nkind = N_Assignment_Statement);
4542 end Set_Forwards_OK;
4544 procedure Set_From_Aspect_Specification
4545 (N : Node_Id; Val : Boolean := True) is
4547 pragma Assert (False
4548 or else NT (N).Nkind = N_Attribute_Definition_Clause
4549 or else NT (N).Nkind = N_Pragma);
4550 Set_Flag13 (N, Val);
4551 end Set_From_Aspect_Specification;
4553 procedure Set_From_At_End
4554 (N : Node_Id; Val : Boolean := True) is
4556 pragma Assert (False
4557 or else NT (N).Nkind = N_Raise_Statement);
4559 end Set_From_At_End;
4561 procedure Set_From_At_Mod
4562 (N : Node_Id; Val : Boolean := True) is
4564 pragma Assert (False
4565 or else NT (N).Nkind = N_Attribute_Definition_Clause);
4567 end Set_From_At_Mod;
4569 procedure Set_From_Default
4570 (N : Node_Id; Val : Boolean := True) is
4572 pragma Assert (False
4573 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration);
4575 end Set_From_Default;
4577 procedure Set_Generalized_Indexing
4578 (N : Node_Id; Val : Node_Id) is
4580 pragma Assert (False
4581 or else NT (N).Nkind = N_Indexed_Component);
4583 end Set_Generalized_Indexing;
4585 procedure Set_Generic_Associations
4586 (N : Node_Id; Val : List_Id) is
4588 pragma Assert (False
4589 or else NT (N).Nkind = N_Formal_Package_Declaration
4590 or else NT (N).Nkind = N_Function_Instantiation
4591 or else NT (N).Nkind = N_Package_Instantiation
4592 or else NT (N).Nkind = N_Procedure_Instantiation);
4593 Set_List3_With_Parent (N, Val);
4594 end Set_Generic_Associations;
4596 procedure Set_Generic_Formal_Declarations
4597 (N : Node_Id; Val : List_Id) is
4599 pragma Assert (False
4600 or else NT (N).Nkind = N_Generic_Package_Declaration
4601 or else NT (N).Nkind = N_Generic_Subprogram_Declaration);
4602 Set_List2_With_Parent (N, Val);
4603 end Set_Generic_Formal_Declarations;
4605 procedure Set_Generic_Parent
4606 (N : Node_Id; Val : Node_Id) is
4608 pragma Assert (False
4609 or else NT (N).Nkind = N_Function_Specification
4610 or else NT (N).Nkind = N_Package_Specification
4611 or else NT (N).Nkind = N_Procedure_Specification);
4613 end Set_Generic_Parent;
4615 procedure Set_Generic_Parent_Type
4616 (N : Node_Id; Val : Node_Id) is
4618 pragma Assert (False
4619 or else NT (N).Nkind = N_Subtype_Declaration);
4621 end Set_Generic_Parent_Type;
4623 procedure Set_Handled_Statement_Sequence
4624 (N : Node_Id; Val : Node_Id) is
4626 pragma Assert (False
4627 or else NT (N).Nkind = N_Accept_Statement
4628 or else NT (N).Nkind = N_Block_Statement
4629 or else NT (N).Nkind = N_Entry_Body
4630 or else NT (N).Nkind = N_Extended_Return_Statement
4631 or else NT (N).Nkind = N_Package_Body
4632 or else NT (N).Nkind = N_Subprogram_Body
4633 or else NT (N).Nkind = N_Task_Body);
4634 Set_Node4_With_Parent (N, Val);
4635 end Set_Handled_Statement_Sequence;
4637 procedure Set_Handler_List_Entry
4638 (N : Node_Id; Val : Node_Id) is
4640 pragma Assert (False
4641 or else NT (N).Nkind = N_Object_Declaration);
4643 end Set_Handler_List_Entry;
4645 procedure Set_Has_Created_Identifier
4646 (N : Node_Id; Val : Boolean := True) is
4648 pragma Assert (False
4649 or else NT (N).Nkind = N_Block_Statement
4650 or else NT (N).Nkind = N_Loop_Statement);
4651 Set_Flag15 (N, Val);
4652 end Set_Has_Created_Identifier;
4654 procedure Set_Has_Dereference_Action
4655 (N : Node_Id; Val : Boolean := True) is
4657 pragma Assert (False
4658 or else NT (N).Nkind = N_Explicit_Dereference);
4659 Set_Flag13 (N, Val);
4660 end Set_Has_Dereference_Action;
4662 procedure Set_Has_Dynamic_Length_Check
4663 (N : Node_Id; Val : Boolean := True) is
4665 pragma Assert (False
4666 or else NT (N).Nkind in N_Subexpr);
4667 Set_Flag10 (N, Val);
4668 end Set_Has_Dynamic_Length_Check;
4670 procedure Set_Has_Dynamic_Range_Check
4671 (N : Node_Id; Val : Boolean := True) is
4673 pragma Assert (False
4674 or else NT (N).Nkind = N_Subtype_Declaration
4675 or else NT (N).Nkind in N_Subexpr);
4676 Set_Flag12 (N, Val);
4677 end Set_Has_Dynamic_Range_Check;
4679 procedure Set_Has_Init_Expression
4680 (N : Node_Id; Val : Boolean := True) is
4682 pragma Assert (False
4683 or else NT (N).Nkind = N_Object_Declaration);
4684 Set_Flag14 (N, Val);
4685 end Set_Has_Init_Expression;
4687 procedure Set_Has_Local_Raise
4688 (N : Node_Id; Val : Boolean := True) is
4690 pragma Assert (False
4691 or else NT (N).Nkind = N_Exception_Handler);
4693 end Set_Has_Local_Raise;
4695 procedure Set_Has_No_Elaboration_Code
4696 (N : Node_Id; Val : Boolean := True) is
4698 pragma Assert (False
4699 or else NT (N).Nkind = N_Compilation_Unit);
4700 Set_Flag17 (N, Val);
4701 end Set_Has_No_Elaboration_Code;
4703 procedure Set_Has_Pragma_Suppress_All
4704 (N : Node_Id; Val : Boolean := True) is
4706 pragma Assert (False
4707 or else NT (N).Nkind = N_Compilation_Unit);
4708 Set_Flag14 (N, Val);
4709 end Set_Has_Pragma_Suppress_All;
4711 procedure Set_Has_Private_View
4712 (N : Node_Id; Val : Boolean := True) is
4714 pragma Assert (False
4715 or else NT (N).Nkind in N_Op
4716 or else NT (N).Nkind = N_Character_Literal
4717 or else NT (N).Nkind = N_Expanded_Name
4718 or else NT (N).Nkind = N_Identifier
4719 or else NT (N).Nkind = N_Operator_Symbol);
4720 Set_Flag11 (N, Val);
4721 end Set_Has_Private_View;
4723 procedure Set_Has_Relative_Deadline_Pragma
4724 (N : Node_Id; Val : Boolean := True) is
4726 pragma Assert (False
4727 or else NT (N).Nkind = N_Subprogram_Body
4728 or else NT (N).Nkind = N_Task_Definition);
4730 end Set_Has_Relative_Deadline_Pragma;
4732 procedure Set_Has_Self_Reference
4733 (N : Node_Id; Val : Boolean := True) is
4735 pragma Assert (False
4736 or else NT (N).Nkind = N_Aggregate
4737 or else NT (N).Nkind = N_Extension_Aggregate);
4738 Set_Flag13 (N, Val);
4739 end Set_Has_Self_Reference;
4741 procedure Set_Has_SP_Choice
4742 (N : Node_Id; Val : Boolean := True) is
4744 pragma Assert (False
4745 or else NT (N).Nkind = N_Case_Expression_Alternative
4746 or else NT (N).Nkind = N_Case_Statement_Alternative
4747 or else NT (N).Nkind = N_Variant);
4748 Set_Flag15 (N, Val);
4749 end Set_Has_SP_Choice;
4751 procedure Set_Has_Storage_Size_Pragma
4752 (N : Node_Id; Val : Boolean := True) is
4754 pragma Assert (False
4755 or else NT (N).Nkind = N_Task_Definition);
4757 end Set_Has_Storage_Size_Pragma;
4759 procedure Set_Has_Wide_Character
4760 (N : Node_Id; Val : Boolean := True) is
4762 pragma Assert (False
4763 or else NT (N).Nkind = N_String_Literal);
4764 Set_Flag11 (N, Val);
4765 end Set_Has_Wide_Character;
4767 procedure Set_Has_Wide_Wide_Character
4768 (N : Node_Id; Val : Boolean := True) is
4770 pragma Assert (False
4771 or else NT (N).Nkind = N_String_Literal);
4772 Set_Flag13 (N, Val);
4773 end Set_Has_Wide_Wide_Character;
4775 procedure Set_Header_Size_Added
4776 (N : Node_Id; Val : Boolean := True) is
4778 pragma Assert (False
4779 or else NT (N).Nkind = N_Attribute_Reference);
4780 Set_Flag11 (N, Val);
4781 end Set_Header_Size_Added;
4783 procedure Set_Hidden_By_Use_Clause
4784 (N : Node_Id; Val : Elist_Id) is
4786 pragma Assert (False
4787 or else NT (N).Nkind = N_Use_Package_Clause
4788 or else NT (N).Nkind = N_Use_Type_Clause);
4789 Set_Elist4 (N, Val);
4790 end Set_Hidden_By_Use_Clause;
4792 procedure Set_High_Bound
4793 (N : Node_Id; Val : Node_Id) is
4795 pragma Assert (False
4796 or else NT (N).Nkind = N_Range
4797 or else NT (N).Nkind = N_Real_Range_Specification
4798 or else NT (N).Nkind = N_Signed_Integer_Type_Definition);
4799 Set_Node2_With_Parent (N, Val);
4802 procedure Set_Identifier
4803 (N : Node_Id; Val : Node_Id) is
4805 pragma Assert (False
4806 or else NT (N).Nkind = N_Aspect_Specification
4807 or else NT (N).Nkind = N_At_Clause
4808 or else NT (N).Nkind = N_Block_Statement
4809 or else NT (N).Nkind = N_Designator
4810 or else NT (N).Nkind = N_Enumeration_Representation_Clause
4811 or else NT (N).Nkind = N_Label
4812 or else NT (N).Nkind = N_Loop_Statement
4813 or else NT (N).Nkind = N_Record_Representation_Clause);
4814 Set_Node1_With_Parent (N, Val);
4817 procedure Set_Implicit_With
4818 (N : Node_Id; Val : Boolean := True) is
4820 pragma Assert (False
4821 or else NT (N).Nkind = N_With_Clause);
4822 Set_Flag16 (N, Val);
4823 end Set_Implicit_With;
4825 procedure Set_Implicit_With_From_Instantiation
4826 (N : Node_Id; Val : Boolean := True) is
4828 pragma Assert (False
4829 or else NT (N).Nkind = N_With_Clause);
4830 Set_Flag12 (N, Val);
4831 end Set_Implicit_With_From_Instantiation;
4833 procedure Set_Interface_List
4834 (N : Node_Id; Val : List_Id) is
4836 pragma Assert (False
4837 or else NT (N).Nkind = N_Derived_Type_Definition
4838 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
4839 or else NT (N).Nkind = N_Private_Extension_Declaration
4840 or else NT (N).Nkind = N_Protected_Type_Declaration
4841 or else NT (N).Nkind = N_Record_Definition
4842 or else NT (N).Nkind = N_Single_Protected_Declaration
4843 or else NT (N).Nkind = N_Single_Task_Declaration
4844 or else NT (N).Nkind = N_Task_Type_Declaration);
4845 Set_List2_With_Parent (N, Val);
4846 end Set_Interface_List;
4848 procedure Set_Interface_Present
4849 (N : Node_Id; Val : Boolean := True) is
4851 pragma Assert (False
4852 or else NT (N).Nkind = N_Derived_Type_Definition
4853 or else NT (N).Nkind = N_Record_Definition);
4854 Set_Flag16 (N, Val);
4855 end Set_Interface_Present;
4857 procedure Set_Import_Interface_Present
4858 (N : Node_Id; Val : Boolean := True) is
4860 pragma Assert (False
4861 or else NT (N).Nkind = N_Pragma);
4862 Set_Flag16 (N, Val);
4863 end Set_Import_Interface_Present;
4865 procedure Set_In_Present
4866 (N : Node_Id; Val : Boolean := True) is
4868 pragma Assert (False
4869 or else NT (N).Nkind = N_Formal_Object_Declaration
4870 or else NT (N).Nkind = N_Parameter_Specification);
4871 Set_Flag15 (N, Val);
4874 procedure Set_Includes_Infinities
4875 (N : Node_Id; Val : Boolean := True) is
4877 pragma Assert (False
4878 or else NT (N).Nkind = N_Range);
4879 Set_Flag11 (N, Val);
4880 end Set_Includes_Infinities;
4882 procedure Set_Inherited_Discriminant
4883 (N : Node_Id; Val : Boolean := True) is
4885 pragma Assert (False
4886 or else NT (N).Nkind = N_Component_Association);
4887 Set_Flag13 (N, Val);
4888 end Set_Inherited_Discriminant;
4890 procedure Set_Instance_Spec
4891 (N : Node_Id; Val : Node_Id) is
4893 pragma Assert (False
4894 or else NT (N).Nkind = N_Formal_Package_Declaration
4895 or else NT (N).Nkind = N_Function_Instantiation
4896 or else NT (N).Nkind = N_Package_Instantiation
4897 or else NT (N).Nkind = N_Procedure_Instantiation);
4898 Set_Node5 (N, Val); -- semantic field, no Parent set
4899 end Set_Instance_Spec;
4901 procedure Set_Intval
4902 (N : Node_Id; Val : Uint) is
4904 pragma Assert (False
4905 or else NT (N).Nkind = N_Integer_Literal);
4909 procedure Set_Is_Accessibility_Actual
4910 (N : Node_Id; Val : Boolean := True) is
4912 pragma Assert (False
4913 or else NT (N).Nkind = N_Parameter_Association);
4914 Set_Flag13 (N, Val);
4915 end Set_Is_Accessibility_Actual;
4917 procedure Set_Is_Asynchronous_Call_Block
4918 (N : Node_Id; Val : Boolean := True) is
4920 pragma Assert (False
4921 or else NT (N).Nkind = N_Block_Statement);
4923 end Set_Is_Asynchronous_Call_Block;
4925 procedure Set_Is_Boolean_Aspect
4926 (N : Node_Id; Val : Boolean := True) is
4928 pragma Assert (False
4929 or else NT (N).Nkind = N_Aspect_Specification);
4930 Set_Flag16 (N, Val);
4931 end Set_Is_Boolean_Aspect;
4933 procedure Set_Is_Checked
4934 (N : Node_Id; Val : Boolean := True) is
4936 pragma Assert (False
4937 or else NT (N).Nkind = N_Aspect_Specification
4938 or else NT (N).Nkind = N_Pragma);
4939 Set_Flag11 (N, Val);
4942 procedure Set_Is_Component_Left_Opnd
4943 (N : Node_Id; Val : Boolean := True) is
4945 pragma Assert (False
4946 or else NT (N).Nkind = N_Op_Concat);
4947 Set_Flag13 (N, Val);
4948 end Set_Is_Component_Left_Opnd;
4950 procedure Set_Is_Component_Right_Opnd
4951 (N : Node_Id; Val : Boolean := True) is
4953 pragma Assert (False
4954 or else NT (N).Nkind = N_Op_Concat);
4955 Set_Flag14 (N, Val);
4956 end Set_Is_Component_Right_Opnd;
4958 procedure Set_Is_Controlling_Actual
4959 (N : Node_Id; Val : Boolean := True) is
4961 pragma Assert (False
4962 or else NT (N).Nkind in N_Subexpr);
4963 Set_Flag16 (N, Val);
4964 end Set_Is_Controlling_Actual;
4966 procedure Set_Is_Delayed_Aspect
4967 (N : Node_Id; Val : Boolean := True) is
4969 pragma Assert (False
4970 or else NT (N).Nkind = N_Aspect_Specification
4971 or else NT (N).Nkind = N_Attribute_Definition_Clause
4972 or else NT (N).Nkind = N_Pragma);
4973 Set_Flag14 (N, Val);
4974 end Set_Is_Delayed_Aspect;
4976 procedure Set_Is_Disabled
4977 (N : Node_Id; Val : Boolean := True) is
4979 pragma Assert (False
4980 or else NT (N).Nkind = N_Aspect_Specification
4981 or else NT (N).Nkind = N_Pragma);
4982 Set_Flag15 (N, Val);
4983 end Set_Is_Disabled;
4985 procedure Set_Is_Dynamic_Coextension
4986 (N : Node_Id; Val : Boolean := True) is
4988 pragma Assert (False
4989 or else NT (N).Nkind = N_Allocator);
4990 Set_Flag18 (N, Val);
4991 end Set_Is_Dynamic_Coextension;
4993 procedure Set_Is_Elsif
4994 (N : Node_Id; Val : Boolean := True) is
4996 pragma Assert (False
4997 or else NT (N).Nkind = N_If_Expression);
4998 Set_Flag13 (N, Val);
5001 procedure Set_Is_Entry_Barrier_Function
5002 (N : Node_Id; Val : Boolean := True) is
5004 pragma Assert (False
5005 or else NT (N).Nkind = N_Subprogram_Body);
5007 end Set_Is_Entry_Barrier_Function;
5009 procedure Set_Is_Expanded_Build_In_Place_Call
5010 (N : Node_Id; Val : Boolean := True) is
5012 pragma Assert (False
5013 or else NT (N).Nkind = N_Function_Call);
5014 Set_Flag11 (N, Val);
5015 end Set_Is_Expanded_Build_In_Place_Call;
5017 procedure Set_Is_Finalization_Wrapper
5018 (N : Node_Id; Val : Boolean := True) is
5020 pragma Assert (False
5021 or else NT (N).Nkind = N_Block_Statement);
5023 end Set_Is_Finalization_Wrapper;
5025 procedure Set_Is_Folded_In_Parser
5026 (N : Node_Id; Val : Boolean := True) is
5028 pragma Assert (False
5029 or else NT (N).Nkind = N_String_Literal);
5031 end Set_Is_Folded_In_Parser;
5033 procedure Set_Is_Ignored
5034 (N : Node_Id; Val : Boolean := True) is
5036 pragma Assert (False
5037 or else NT (N).Nkind = N_Aspect_Specification
5038 or else NT (N).Nkind = N_Pragma);
5042 procedure Set_Is_In_Discriminant_Check
5043 (N : Node_Id; Val : Boolean := True) is
5045 pragma Assert (False
5046 or else NT (N).Nkind = N_Selected_Component);
5047 Set_Flag11 (N, Val);
5048 end Set_Is_In_Discriminant_Check;
5050 procedure Set_Is_Machine_Number
5051 (N : Node_Id; Val : Boolean := True) is
5053 pragma Assert (False
5054 or else NT (N).Nkind = N_Real_Literal);
5055 Set_Flag11 (N, Val);
5056 end Set_Is_Machine_Number;
5058 procedure Set_Is_Null_Loop
5059 (N : Node_Id; Val : Boolean := True) is
5061 pragma Assert (False
5062 or else NT (N).Nkind = N_Loop_Statement);
5063 Set_Flag16 (N, Val);
5064 end Set_Is_Null_Loop;
5066 procedure Set_Is_Overloaded
5067 (N : Node_Id; Val : Boolean := True) is
5069 pragma Assert (False
5070 or else NT (N).Nkind in N_Subexpr);
5072 end Set_Is_Overloaded;
5074 procedure Set_Is_Power_Of_2_For_Shift
5075 (N : Node_Id; Val : Boolean := True) is
5077 pragma Assert (False
5078 or else NT (N).Nkind = N_Op_Expon);
5079 Set_Flag13 (N, Val);
5080 end Set_Is_Power_Of_2_For_Shift;
5082 procedure Set_Is_Prefixed_Call
5083 (N : Node_Id; Val : Boolean := True) is
5085 pragma Assert (False
5086 or else NT (N).Nkind = N_Selected_Component);
5087 Set_Flag17 (N, Val);
5088 end Set_Is_Prefixed_Call;
5090 procedure Set_Is_Protected_Subprogram_Body
5091 (N : Node_Id; Val : Boolean := True) is
5093 pragma Assert (False
5094 or else NT (N).Nkind = N_Subprogram_Body);
5096 end Set_Is_Protected_Subprogram_Body;
5098 procedure Set_Is_Static_Coextension
5099 (N : Node_Id; Val : Boolean := True) is
5101 pragma Assert (False
5102 or else NT (N).Nkind = N_Allocator);
5103 Set_Flag14 (N, Val);
5104 end Set_Is_Static_Coextension;
5106 procedure Set_Is_Static_Expression
5107 (N : Node_Id; Val : Boolean := True) is
5109 pragma Assert (False
5110 or else NT (N).Nkind in N_Subexpr);
5112 end Set_Is_Static_Expression;
5114 procedure Set_Is_Subprogram_Descriptor
5115 (N : Node_Id; Val : Boolean := True) is
5117 pragma Assert (False
5118 or else NT (N).Nkind = N_Object_Declaration);
5119 Set_Flag16 (N, Val);
5120 end Set_Is_Subprogram_Descriptor;
5122 procedure Set_Is_Task_Allocation_Block
5123 (N : Node_Id; Val : Boolean := True) is
5125 pragma Assert (False
5126 or else NT (N).Nkind = N_Block_Statement);
5128 end Set_Is_Task_Allocation_Block;
5130 procedure Set_Is_Task_Master
5131 (N : Node_Id; Val : Boolean := True) is
5133 pragma Assert (False
5134 or else NT (N).Nkind = N_Block_Statement
5135 or else NT (N).Nkind = N_Subprogram_Body
5136 or else NT (N).Nkind = N_Task_Body);
5138 end Set_Is_Task_Master;
5140 procedure Set_Iteration_Scheme
5141 (N : Node_Id; Val : Node_Id) is
5143 pragma Assert (False
5144 or else NT (N).Nkind = N_Loop_Statement);
5145 Set_Node2_With_Parent (N, Val);
5146 end Set_Iteration_Scheme;
5148 procedure Set_Iterator_Specification
5149 (N : Node_Id; Val : Node_Id) is
5151 pragma Assert (False
5152 or else NT (N).Nkind = N_Iteration_Scheme
5153 or else NT (N).Nkind = N_Quantified_Expression);
5154 Set_Node2_With_Parent (N, Val);
5155 end Set_Iterator_Specification;
5158 (N : Node_Id; Val : Entity_Id) is
5160 pragma Assert (False
5161 or else NT (N).Nkind = N_Itype_Reference);
5162 Set_Node1 (N, Val); -- no parent, semantic field
5165 procedure Set_Kill_Range_Check
5166 (N : Node_Id; Val : Boolean := True) is
5168 pragma Assert (False
5169 or else NT (N).Nkind = N_Unchecked_Type_Conversion);
5170 Set_Flag11 (N, Val);
5171 end Set_Kill_Range_Check;
5173 procedure Set_Label_Construct
5174 (N : Node_Id; Val : Node_Id) is
5176 pragma Assert (False
5177 or else NT (N).Nkind = N_Implicit_Label_Declaration);
5178 Set_Node2 (N, Val); -- semantic field, no parent set
5179 end Set_Label_Construct;
5181 procedure Set_Last_Bit
5182 (N : Node_Id; Val : Node_Id) is
5184 pragma Assert (False
5185 or else NT (N).Nkind = N_Component_Clause);
5186 Set_Node4_With_Parent (N, Val);
5189 procedure Set_Last_Name
5190 (N : Node_Id; Val : Boolean := True) is
5192 pragma Assert (False
5193 or else NT (N).Nkind = N_With_Clause);
5197 procedure Set_Left_Opnd
5198 (N : Node_Id; Val : Node_Id) is
5200 pragma Assert (False
5201 or else NT (N).Nkind = N_And_Then
5202 or else NT (N).Nkind = N_In
5203 or else NT (N).Nkind = N_Not_In
5204 or else NT (N).Nkind = N_Or_Else
5205 or else NT (N).Nkind in N_Binary_Op);
5206 Set_Node2_With_Parent (N, Val);
5209 procedure Set_Library_Unit
5210 (N : Node_Id; Val : Node_Id) is
5212 pragma Assert (False
5213 or else NT (N).Nkind = N_Compilation_Unit
5214 or else NT (N).Nkind = N_Package_Body_Stub
5215 or else NT (N).Nkind = N_Protected_Body_Stub
5216 or else NT (N).Nkind = N_Subprogram_Body_Stub
5217 or else NT (N).Nkind = N_Task_Body_Stub
5218 or else NT (N).Nkind = N_With_Clause);
5219 Set_Node4 (N, Val); -- semantic field, no parent set
5220 end Set_Library_Unit;
5222 procedure Set_Limited_View_Installed
5223 (N : Node_Id; Val : Boolean := True) is
5225 pragma Assert (False
5226 or else NT (N).Nkind = N_Package_Specification
5227 or else NT (N).Nkind = N_With_Clause);
5228 Set_Flag18 (N, Val);
5229 end Set_Limited_View_Installed;
5231 procedure Set_Limited_Present
5232 (N : Node_Id; Val : Boolean := True) is
5234 pragma Assert (False
5235 or else NT (N).Nkind = N_Derived_Type_Definition
5236 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
5237 or else NT (N).Nkind = N_Formal_Private_Type_Definition
5238 or else NT (N).Nkind = N_Private_Extension_Declaration
5239 or else NT (N).Nkind = N_Private_Type_Declaration
5240 or else NT (N).Nkind = N_Record_Definition
5241 or else NT (N).Nkind = N_With_Clause);
5242 Set_Flag17 (N, Val);
5243 end Set_Limited_Present;
5245 procedure Set_Literals
5246 (N : Node_Id; Val : List_Id) is
5248 pragma Assert (False
5249 or else NT (N).Nkind = N_Enumeration_Type_Definition);
5250 Set_List1_With_Parent (N, Val);
5253 procedure Set_Local_Raise_Not_OK
5254 (N : Node_Id; Val : Boolean := True) is
5256 pragma Assert (False
5257 or else NT (N).Nkind = N_Exception_Handler);
5259 end Set_Local_Raise_Not_OK;
5261 procedure Set_Local_Raise_Statements
5262 (N : Node_Id; Val : Elist_Id) is
5264 pragma Assert (False
5265 or else NT (N).Nkind = N_Exception_Handler);
5266 Set_Elist1 (N, Val);
5267 end Set_Local_Raise_Statements;
5269 procedure Set_Loop_Actions
5270 (N : Node_Id; Val : List_Id) is
5272 pragma Assert (False
5273 or else NT (N).Nkind = N_Component_Association);
5274 Set_List2 (N, Val); -- semantic field, no parent set
5275 end Set_Loop_Actions;
5277 procedure Set_Loop_Parameter_Specification
5278 (N : Node_Id; Val : Node_Id) is
5280 pragma Assert (False
5281 or else NT (N).Nkind = N_Iteration_Scheme
5282 or else NT (N).Nkind = N_Quantified_Expression);
5283 Set_Node4_With_Parent (N, Val);
5284 end Set_Loop_Parameter_Specification;
5286 procedure Set_Low_Bound
5287 (N : Node_Id; Val : Node_Id) is
5289 pragma Assert (False
5290 or else NT (N).Nkind = N_Range
5291 or else NT (N).Nkind = N_Real_Range_Specification
5292 or else NT (N).Nkind = N_Signed_Integer_Type_Definition);
5293 Set_Node1_With_Parent (N, Val);
5296 procedure Set_Mod_Clause
5297 (N : Node_Id; Val : Node_Id) is
5299 pragma Assert (False
5300 or else NT (N).Nkind = N_Record_Representation_Clause);
5301 Set_Node2_With_Parent (N, Val);
5304 procedure Set_More_Ids
5305 (N : Node_Id; Val : Boolean := True) is
5307 pragma Assert (False
5308 or else NT (N).Nkind = N_Component_Declaration
5309 or else NT (N).Nkind = N_Discriminant_Specification
5310 or else NT (N).Nkind = N_Exception_Declaration
5311 or else NT (N).Nkind = N_Formal_Object_Declaration
5312 or else NT (N).Nkind = N_Number_Declaration
5313 or else NT (N).Nkind = N_Object_Declaration
5314 or else NT (N).Nkind = N_Parameter_Specification);
5318 procedure Set_Must_Be_Byte_Aligned
5319 (N : Node_Id; Val : Boolean := True) is
5321 pragma Assert (False
5322 or else NT (N).Nkind = N_Attribute_Reference);
5323 Set_Flag14 (N, Val);
5324 end Set_Must_Be_Byte_Aligned;
5326 procedure Set_Must_Not_Freeze
5327 (N : Node_Id; Val : Boolean := True) is
5329 pragma Assert (False
5330 or else NT (N).Nkind = N_Subtype_Indication
5331 or else NT (N).Nkind in N_Subexpr);
5333 end Set_Must_Not_Freeze;
5335 procedure Set_Must_Not_Override
5336 (N : Node_Id; Val : Boolean := True) is
5338 pragma Assert (False
5339 or else NT (N).Nkind = N_Entry_Declaration
5340 or else NT (N).Nkind = N_Function_Instantiation
5341 or else NT (N).Nkind = N_Function_Specification
5342 or else NT (N).Nkind = N_Procedure_Instantiation
5343 or else NT (N).Nkind = N_Procedure_Specification);
5344 Set_Flag15 (N, Val);
5345 end Set_Must_Not_Override;
5347 procedure Set_Must_Override
5348 (N : Node_Id; Val : Boolean := True) is
5350 pragma Assert (False
5351 or else NT (N).Nkind = N_Entry_Declaration
5352 or else NT (N).Nkind = N_Function_Instantiation
5353 or else NT (N).Nkind = N_Function_Specification
5354 or else NT (N).Nkind = N_Procedure_Instantiation
5355 or else NT (N).Nkind = N_Procedure_Specification);
5356 Set_Flag14 (N, Val);
5357 end Set_Must_Override;
5360 (N : Node_Id; Val : Node_Id) is
5362 pragma Assert (False
5363 or else NT (N).Nkind = N_Assignment_Statement
5364 or else NT (N).Nkind = N_Attribute_Definition_Clause
5365 or else NT (N).Nkind = N_Defining_Program_Unit_Name
5366 or else NT (N).Nkind = N_Designator
5367 or else NT (N).Nkind = N_Entry_Call_Statement
5368 or else NT (N).Nkind = N_Exception_Renaming_Declaration
5369 or else NT (N).Nkind = N_Exit_Statement
5370 or else NT (N).Nkind = N_Formal_Package_Declaration
5371 or else NT (N).Nkind = N_Function_Call
5372 or else NT (N).Nkind = N_Function_Instantiation
5373 or else NT (N).Nkind = N_Generic_Function_Renaming_Declaration
5374 or else NT (N).Nkind = N_Generic_Package_Renaming_Declaration
5375 or else NT (N).Nkind = N_Generic_Procedure_Renaming_Declaration
5376 or else NT (N).Nkind = N_Goto_Statement
5377 or else NT (N).Nkind = N_Iterator_Specification
5378 or else NT (N).Nkind = N_Object_Renaming_Declaration
5379 or else NT (N).Nkind = N_Package_Instantiation
5380 or else NT (N).Nkind = N_Package_Renaming_Declaration
5381 or else NT (N).Nkind = N_Procedure_Call_Statement
5382 or else NT (N).Nkind = N_Procedure_Instantiation
5383 or else NT (N).Nkind = N_Raise_Expression
5384 or else NT (N).Nkind = N_Raise_Statement
5385 or else NT (N).Nkind = N_Requeue_Statement
5386 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration
5387 or else NT (N).Nkind = N_Subunit
5388 or else NT (N).Nkind = N_Variant_Part
5389 or else NT (N).Nkind = N_With_Clause);
5390 Set_Node2_With_Parent (N, Val);
5394 (N : Node_Id; Val : List_Id) is
5396 pragma Assert (False
5397 or else NT (N).Nkind = N_Abort_Statement
5398 or else NT (N).Nkind = N_Use_Package_Clause);
5399 Set_List2_With_Parent (N, Val);
5402 procedure Set_Next_Entity
5403 (N : Node_Id; Val : Node_Id) is
5405 pragma Assert (False
5406 or else NT (N).Nkind = N_Defining_Character_Literal
5407 or else NT (N).Nkind = N_Defining_Identifier
5408 or else NT (N).Nkind = N_Defining_Operator_Symbol);
5409 Set_Node2 (N, Val); -- semantic field, no parent set
5410 end Set_Next_Entity;
5412 procedure Set_Next_Exit_Statement
5413 (N : Node_Id; Val : Node_Id) is
5415 pragma Assert (False
5416 or else NT (N).Nkind = N_Exit_Statement);
5417 Set_Node3 (N, Val); -- semantic field, no parent set
5418 end Set_Next_Exit_Statement;
5420 procedure Set_Next_Implicit_With
5421 (N : Node_Id; Val : Node_Id) is
5423 pragma Assert (False
5424 or else NT (N).Nkind = N_With_Clause);
5425 Set_Node3 (N, Val); -- semantic field, no parent set
5426 end Set_Next_Implicit_With;
5428 procedure Set_Next_Named_Actual
5429 (N : Node_Id; Val : Node_Id) is
5431 pragma Assert (False
5432 or else NT (N).Nkind = N_Parameter_Association);
5433 Set_Node4 (N, Val); -- semantic field, no parent set
5434 end Set_Next_Named_Actual;
5436 procedure Set_Next_Pragma
5437 (N : Node_Id; Val : Node_Id) is
5439 pragma Assert (False
5440 or else NT (N).Nkind = N_Pragma);
5441 Set_Node1 (N, Val); -- semantic field, no parent set
5442 end Set_Next_Pragma;
5444 procedure Set_Next_Rep_Item
5445 (N : Node_Id; Val : Node_Id) is
5447 pragma Assert (False
5448 or else NT (N).Nkind = N_Aspect_Specification
5449 or else NT (N).Nkind = N_Attribute_Definition_Clause
5450 or else NT (N).Nkind = N_Enumeration_Representation_Clause
5451 or else NT (N).Nkind = N_Pragma
5452 or else NT (N).Nkind = N_Record_Representation_Clause);
5453 Set_Node5 (N, Val); -- semantic field, no parent set
5454 end Set_Next_Rep_Item;
5456 procedure Set_Next_Use_Clause
5457 (N : Node_Id; Val : Node_Id) is
5459 pragma Assert (False
5460 or else NT (N).Nkind = N_Use_Package_Clause
5461 or else NT (N).Nkind = N_Use_Type_Clause);
5462 Set_Node3 (N, Val); -- semantic field, no parent set
5463 end Set_Next_Use_Clause;
5465 procedure Set_No_Ctrl_Actions
5466 (N : Node_Id; Val : Boolean := True) is
5468 pragma Assert (False
5469 or else NT (N).Nkind = N_Assignment_Statement);
5471 end Set_No_Ctrl_Actions;
5473 procedure Set_No_Elaboration_Check
5474 (N : Node_Id; Val : Boolean := True) is
5476 pragma Assert (False
5477 or else NT (N).Nkind = N_Function_Call
5478 or else NT (N).Nkind = N_Procedure_Call_Statement);
5479 Set_Flag14 (N, Val);
5480 end Set_No_Elaboration_Check;
5482 procedure Set_No_Entities_Ref_In_Spec
5483 (N : Node_Id; Val : Boolean := True) is
5485 pragma Assert (False
5486 or else NT (N).Nkind = N_With_Clause);
5488 end Set_No_Entities_Ref_In_Spec;
5490 procedure Set_No_Initialization
5491 (N : Node_Id; Val : Boolean := True) is
5493 pragma Assert (False
5494 or else NT (N).Nkind = N_Allocator
5495 or else NT (N).Nkind = N_Object_Declaration);
5496 Set_Flag13 (N, Val);
5497 end Set_No_Initialization;
5499 procedure Set_No_Minimize_Eliminate
5500 (N : Node_Id; Val : Boolean := True) is
5502 pragma Assert (False
5503 or else NT (N).Nkind = N_In
5504 or else NT (N).Nkind = N_Not_In);
5505 Set_Flag17 (N, Val);
5506 end Set_No_Minimize_Eliminate;
5508 procedure Set_No_Truncation
5509 (N : Node_Id; Val : Boolean := True) is
5511 pragma Assert (False
5512 or else NT (N).Nkind = N_Unchecked_Type_Conversion);
5513 Set_Flag17 (N, Val);
5514 end Set_No_Truncation;
5516 procedure Set_Non_Aliased_Prefix
5517 (N : Node_Id; Val : Boolean := True) is
5519 pragma Assert (False
5520 or else NT (N).Nkind = N_Attribute_Reference);
5521 Set_Flag18 (N, Val);
5522 end Set_Non_Aliased_Prefix;
5524 procedure Set_Null_Present
5525 (N : Node_Id; Val : Boolean := True) is
5527 pragma Assert (False
5528 or else NT (N).Nkind = N_Component_List
5529 or else NT (N).Nkind = N_Procedure_Specification
5530 or else NT (N).Nkind = N_Record_Definition);
5531 Set_Flag13 (N, Val);
5532 end Set_Null_Present;
5534 procedure Set_Null_Exclusion_Present
5535 (N : Node_Id; Val : Boolean := True) is
5537 pragma Assert (False
5538 or else NT (N).Nkind = N_Access_Definition
5539 or else NT (N).Nkind = N_Access_Function_Definition
5540 or else NT (N).Nkind = N_Access_Procedure_Definition
5541 or else NT (N).Nkind = N_Access_To_Object_Definition
5542 or else NT (N).Nkind = N_Allocator
5543 or else NT (N).Nkind = N_Component_Definition
5544 or else NT (N).Nkind = N_Derived_Type_Definition
5545 or else NT (N).Nkind = N_Discriminant_Specification
5546 or else NT (N).Nkind = N_Formal_Object_Declaration
5547 or else NT (N).Nkind = N_Function_Specification
5548 or else NT (N).Nkind = N_Object_Declaration
5549 or else NT (N).Nkind = N_Object_Renaming_Declaration
5550 or else NT (N).Nkind = N_Parameter_Specification
5551 or else NT (N).Nkind = N_Subtype_Declaration);
5552 Set_Flag11 (N, Val);
5553 end Set_Null_Exclusion_Present;
5555 procedure Set_Null_Exclusion_In_Return_Present
5556 (N : Node_Id; Val : Boolean := True) is
5558 pragma Assert (False
5559 or else NT (N).Nkind = N_Access_Function_Definition);
5560 Set_Flag14 (N, Val);
5561 end Set_Null_Exclusion_In_Return_Present;
5563 procedure Set_Null_Record_Present
5564 (N : Node_Id; Val : Boolean := True) is
5566 pragma Assert (False
5567 or else NT (N).Nkind = N_Aggregate
5568 or else NT (N).Nkind = N_Extension_Aggregate);
5569 Set_Flag17 (N, Val);
5570 end Set_Null_Record_Present;
5572 procedure Set_Object_Definition
5573 (N : Node_Id; Val : Node_Id) is
5575 pragma Assert (False
5576 or else NT (N).Nkind = N_Object_Declaration);
5577 Set_Node4_With_Parent (N, Val);
5578 end Set_Object_Definition;
5580 procedure Set_Of_Present
5581 (N : Node_Id; Val : Boolean := True) is
5583 pragma Assert (False
5584 or else NT (N).Nkind = N_Iterator_Specification);
5585 Set_Flag16 (N, Val);
5588 procedure Set_Original_Discriminant
5589 (N : Node_Id; Val : Node_Id) is
5591 pragma Assert (False
5592 or else NT (N).Nkind = N_Identifier);
5593 Set_Node2 (N, Val); -- semantic field, no parent set
5594 end Set_Original_Discriminant;
5596 procedure Set_Original_Entity
5597 (N : Node_Id; Val : Entity_Id) is
5599 pragma Assert (False
5600 or else NT (N).Nkind = N_Integer_Literal
5601 or else NT (N).Nkind = N_Real_Literal);
5602 Set_Node2 (N, Val); -- semantic field, no parent set
5603 end Set_Original_Entity;
5605 procedure Set_Others_Discrete_Choices
5606 (N : Node_Id; Val : List_Id) is
5608 pragma Assert (False
5609 or else NT (N).Nkind = N_Others_Choice);
5610 Set_List1_With_Parent (N, Val);
5611 end Set_Others_Discrete_Choices;
5613 procedure Set_Out_Present
5614 (N : Node_Id; Val : Boolean := True) is
5616 pragma Assert (False
5617 or else NT (N).Nkind = N_Formal_Object_Declaration
5618 or else NT (N).Nkind = N_Parameter_Specification);
5619 Set_Flag17 (N, Val);
5620 end Set_Out_Present;
5622 procedure Set_Parameter_Associations
5623 (N : Node_Id; Val : List_Id) is
5625 pragma Assert (False
5626 or else NT (N).Nkind = N_Entry_Call_Statement
5627 or else NT (N).Nkind = N_Function_Call
5628 or else NT (N).Nkind = N_Procedure_Call_Statement);
5629 Set_List3_With_Parent (N, Val);
5630 end Set_Parameter_Associations;
5632 procedure Set_Parameter_List_Truncated
5633 (N : Node_Id; Val : Boolean := True) is
5635 pragma Assert (False
5636 or else NT (N).Nkind = N_Function_Call
5637 or else NT (N).Nkind = N_Procedure_Call_Statement);
5638 Set_Flag17 (N, Val);
5639 end Set_Parameter_List_Truncated;
5641 procedure Set_Parameter_Specifications
5642 (N : Node_Id; Val : List_Id) is
5644 pragma Assert (False
5645 or else NT (N).Nkind = N_Accept_Statement
5646 or else NT (N).Nkind = N_Access_Function_Definition
5647 or else NT (N).Nkind = N_Access_Procedure_Definition
5648 or else NT (N).Nkind = N_Entry_Body_Formal_Part
5649 or else NT (N).Nkind = N_Entry_Declaration
5650 or else NT (N).Nkind = N_Function_Specification
5651 or else NT (N).Nkind = N_Procedure_Specification);
5652 Set_List3_With_Parent (N, Val);
5653 end Set_Parameter_Specifications;
5655 procedure Set_Parameter_Type
5656 (N : Node_Id; Val : Node_Id) is
5658 pragma Assert (False
5659 or else NT (N).Nkind = N_Parameter_Specification);
5660 Set_Node2_With_Parent (N, Val);
5661 end Set_Parameter_Type;
5663 procedure Set_Parent_Spec
5664 (N : Node_Id; Val : Node_Id) is
5666 pragma Assert (False
5667 or else NT (N).Nkind = N_Function_Instantiation
5668 or else NT (N).Nkind = N_Generic_Function_Renaming_Declaration
5669 or else NT (N).Nkind = N_Generic_Package_Declaration
5670 or else NT (N).Nkind = N_Generic_Package_Renaming_Declaration
5671 or else NT (N).Nkind = N_Generic_Procedure_Renaming_Declaration
5672 or else NT (N).Nkind = N_Generic_Subprogram_Declaration
5673 or else NT (N).Nkind = N_Package_Declaration
5674 or else NT (N).Nkind = N_Package_Instantiation
5675 or else NT (N).Nkind = N_Package_Renaming_Declaration
5676 or else NT (N).Nkind = N_Procedure_Instantiation
5677 or else NT (N).Nkind = N_Subprogram_Declaration
5678 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration);
5679 Set_Node4 (N, Val); -- semantic field, no parent set
5680 end Set_Parent_Spec;
5682 procedure Set_Position
5683 (N : Node_Id; Val : Node_Id) is
5685 pragma Assert (False
5686 or else NT (N).Nkind = N_Component_Clause);
5687 Set_Node2_With_Parent (N, Val);
5690 procedure Set_Pragma_Argument_Associations
5691 (N : Node_Id; Val : List_Id) is
5693 pragma Assert (False
5694 or else NT (N).Nkind = N_Pragma);
5695 Set_List2_With_Parent (N, Val);
5696 end Set_Pragma_Argument_Associations;
5698 procedure Set_Pragma_Identifier
5699 (N : Node_Id; Val : Node_Id) is
5701 pragma Assert (False
5702 or else NT (N).Nkind = N_Pragma);
5703 Set_Node4_With_Parent (N, Val);
5704 end Set_Pragma_Identifier;
5706 procedure Set_Pragmas_After
5707 (N : Node_Id; Val : List_Id) is
5709 pragma Assert (False
5710 or else NT (N).Nkind = N_Compilation_Unit_Aux
5711 or else NT (N).Nkind = N_Terminate_Alternative);
5712 Set_List5_With_Parent (N, Val);
5713 end Set_Pragmas_After;
5715 procedure Set_Pragmas_Before
5716 (N : Node_Id; Val : List_Id) is
5718 pragma Assert (False
5719 or else NT (N).Nkind = N_Accept_Alternative
5720 or else NT (N).Nkind = N_Delay_Alternative
5721 or else NT (N).Nkind = N_Entry_Call_Alternative
5722 or else NT (N).Nkind = N_Mod_Clause
5723 or else NT (N).Nkind = N_Terminate_Alternative
5724 or else NT (N).Nkind = N_Triggering_Alternative);
5725 Set_List4_With_Parent (N, Val);
5726 end Set_Pragmas_Before;
5728 procedure Set_Pre_Post_Conditions
5729 (N : Node_Id; Val : Node_Id) is
5731 pragma Assert (False
5732 or else NT (N).Nkind = N_Contract);
5733 Set_Node1 (N, Val); -- semantic field, no parent set
5734 end Set_Pre_Post_Conditions;
5736 procedure Set_Prefix
5737 (N : Node_Id; Val : Node_Id) is
5739 pragma Assert (False
5740 or else NT (N).Nkind = N_Attribute_Reference
5741 or else NT (N).Nkind = N_Expanded_Name
5742 or else NT (N).Nkind = N_Explicit_Dereference
5743 or else NT (N).Nkind = N_Indexed_Component
5744 or else NT (N).Nkind = N_Reference
5745 or else NT (N).Nkind = N_Selected_Component
5746 or else NT (N).Nkind = N_Slice);
5747 Set_Node3_With_Parent (N, Val);
5750 procedure Set_Premature_Use
5751 (N : Node_Id; Val : Node_Id) is
5753 pragma Assert (False
5754 or else NT (N).Nkind = N_Incomplete_Type_Declaration);
5756 end Set_Premature_Use;
5758 procedure Set_Present_Expr
5759 (N : Node_Id; Val : Uint) is
5761 pragma Assert (False
5762 or else NT (N).Nkind = N_Variant);
5764 end Set_Present_Expr;
5766 procedure Set_Prev_Ids
5767 (N : Node_Id; Val : Boolean := True) is
5769 pragma Assert (False
5770 or else NT (N).Nkind = N_Component_Declaration
5771 or else NT (N).Nkind = N_Discriminant_Specification
5772 or else NT (N).Nkind = N_Exception_Declaration
5773 or else NT (N).Nkind = N_Formal_Object_Declaration
5774 or else NT (N).Nkind = N_Number_Declaration
5775 or else NT (N).Nkind = N_Object_Declaration
5776 or else NT (N).Nkind = N_Parameter_Specification);
5780 procedure Set_Print_In_Hex
5781 (N : Node_Id; Val : Boolean := True) is
5783 pragma Assert (False
5784 or else NT (N).Nkind = N_Integer_Literal);
5785 Set_Flag13 (N, Val);
5786 end Set_Print_In_Hex;
5788 procedure Set_Private_Declarations
5789 (N : Node_Id; Val : List_Id) is
5791 pragma Assert (False
5792 or else NT (N).Nkind = N_Package_Specification
5793 or else NT (N).Nkind = N_Protected_Definition
5794 or else NT (N).Nkind = N_Task_Definition);
5795 Set_List3_With_Parent (N, Val);
5796 end Set_Private_Declarations;
5798 procedure Set_Private_Present
5799 (N : Node_Id; Val : Boolean := True) is
5801 pragma Assert (False
5802 or else NT (N).Nkind = N_Compilation_Unit
5803 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
5804 or else NT (N).Nkind = N_With_Clause);
5805 Set_Flag15 (N, Val);
5806 end Set_Private_Present;
5808 procedure Set_Procedure_To_Call
5809 (N : Node_Id; Val : Node_Id) is
5811 pragma Assert (False
5812 or else NT (N).Nkind = N_Allocator
5813 or else NT (N).Nkind = N_Extended_Return_Statement
5814 or else NT (N).Nkind = N_Free_Statement
5815 or else NT (N).Nkind = N_Simple_Return_Statement);
5816 Set_Node2 (N, Val); -- semantic field, no parent set
5817 end Set_Procedure_To_Call;
5819 procedure Set_Proper_Body
5820 (N : Node_Id; Val : Node_Id) is
5822 pragma Assert (False
5823 or else NT (N).Nkind = N_Subunit);
5824 Set_Node1_With_Parent (N, Val);
5825 end Set_Proper_Body;
5827 procedure Set_Protected_Definition
5828 (N : Node_Id; Val : Node_Id) is
5830 pragma Assert (False
5831 or else NT (N).Nkind = N_Protected_Type_Declaration
5832 or else NT (N).Nkind = N_Single_Protected_Declaration);
5833 Set_Node3_With_Parent (N, Val);
5834 end Set_Protected_Definition;
5836 procedure Set_Protected_Present
5837 (N : Node_Id; Val : Boolean := True) is
5839 pragma Assert (False
5840 or else NT (N).Nkind = N_Access_Function_Definition
5841 or else NT (N).Nkind = N_Access_Procedure_Definition
5842 or else NT (N).Nkind = N_Derived_Type_Definition
5843 or else NT (N).Nkind = N_Record_Definition);
5845 end Set_Protected_Present;
5847 procedure Set_Raises_Constraint_Error
5848 (N : Node_Id; Val : Boolean := True) is
5850 pragma Assert (False
5851 or else NT (N).Nkind in N_Subexpr);
5853 end Set_Raises_Constraint_Error;
5855 procedure Set_Range_Constraint
5856 (N : Node_Id; Val : Node_Id) is
5858 pragma Assert (False
5859 or else NT (N).Nkind = N_Delta_Constraint
5860 or else NT (N).Nkind = N_Digits_Constraint);
5861 Set_Node4_With_Parent (N, Val);
5862 end Set_Range_Constraint;
5864 procedure Set_Range_Expression
5865 (N : Node_Id; Val : Node_Id) is
5867 pragma Assert (False
5868 or else NT (N).Nkind = N_Range_Constraint);
5869 Set_Node4_With_Parent (N, Val);
5870 end Set_Range_Expression;
5872 procedure Set_Real_Range_Specification
5873 (N : Node_Id; Val : Node_Id) is
5875 pragma Assert (False
5876 or else NT (N).Nkind = N_Decimal_Fixed_Point_Definition
5877 or else NT (N).Nkind = N_Floating_Point_Definition
5878 or else NT (N).Nkind = N_Ordinary_Fixed_Point_Definition);
5879 Set_Node4_With_Parent (N, Val);
5880 end Set_Real_Range_Specification;
5882 procedure Set_Realval
5883 (N : Node_Id; Val : Ureal) is
5885 pragma Assert (False
5886 or else NT (N).Nkind = N_Real_Literal);
5887 Set_Ureal3 (N, Val);
5890 procedure Set_Reason
5891 (N : Node_Id; Val : Uint) is
5893 pragma Assert (False
5894 or else NT (N).Nkind = N_Raise_Constraint_Error
5895 or else NT (N).Nkind = N_Raise_Program_Error
5896 or else NT (N).Nkind = N_Raise_Storage_Error);
5900 procedure Set_Record_Extension_Part
5901 (N : Node_Id; Val : Node_Id) is
5903 pragma Assert (False
5904 or else NT (N).Nkind = N_Derived_Type_Definition);
5905 Set_Node3_With_Parent (N, Val);
5906 end Set_Record_Extension_Part;
5908 procedure Set_Redundant_Use
5909 (N : Node_Id; Val : Boolean := True) is
5911 pragma Assert (False
5912 or else NT (N).Nkind = N_Attribute_Reference
5913 or else NT (N).Nkind = N_Expanded_Name
5914 or else NT (N).Nkind = N_Identifier);
5915 Set_Flag13 (N, Val);
5916 end Set_Redundant_Use;
5918 procedure Set_Renaming_Exception
5919 (N : Node_Id; Val : Node_Id) is
5921 pragma Assert (False
5922 or else NT (N).Nkind = N_Exception_Declaration);
5924 end Set_Renaming_Exception;
5926 procedure Set_Result_Definition
5927 (N : Node_Id; Val : Node_Id) is
5929 pragma Assert (False
5930 or else NT (N).Nkind = N_Access_Function_Definition
5931 or else NT (N).Nkind = N_Function_Specification);
5932 Set_Node4_With_Parent (N, Val);
5933 end Set_Result_Definition;
5935 procedure Set_Return_Object_Declarations
5936 (N : Node_Id; Val : List_Id) is
5938 pragma Assert (False
5939 or else NT (N).Nkind = N_Extended_Return_Statement);
5940 Set_List3_With_Parent (N, Val);
5941 end Set_Return_Object_Declarations;
5943 procedure Set_Return_Statement_Entity
5944 (N : Node_Id; Val : Node_Id) is
5946 pragma Assert (False
5947 or else NT (N).Nkind = N_Extended_Return_Statement
5948 or else NT (N).Nkind = N_Simple_Return_Statement);
5949 Set_Node5 (N, Val); -- semantic field, no parent set
5950 end Set_Return_Statement_Entity;
5952 procedure Set_Reverse_Present
5953 (N : Node_Id; Val : Boolean := True) is
5955 pragma Assert (False
5956 or else NT (N).Nkind = N_Iterator_Specification
5957 or else NT (N).Nkind = N_Loop_Parameter_Specification);
5958 Set_Flag15 (N, Val);
5959 end Set_Reverse_Present;
5961 procedure Set_Right_Opnd
5962 (N : Node_Id; Val : Node_Id) is
5964 pragma Assert (False
5965 or else NT (N).Nkind in N_Op
5966 or else NT (N).Nkind = N_And_Then
5967 or else NT (N).Nkind = N_In
5968 or else NT (N).Nkind = N_Not_In
5969 or else NT (N).Nkind = N_Or_Else);
5970 Set_Node3_With_Parent (N, Val);
5973 procedure Set_Rounded_Result
5974 (N : Node_Id; Val : Boolean := True) is
5976 pragma Assert (False
5977 or else NT (N).Nkind = N_Op_Divide
5978 or else NT (N).Nkind = N_Op_Multiply
5979 or else NT (N).Nkind = N_Type_Conversion);
5980 Set_Flag18 (N, Val);
5981 end Set_Rounded_Result;
5983 procedure Set_SCIL_Controlling_Tag
5984 (N : Node_Id; Val : Node_Id) is
5986 pragma Assert (False
5987 or else NT (N).Nkind = N_SCIL_Dispatching_Call);
5988 Set_Node5 (N, Val); -- semantic field, no parent set
5989 end Set_SCIL_Controlling_Tag;
5991 procedure Set_SCIL_Entity
5992 (N : Node_Id; Val : Node_Id) is
5994 pragma Assert (False
5995 or else NT (N).Nkind = N_SCIL_Dispatch_Table_Tag_Init
5996 or else NT (N).Nkind = N_SCIL_Dispatching_Call
5997 or else NT (N).Nkind = N_SCIL_Membership_Test);
5998 Set_Node4 (N, Val); -- semantic field, no parent set
5999 end Set_SCIL_Entity;
6001 procedure Set_SCIL_Tag_Value
6002 (N : Node_Id; Val : Node_Id) is
6004 pragma Assert (False
6005 or else NT (N).Nkind = N_SCIL_Membership_Test);
6006 Set_Node5 (N, Val); -- semantic field, no parent set
6007 end Set_SCIL_Tag_Value;
6009 procedure Set_SCIL_Target_Prim
6010 (N : Node_Id; Val : Node_Id) is
6012 pragma Assert (False
6013 or else NT (N).Nkind = N_SCIL_Dispatching_Call);
6014 Set_Node2 (N, Val); -- semantic field, no parent set
6015 end Set_SCIL_Target_Prim;
6018 (N : Node_Id; Val : Node_Id) is
6020 pragma Assert (False
6021 or else NT (N).Nkind = N_Defining_Character_Literal
6022 or else NT (N).Nkind = N_Defining_Identifier
6023 or else NT (N).Nkind = N_Defining_Operator_Symbol);
6024 Set_Node3 (N, Val); -- semantic field, no parent set
6027 procedure Set_Select_Alternatives
6028 (N : Node_Id; Val : List_Id) is
6030 pragma Assert (False
6031 or else NT (N).Nkind = N_Selective_Accept);
6032 Set_List1_With_Parent (N, Val);
6033 end Set_Select_Alternatives;
6035 procedure Set_Selector_Name
6036 (N : Node_Id; Val : Node_Id) is
6038 pragma Assert (False
6039 or else NT (N).Nkind = N_Expanded_Name
6040 or else NT (N).Nkind = N_Generic_Association
6041 or else NT (N).Nkind = N_Parameter_Association
6042 or else NT (N).Nkind = N_Selected_Component);
6043 Set_Node2_With_Parent (N, Val);
6044 end Set_Selector_Name;
6046 procedure Set_Selector_Names
6047 (N : Node_Id; Val : List_Id) is
6049 pragma Assert (False
6050 or else NT (N).Nkind = N_Discriminant_Association);
6051 Set_List1_With_Parent (N, Val);
6052 end Set_Selector_Names;
6054 procedure Set_Shift_Count_OK
6055 (N : Node_Id; Val : Boolean := True) is
6057 pragma Assert (False
6058 or else NT (N).Nkind = N_Op_Rotate_Left
6059 or else NT (N).Nkind = N_Op_Rotate_Right
6060 or else NT (N).Nkind = N_Op_Shift_Left
6061 or else NT (N).Nkind = N_Op_Shift_Right
6062 or else NT (N).Nkind = N_Op_Shift_Right_Arithmetic);
6064 end Set_Shift_Count_OK;
6066 procedure Set_Source_Type
6067 (N : Node_Id; Val : Entity_Id) is
6069 pragma Assert (False
6070 or else NT (N).Nkind = N_Validate_Unchecked_Conversion);
6071 Set_Node1 (N, Val); -- semantic field, no parent set
6072 end Set_Source_Type;
6074 procedure Set_Specification
6075 (N : Node_Id; Val : Node_Id) is
6077 pragma Assert (False
6078 or else NT (N).Nkind = N_Abstract_Subprogram_Declaration
6079 or else NT (N).Nkind = N_Expression_Function
6080 or else NT (N).Nkind = N_Formal_Abstract_Subprogram_Declaration
6081 or else NT (N).Nkind = N_Formal_Concrete_Subprogram_Declaration
6082 or else NT (N).Nkind = N_Generic_Package_Declaration
6083 or else NT (N).Nkind = N_Generic_Subprogram_Declaration
6084 or else NT (N).Nkind = N_Package_Declaration
6085 or else NT (N).Nkind = N_Subprogram_Body
6086 or else NT (N).Nkind = N_Subprogram_Body_Stub
6087 or else NT (N).Nkind = N_Subprogram_Declaration
6088 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration);
6089 Set_Node1_With_Parent (N, Val);
6090 end Set_Specification;
6092 procedure Set_Split_PPC
6093 (N : Node_Id; Val : Boolean) is
6095 pragma Assert (False
6096 or else NT (N).Nkind = N_Aspect_Specification
6097 or else NT (N).Nkind = N_Pragma);
6098 Set_Flag17 (N, Val);
6101 procedure Set_Statements
6102 (N : Node_Id; Val : List_Id) is
6104 pragma Assert (False
6105 or else NT (N).Nkind = N_Abortable_Part
6106 or else NT (N).Nkind = N_Accept_Alternative
6107 or else NT (N).Nkind = N_Case_Statement_Alternative
6108 or else NT (N).Nkind = N_Delay_Alternative
6109 or else NT (N).Nkind = N_Entry_Call_Alternative
6110 or else NT (N).Nkind = N_Exception_Handler
6111 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements
6112 or else NT (N).Nkind = N_Loop_Statement
6113 or else NT (N).Nkind = N_Triggering_Alternative);
6114 Set_List3_With_Parent (N, Val);
6117 procedure Set_Storage_Pool
6118 (N : Node_Id; Val : Node_Id) is
6120 pragma Assert (False
6121 or else NT (N).Nkind = N_Allocator
6122 or else NT (N).Nkind = N_Extended_Return_Statement
6123 or else NT (N).Nkind = N_Free_Statement
6124 or else NT (N).Nkind = N_Simple_Return_Statement);
6125 Set_Node1 (N, Val); -- semantic field, no parent set
6126 end Set_Storage_Pool;
6128 procedure Set_Subpool_Handle_Name
6129 (N : Node_Id; Val : Node_Id) is
6131 pragma Assert (False
6132 or else NT (N).Nkind = N_Allocator);
6133 Set_Node4_With_Parent (N, Val);
6134 end Set_Subpool_Handle_Name;
6136 procedure Set_Strval
6137 (N : Node_Id; Val : String_Id) is
6139 pragma Assert (False
6140 or else NT (N).Nkind = N_Operator_Symbol
6141 or else NT (N).Nkind = N_String_Literal);
6145 procedure Set_Subtype_Indication
6146 (N : Node_Id; Val : Node_Id) is
6148 pragma Assert (False
6149 or else NT (N).Nkind = N_Access_To_Object_Definition
6150 or else NT (N).Nkind = N_Component_Definition
6151 or else NT (N).Nkind = N_Derived_Type_Definition
6152 or else NT (N).Nkind = N_Iterator_Specification
6153 or else NT (N).Nkind = N_Private_Extension_Declaration
6154 or else NT (N).Nkind = N_Subtype_Declaration);
6155 Set_Node5_With_Parent (N, Val);
6156 end Set_Subtype_Indication;
6158 procedure Set_Subtype_Mark
6159 (N : Node_Id; Val : Node_Id) is
6161 pragma Assert (False
6162 or else NT (N).Nkind = N_Access_Definition
6163 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
6164 or else NT (N).Nkind = N_Formal_Object_Declaration
6165 or else NT (N).Nkind = N_Object_Renaming_Declaration
6166 or else NT (N).Nkind = N_Qualified_Expression
6167 or else NT (N).Nkind = N_Subtype_Indication
6168 or else NT (N).Nkind = N_Type_Conversion
6169 or else NT (N).Nkind = N_Unchecked_Type_Conversion);
6170 Set_Node4_With_Parent (N, Val);
6171 end Set_Subtype_Mark;
6173 procedure Set_Subtype_Marks
6174 (N : Node_Id; Val : List_Id) is
6176 pragma Assert (False
6177 or else NT (N).Nkind = N_Unconstrained_Array_Definition
6178 or else NT (N).Nkind = N_Use_Type_Clause);
6179 Set_List2_With_Parent (N, Val);
6180 end Set_Subtype_Marks;
6182 procedure Set_Suppress_Assignment_Checks
6183 (N : Node_Id; Val : Boolean := True) is
6185 pragma Assert (False
6186 or else NT (N).Nkind = N_Assignment_Statement
6187 or else NT (N).Nkind = N_Object_Declaration);
6188 Set_Flag18 (N, Val);
6189 end Set_Suppress_Assignment_Checks;
6191 procedure Set_Suppress_Loop_Warnings
6192 (N : Node_Id; Val : Boolean := True) is
6194 pragma Assert (False
6195 or else NT (N).Nkind = N_Loop_Statement);
6196 Set_Flag17 (N, Val);
6197 end Set_Suppress_Loop_Warnings;
6199 procedure Set_Synchronized_Present
6200 (N : Node_Id; Val : Boolean := True) is
6202 pragma Assert (False
6203 or else NT (N).Nkind = N_Derived_Type_Definition
6204 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
6205 or else NT (N).Nkind = N_Private_Extension_Declaration
6206 or else NT (N).Nkind = N_Record_Definition);
6208 end Set_Synchronized_Present;
6210 procedure Set_Tagged_Present
6211 (N : Node_Id; Val : Boolean := True) is
6213 pragma Assert (False
6214 or else NT (N).Nkind = N_Formal_Incomplete_Type_Definition
6215 or else NT (N).Nkind = N_Formal_Private_Type_Definition
6216 or else NT (N).Nkind = N_Incomplete_Type_Declaration
6217 or else NT (N).Nkind = N_Private_Type_Declaration
6218 or else NT (N).Nkind = N_Record_Definition);
6219 Set_Flag15 (N, Val);
6220 end Set_Tagged_Present;
6222 procedure Set_Target_Type
6223 (N : Node_Id; Val : Entity_Id) is
6225 pragma Assert (False
6226 or else NT (N).Nkind = N_Validate_Unchecked_Conversion);
6227 Set_Node2 (N, Val); -- semantic field, no parent set
6228 end Set_Target_Type;
6230 procedure Set_Task_Definition
6231 (N : Node_Id; Val : Node_Id) is
6233 pragma Assert (False
6234 or else NT (N).Nkind = N_Single_Task_Declaration
6235 or else NT (N).Nkind = N_Task_Type_Declaration);
6236 Set_Node3_With_Parent (N, Val);
6237 end Set_Task_Definition;
6239 procedure Set_Task_Present
6240 (N : Node_Id; Val : Boolean := True) is
6242 pragma Assert (False
6243 or else NT (N).Nkind = N_Derived_Type_Definition
6244 or else NT (N).Nkind = N_Record_Definition);
6246 end Set_Task_Present;
6248 procedure Set_Then_Actions
6249 (N : Node_Id; Val : List_Id) is
6251 pragma Assert (False
6252 or else NT (N).Nkind = N_If_Expression);
6253 Set_List2 (N, Val); -- semantic field, no parent set
6254 end Set_Then_Actions;
6256 procedure Set_Then_Statements
6257 (N : Node_Id; Val : List_Id) is
6259 pragma Assert (False
6260 or else NT (N).Nkind = N_Elsif_Part
6261 or else NT (N).Nkind = N_If_Statement);
6262 Set_List2_With_Parent (N, Val);
6263 end Set_Then_Statements;
6265 procedure Set_Treat_Fixed_As_Integer
6266 (N : Node_Id; Val : Boolean := True) is
6268 pragma Assert (False
6269 or else NT (N).Nkind = N_Op_Divide
6270 or else NT (N).Nkind = N_Op_Mod
6271 or else NT (N).Nkind = N_Op_Multiply
6272 or else NT (N).Nkind = N_Op_Rem);
6273 Set_Flag14 (N, Val);
6274 end Set_Treat_Fixed_As_Integer;
6276 procedure Set_Triggering_Alternative
6277 (N : Node_Id; Val : Node_Id) is
6279 pragma Assert (False
6280 or else NT (N).Nkind = N_Asynchronous_Select);
6281 Set_Node1_With_Parent (N, Val);
6282 end Set_Triggering_Alternative;
6284 procedure Set_Triggering_Statement
6285 (N : Node_Id; Val : Node_Id) is
6287 pragma Assert (False
6288 or else NT (N).Nkind = N_Triggering_Alternative);
6289 Set_Node1_With_Parent (N, Val);
6290 end Set_Triggering_Statement;
6292 procedure Set_TSS_Elist
6293 (N : Node_Id; Val : Elist_Id) is
6295 pragma Assert (False
6296 or else NT (N).Nkind = N_Freeze_Entity);
6297 Set_Elist3 (N, Val); -- semantic field, no parent set
6300 procedure Set_Type_Definition
6301 (N : Node_Id; Val : Node_Id) is
6303 pragma Assert (False
6304 or else NT (N).Nkind = N_Full_Type_Declaration);
6305 Set_Node3_With_Parent (N, Val);
6306 end Set_Type_Definition;
6309 (N : Node_Id; Val : Node_Id) is
6311 pragma Assert (False
6312 or else NT (N).Nkind = N_Compilation_Unit);
6313 Set_Node2_With_Parent (N, Val);
6316 procedure Set_Unknown_Discriminants_Present
6317 (N : Node_Id; Val : Boolean := True) is
6319 pragma Assert (False
6320 or else NT (N).Nkind = N_Formal_Type_Declaration
6321 or else NT (N).Nkind = N_Incomplete_Type_Declaration
6322 or else NT (N).Nkind = N_Private_Extension_Declaration
6323 or else NT (N).Nkind = N_Private_Type_Declaration);
6324 Set_Flag13 (N, Val);
6325 end Set_Unknown_Discriminants_Present;
6327 procedure Set_Unreferenced_In_Spec
6328 (N : Node_Id; Val : Boolean := True) is
6330 pragma Assert (False
6331 or else NT (N).Nkind = N_With_Clause);
6333 end Set_Unreferenced_In_Spec;
6335 procedure Set_Variant_Part
6336 (N : Node_Id; Val : Node_Id) is
6338 pragma Assert (False
6339 or else NT (N).Nkind = N_Component_List);
6340 Set_Node4_With_Parent (N, Val);
6341 end Set_Variant_Part;
6343 procedure Set_Variants
6344 (N : Node_Id; Val : List_Id) is
6346 pragma Assert (False
6347 or else NT (N).Nkind = N_Variant_Part);
6348 Set_List1_With_Parent (N, Val);
6351 procedure Set_Visible_Declarations
6352 (N : Node_Id; Val : List_Id) is
6354 pragma Assert (False
6355 or else NT (N).Nkind = N_Package_Specification
6356 or else NT (N).Nkind = N_Protected_Definition
6357 or else NT (N).Nkind = N_Task_Definition);
6358 Set_List2_With_Parent (N, Val);
6359 end Set_Visible_Declarations;
6361 procedure Set_Uninitialized_Variable
6362 (N : Node_Id; Val : Node_Id) is
6364 pragma Assert (False
6365 or else NT (N).Nkind = N_Formal_Private_Type_Definition
6366 or else NT (N).Nkind = N_Private_Extension_Declaration);
6368 end Set_Uninitialized_Variable;
6370 procedure Set_Used_Operations
6371 (N : Node_Id; Val : Elist_Id) is
6373 pragma Assert (False
6374 or else NT (N).Nkind = N_Use_Type_Clause);
6375 Set_Elist5 (N, Val);
6376 end Set_Used_Operations;
6378 procedure Set_Was_Originally_Stub
6379 (N : Node_Id; Val : Boolean := True) is
6381 pragma Assert (False
6382 or else NT (N).Nkind = N_Package_Body
6383 or else NT (N).Nkind = N_Protected_Body
6384 or else NT (N).Nkind = N_Subprogram_Body
6385 or else NT (N).Nkind = N_Task_Body);
6386 Set_Flag13 (N, Val);
6387 end Set_Was_Originally_Stub;
6389 procedure Set_Withed_Body
6390 (N : Node_Id; Val : Node_Id) is
6392 pragma Assert (False
6393 or else NT (N).Nkind = N_With_Clause);
6395 end Set_Withed_Body;
6397 -------------------------
6398 -- Iterator Procedures --
6399 -------------------------
6401 procedure Next_Entity (N : in out Node_Id) is
6403 N := Next_Entity (N);
6406 procedure Next_Named_Actual (N : in out Node_Id) is
6408 N := Next_Named_Actual (N);
6409 end Next_Named_Actual;
6411 procedure Next_Rep_Item (N : in out Node_Id) is
6413 N := Next_Rep_Item (N);
6416 procedure Next_Use_Clause (N : in out Node_Id) is
6418 N := Next_Use_Clause (N);
6419 end Next_Use_Clause;
6425 function End_Location (N : Node_Id) return Source_Ptr is
6426 L : constant Uint := End_Span (N);
6431 return Source_Ptr (Int (Sloc (N)) + UI_To_Int (L));
6435 --------------------
6436 -- Get_Pragma_Arg --
6437 --------------------
6439 function Get_Pragma_Arg (Arg : Node_Id) return Node_Id is
6441 if Nkind (Arg) = N_Pragma_Argument_Association then
6442 return Expression (Arg);
6448 ----------------------
6449 -- Set_End_Location --
6450 ----------------------
6452 procedure Set_End_Location (N : Node_Id; S : Source_Ptr) is
6455 UI_From_Int (Int (S) - Int (Sloc (N))));
6456 end Set_End_Location;
6465 V2 : Node_Kind) return Boolean
6468 return T = V1 or else
6476 V3 : Node_Kind) return Boolean
6479 return T = V1 or else
6489 V4 : Node_Kind) return Boolean
6492 return T = V1 or else
6504 V5 : Node_Kind) return Boolean
6507 return T = V1 or else
6521 V6 : Node_Kind) return Boolean
6524 return T = V1 or else
6540 V7 : Node_Kind) return Boolean
6543 return T = V1 or else
6561 V8 : Node_Kind) return Boolean
6564 return T = V1 or else
6584 V9 : Node_Kind) return Boolean
6587 return T = V1 or else
6602 function Pragma_Name (N : Node_Id) return Name_Id is
6604 return Chars (Pragma_Identifier (N));