1 ------------------------------------------------------------------------------
3 -- GNAT COMPILER COMPONENTS --
9 -- Copyright (C) 1992-2008, Free Software Foundation, Inc. --
11 -- GNAT is free software; you can redistribute it and/or modify it under --
12 -- terms of the GNU General Public License as published by the Free Soft- --
13 -- ware Foundation; either version 2, or (at your option) any later ver- --
14 -- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
15 -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
16 -- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License --
17 -- for more details. You should have received a copy of the GNU General --
18 -- Public License distributed with GNAT; see file COPYING. If not, write --
19 -- to the Free Software Foundation, 51 Franklin Street, Fifth Floor, --
20 -- Boston, MA 02110-1301, USA. --
22 -- As a special exception, if other files instantiate generics from this --
23 -- unit, or you link this unit with other files to produce an executable, --
24 -- this unit does not by itself cause the resulting executable to be --
25 -- covered by the GNU General Public License. This exception does not --
26 -- however invalidate any other reasons why the executable file might be --
27 -- covered by the GNU Public License. --
29 -- GNAT was originally developed by the GNAT team at New York University. --
30 -- Extensive contributions were provided by Ada Core Technologies Inc. --
32 ------------------------------------------------------------------------------
34 pragma Style_Checks (All_Checks);
35 -- No subprogram ordering check, due to logical grouping
37 with Atree; use Atree;
41 use Atree.Unchecked_Access;
42 -- This package is one of the few packages which is allowed to make direct
43 -- references to tree nodes (since it is in the business of providing a
44 -- higher level of tree access which other clients are expected to use and
45 -- which implements checks).
47 use Atree_Private_Part;
48 -- The only reason that we ask for direct access to the private part of
49 -- the tree package is so that we can directly reference the Nkind field
50 -- of nodes table entries. We do this since it helps the efficiency of
51 -- the Sinfo debugging checks considerably (note that when we are checking
52 -- Nkind values, we don't need to check for a valid node reference, because
53 -- we will check that anyway when we reference the field).
55 NT : Nodes.Table_Ptr renames Nodes.Table;
56 -- A short hand abbreviation, useful for the debugging checks
58 ----------------------------
59 -- Field Access Functions --
60 ----------------------------
62 function ABE_Is_Certain
63 (N : Node_Id) return Boolean is
66 or else NT (N).Nkind = N_Formal_Package_Declaration
67 or else NT (N).Nkind = N_Function_Call
68 or else NT (N).Nkind = N_Function_Instantiation
69 or else NT (N).Nkind = N_Package_Instantiation
70 or else NT (N).Nkind = N_Procedure_Call_Statement
71 or else NT (N).Nkind = N_Procedure_Instantiation);
75 function Abort_Present
76 (N : Node_Id) return Boolean is
79 or else NT (N).Nkind = N_Requeue_Statement);
83 function Abortable_Part
84 (N : Node_Id) return Node_Id is
87 or else NT (N).Nkind = N_Asynchronous_Select);
91 function Abstract_Present
92 (N : Node_Id) return Boolean is
95 or else NT (N).Nkind = N_Derived_Type_Definition
96 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
97 or else NT (N).Nkind = N_Formal_Private_Type_Definition
98 or else NT (N).Nkind = N_Private_Extension_Declaration
99 or else NT (N).Nkind = N_Private_Type_Declaration
100 or else NT (N).Nkind = N_Record_Definition);
102 end Abstract_Present;
104 function Accept_Handler_Records
105 (N : Node_Id) return List_Id is
108 or else NT (N).Nkind = N_Accept_Alternative);
110 end Accept_Handler_Records;
112 function Accept_Statement
113 (N : Node_Id) return Node_Id is
116 or else NT (N).Nkind = N_Accept_Alternative);
118 end Accept_Statement;
120 function Access_Definition
121 (N : Node_Id) return Node_Id is
124 or else NT (N).Nkind = N_Component_Definition
125 or else NT (N).Nkind = N_Formal_Object_Declaration
126 or else NT (N).Nkind = N_Object_Renaming_Declaration);
128 end Access_Definition;
130 function Access_To_Subprogram_Definition
131 (N : Node_Id) return Node_Id is
134 or else NT (N).Nkind = N_Access_Definition);
136 end Access_To_Subprogram_Definition;
138 function Access_Types_To_Process
139 (N : Node_Id) return Elist_Id is
142 or else NT (N).Nkind = N_Freeze_Entity);
144 end Access_Types_To_Process;
147 (N : Node_Id) return List_Id is
150 or else NT (N).Nkind = N_And_Then
151 or else NT (N).Nkind = N_Compilation_Unit_Aux
152 or else NT (N).Nkind = N_Freeze_Entity
153 or else NT (N).Nkind = N_Or_Else);
157 function Activation_Chain_Entity
158 (N : Node_Id) return Node_Id is
161 or else NT (N).Nkind = N_Block_Statement
162 or else NT (N).Nkind = N_Entry_Body
163 or else NT (N).Nkind = N_Generic_Package_Declaration
164 or else NT (N).Nkind = N_Package_Declaration
165 or else NT (N).Nkind = N_Subprogram_Body
166 or else NT (N).Nkind = N_Task_Body);
168 end Activation_Chain_Entity;
170 function Acts_As_Spec
171 (N : Node_Id) return Boolean is
174 or else NT (N).Nkind = N_Compilation_Unit
175 or else NT (N).Nkind = N_Subprogram_Body);
179 function Actual_Designated_Subtype
180 (N : Node_Id) return Node_Id is
183 or else NT (N).Nkind = N_Explicit_Dereference
184 or else NT (N).Nkind = N_Free_Statement);
186 end Actual_Designated_Subtype;
188 function Address_Warning_Posted
189 (N : Node_Id) return Boolean is
192 or else NT (N).Nkind = N_Attribute_Definition_Clause);
194 end Address_Warning_Posted;
196 function Aggregate_Bounds
197 (N : Node_Id) return Node_Id is
200 or else NT (N).Nkind = N_Aggregate);
202 end Aggregate_Bounds;
204 function Aliased_Present
205 (N : Node_Id) return Boolean is
208 or else NT (N).Nkind = N_Component_Definition
209 or else NT (N).Nkind = N_Object_Declaration);
214 (N : Node_Id) return Boolean is
217 or else NT (N).Nkind = N_Others_Choice);
222 (N : Node_Id) return Boolean is
225 or else NT (N).Nkind = N_Access_Definition
226 or else NT (N).Nkind = N_Access_To_Object_Definition);
230 function Alternatives
231 (N : Node_Id) return List_Id is
234 or else NT (N).Nkind = N_Case_Statement);
238 function Ancestor_Part
239 (N : Node_Id) return Node_Id is
242 or else NT (N).Nkind = N_Extension_Aggregate);
246 function Array_Aggregate
247 (N : Node_Id) return Node_Id is
250 or else NT (N).Nkind = N_Enumeration_Representation_Clause);
254 function Assignment_OK
255 (N : Node_Id) return Boolean is
258 or else NT (N).Nkind = N_Object_Declaration
259 or else NT (N).Nkind in N_Subexpr);
263 function Associated_Node
264 (N : Node_Id) return Node_Id is
267 or else NT (N).Nkind in N_Has_Entity
268 or else NT (N).Nkind = N_Aggregate
269 or else NT (N).Nkind = N_Extension_Aggregate
270 or else NT (N).Nkind = N_Selected_Component);
275 (N : Node_Id) return Node_Id is
278 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements);
282 function Attribute_Name
283 (N : Node_Id) return Name_Id is
286 or else NT (N).Nkind = N_Attribute_Reference);
290 function Aux_Decls_Node
291 (N : Node_Id) return Node_Id is
294 or else NT (N).Nkind = N_Compilation_Unit);
298 function Backwards_OK
299 (N : Node_Id) return Boolean is
302 or else NT (N).Nkind = N_Assignment_Statement);
306 function Bad_Is_Detected
307 (N : Node_Id) return Boolean is
310 or else NT (N).Nkind = N_Subprogram_Body);
314 function Body_Required
315 (N : Node_Id) return Boolean is
318 or else NT (N).Nkind = N_Compilation_Unit);
322 function Body_To_Inline
323 (N : Node_Id) return Node_Id is
326 or else NT (N).Nkind = N_Subprogram_Declaration);
331 (N : Node_Id) return Boolean is
334 or else NT (N).Nkind = N_Component_Association
335 or else NT (N).Nkind = N_Formal_Abstract_Subprogram_Declaration
336 or else NT (N).Nkind = N_Formal_Concrete_Subprogram_Declaration
337 or else NT (N).Nkind = N_Formal_Package_Declaration
338 or else NT (N).Nkind = N_Generic_Association);
343 (N : Node_Id) return Boolean is
346 or else NT (N).Nkind = N_Extended_Return_Statement
347 or else NT (N).Nkind = N_Return_Statement);
351 function Char_Literal_Value
352 (N : Node_Id) return Uint is
355 or else NT (N).Nkind = N_Character_Literal);
357 end Char_Literal_Value;
360 (N : Node_Id) return Name_Id is
363 or else NT (N).Nkind in N_Has_Chars);
367 function Check_Address_Alignment
368 (N : Node_Id) return Boolean is
371 or else NT (N).Nkind = N_Attribute_Definition_Clause);
373 end Check_Address_Alignment;
375 function Choice_Parameter
376 (N : Node_Id) return Node_Id is
379 or else NT (N).Nkind = N_Exception_Handler);
381 end Choice_Parameter;
384 (N : Node_Id) return List_Id is
387 or else NT (N).Nkind = N_Component_Association);
391 function Coextensions
392 (N : Node_Id) return Elist_Id is
395 or else NT (N).Nkind = N_Allocator);
399 function Comes_From_Extended_Return_Statement
400 (N : Node_Id) return Boolean is
403 or else NT (N).Nkind = N_Return_Statement);
405 end Comes_From_Extended_Return_Statement;
407 function Compile_Time_Known_Aggregate
408 (N : Node_Id) return Boolean is
411 or else NT (N).Nkind = N_Aggregate);
413 end Compile_Time_Known_Aggregate;
415 function Component_Associations
416 (N : Node_Id) return List_Id is
419 or else NT (N).Nkind = N_Aggregate
420 or else NT (N).Nkind = N_Extension_Aggregate);
422 end Component_Associations;
424 function Component_Clauses
425 (N : Node_Id) return List_Id is
428 or else NT (N).Nkind = N_Record_Representation_Clause);
430 end Component_Clauses;
432 function Component_Definition
433 (N : Node_Id) return Node_Id is
436 or else NT (N).Nkind = N_Component_Declaration
437 or else NT (N).Nkind = N_Constrained_Array_Definition
438 or else NT (N).Nkind = N_Unconstrained_Array_Definition);
440 end Component_Definition;
442 function Component_Items
443 (N : Node_Id) return List_Id is
446 or else NT (N).Nkind = N_Component_List);
450 function Component_List
451 (N : Node_Id) return Node_Id is
454 or else NT (N).Nkind = N_Record_Definition
455 or else NT (N).Nkind = N_Variant);
459 function Component_Name
460 (N : Node_Id) return Node_Id is
463 or else NT (N).Nkind = N_Component_Clause);
468 (N : Node_Id) return Node_Id is
471 or else NT (N).Nkind = N_Accept_Alternative
472 or else NT (N).Nkind = N_Delay_Alternative
473 or else NT (N).Nkind = N_Elsif_Part
474 or else NT (N).Nkind = N_Entry_Body_Formal_Part
475 or else NT (N).Nkind = N_Exit_Statement
476 or else NT (N).Nkind = N_If_Statement
477 or else NT (N).Nkind = N_Iteration_Scheme
478 or else NT (N).Nkind = N_Raise_Constraint_Error
479 or else NT (N).Nkind = N_Raise_Program_Error
480 or else NT (N).Nkind = N_Raise_Storage_Error
481 or else NT (N).Nkind = N_Terminate_Alternative);
485 function Condition_Actions
486 (N : Node_Id) return List_Id is
489 or else NT (N).Nkind = N_Elsif_Part
490 or else NT (N).Nkind = N_Iteration_Scheme);
492 end Condition_Actions;
494 function Config_Pragmas
495 (N : Node_Id) return List_Id is
498 or else NT (N).Nkind = N_Compilation_Unit_Aux);
502 function Constant_Present
503 (N : Node_Id) return Boolean is
506 or else NT (N).Nkind = N_Access_Definition
507 or else NT (N).Nkind = N_Access_To_Object_Definition
508 or else NT (N).Nkind = N_Object_Declaration);
510 end Constant_Present;
513 (N : Node_Id) return Node_Id is
516 or else NT (N).Nkind = N_Subtype_Indication);
521 (N : Node_Id) return List_Id is
524 or else NT (N).Nkind = N_Index_Or_Discriminant_Constraint);
528 function Context_Installed
529 (N : Node_Id) return Boolean is
532 or else NT (N).Nkind = N_With_Clause);
534 end Context_Installed;
536 function Context_Items
537 (N : Node_Id) return List_Id is
540 or else NT (N).Nkind = N_Compilation_Unit);
544 function Controlling_Argument
545 (N : Node_Id) return Node_Id is
548 or else NT (N).Nkind = N_Function_Call
549 or else NT (N).Nkind = N_Procedure_Call_Statement);
551 end Controlling_Argument;
553 function Conversion_OK
554 (N : Node_Id) return Boolean is
557 or else NT (N).Nkind = N_Type_Conversion);
561 function Corresponding_Body
562 (N : Node_Id) return Node_Id is
565 or else NT (N).Nkind = N_Entry_Declaration
566 or else NT (N).Nkind = N_Generic_Package_Declaration
567 or else NT (N).Nkind = N_Generic_Subprogram_Declaration
568 or else NT (N).Nkind = N_Package_Body_Stub
569 or else NT (N).Nkind = N_Package_Declaration
570 or else NT (N).Nkind = N_Protected_Body_Stub
571 or else NT (N).Nkind = N_Protected_Type_Declaration
572 or else NT (N).Nkind = N_Subprogram_Body_Stub
573 or else NT (N).Nkind = N_Subprogram_Declaration
574 or else NT (N).Nkind = N_Task_Body_Stub
575 or else NT (N).Nkind = N_Task_Type_Declaration);
577 end Corresponding_Body;
579 function Corresponding_Formal_Spec
580 (N : Node_Id) return Node_Id is
583 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration);
585 end Corresponding_Formal_Spec;
587 function Corresponding_Generic_Association
588 (N : Node_Id) return Node_Id is
591 or else NT (N).Nkind = N_Object_Declaration
592 or else NT (N).Nkind = N_Object_Renaming_Declaration);
594 end Corresponding_Generic_Association;
596 function Corresponding_Integer_Value
597 (N : Node_Id) return Uint is
600 or else NT (N).Nkind = N_Real_Literal);
602 end Corresponding_Integer_Value;
604 function Corresponding_Spec
605 (N : Node_Id) return Node_Id is
608 or else NT (N).Nkind = N_Package_Body
609 or else NT (N).Nkind = N_Protected_Body
610 or else NT (N).Nkind = N_Subprogram_Body
611 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration
612 or else NT (N).Nkind = N_Task_Body
613 or else NT (N).Nkind = N_With_Clause);
615 end Corresponding_Spec;
617 function Corresponding_Stub
618 (N : Node_Id) return Node_Id is
621 or else NT (N).Nkind = N_Subunit);
623 end Corresponding_Stub;
625 function Dcheck_Function
626 (N : Node_Id) return Entity_Id is
629 or else NT (N).Nkind = N_Variant);
633 function Debug_Statement
634 (N : Node_Id) return Node_Id is
637 or else NT (N).Nkind = N_Pragma);
641 function Declarations
642 (N : Node_Id) return List_Id is
645 or else NT (N).Nkind = N_Accept_Statement
646 or else NT (N).Nkind = N_Block_Statement
647 or else NT (N).Nkind = N_Compilation_Unit_Aux
648 or else NT (N).Nkind = N_Entry_Body
649 or else NT (N).Nkind = N_Package_Body
650 or else NT (N).Nkind = N_Protected_Body
651 or else NT (N).Nkind = N_Subprogram_Body
652 or else NT (N).Nkind = N_Task_Body);
656 function Default_Expression
657 (N : Node_Id) return Node_Id is
660 or else NT (N).Nkind = N_Formal_Object_Declaration
661 or else NT (N).Nkind = N_Parameter_Specification);
663 end Default_Expression;
665 function Default_Name
666 (N : Node_Id) return Node_Id is
669 or else NT (N).Nkind = N_Formal_Abstract_Subprogram_Declaration
670 or else NT (N).Nkind = N_Formal_Concrete_Subprogram_Declaration);
674 function Defining_Identifier
675 (N : Node_Id) return Entity_Id is
678 or else NT (N).Nkind = N_Component_Declaration
679 or else NT (N).Nkind = N_Defining_Program_Unit_Name
680 or else NT (N).Nkind = N_Discriminant_Specification
681 or else NT (N).Nkind = N_Entry_Body
682 or else NT (N).Nkind = N_Entry_Declaration
683 or else NT (N).Nkind = N_Entry_Index_Specification
684 or else NT (N).Nkind = N_Exception_Declaration
685 or else NT (N).Nkind = N_Exception_Renaming_Declaration
686 or else NT (N).Nkind = N_Formal_Object_Declaration
687 or else NT (N).Nkind = N_Formal_Package_Declaration
688 or else NT (N).Nkind = N_Formal_Type_Declaration
689 or else NT (N).Nkind = N_Full_Type_Declaration
690 or else NT (N).Nkind = N_Implicit_Label_Declaration
691 or else NT (N).Nkind = N_Incomplete_Type_Declaration
692 or else NT (N).Nkind = N_Loop_Parameter_Specification
693 or else NT (N).Nkind = N_Number_Declaration
694 or else NT (N).Nkind = N_Object_Declaration
695 or else NT (N).Nkind = N_Object_Renaming_Declaration
696 or else NT (N).Nkind = N_Package_Body_Stub
697 or else NT (N).Nkind = N_Parameter_Specification
698 or else NT (N).Nkind = N_Private_Extension_Declaration
699 or else NT (N).Nkind = N_Private_Type_Declaration
700 or else NT (N).Nkind = N_Protected_Body
701 or else NT (N).Nkind = N_Protected_Body_Stub
702 or else NT (N).Nkind = N_Protected_Type_Declaration
703 or else NT (N).Nkind = N_Single_Protected_Declaration
704 or else NT (N).Nkind = N_Single_Task_Declaration
705 or else NT (N).Nkind = N_Subtype_Declaration
706 or else NT (N).Nkind = N_Task_Body
707 or else NT (N).Nkind = N_Task_Body_Stub
708 or else NT (N).Nkind = N_Task_Type_Declaration);
710 end Defining_Identifier;
712 function Defining_Unit_Name
713 (N : Node_Id) return Node_Id is
716 or else NT (N).Nkind = N_Function_Instantiation
717 or else NT (N).Nkind = N_Function_Specification
718 or else NT (N).Nkind = N_Generic_Function_Renaming_Declaration
719 or else NT (N).Nkind = N_Generic_Package_Renaming_Declaration
720 or else NT (N).Nkind = N_Generic_Procedure_Renaming_Declaration
721 or else NT (N).Nkind = N_Package_Body
722 or else NT (N).Nkind = N_Package_Instantiation
723 or else NT (N).Nkind = N_Package_Renaming_Declaration
724 or else NT (N).Nkind = N_Package_Specification
725 or else NT (N).Nkind = N_Procedure_Instantiation
726 or else NT (N).Nkind = N_Procedure_Specification);
728 end Defining_Unit_Name;
730 function Delay_Alternative
731 (N : Node_Id) return Node_Id is
734 or else NT (N).Nkind = N_Timed_Entry_Call);
736 end Delay_Alternative;
738 function Delay_Statement
739 (N : Node_Id) return Node_Id is
742 or else NT (N).Nkind = N_Delay_Alternative);
746 function Delta_Expression
747 (N : Node_Id) return Node_Id is
750 or else NT (N).Nkind = N_Decimal_Fixed_Point_Definition
751 or else NT (N).Nkind = N_Delta_Constraint
752 or else NT (N).Nkind = N_Ordinary_Fixed_Point_Definition);
754 end Delta_Expression;
756 function Digits_Expression
757 (N : Node_Id) return Node_Id is
760 or else NT (N).Nkind = N_Decimal_Fixed_Point_Definition
761 or else NT (N).Nkind = N_Digits_Constraint
762 or else NT (N).Nkind = N_Floating_Point_Definition);
764 end Digits_Expression;
766 function Discr_Check_Funcs_Built
767 (N : Node_Id) return Boolean is
770 or else NT (N).Nkind = N_Full_Type_Declaration);
772 end Discr_Check_Funcs_Built;
774 function Discrete_Choices
775 (N : Node_Id) return List_Id is
778 or else NT (N).Nkind = N_Case_Statement_Alternative
779 or else NT (N).Nkind = N_Variant);
781 end Discrete_Choices;
783 function Discrete_Range
784 (N : Node_Id) return Node_Id is
787 or else NT (N).Nkind = N_Slice);
791 function Discrete_Subtype_Definition
792 (N : Node_Id) return Node_Id is
795 or else NT (N).Nkind = N_Entry_Declaration
796 or else NT (N).Nkind = N_Entry_Index_Specification
797 or else NT (N).Nkind = N_Loop_Parameter_Specification);
799 end Discrete_Subtype_Definition;
801 function Discrete_Subtype_Definitions
802 (N : Node_Id) return List_Id is
805 or else NT (N).Nkind = N_Constrained_Array_Definition);
807 end Discrete_Subtype_Definitions;
809 function Discriminant_Specifications
810 (N : Node_Id) return List_Id is
813 or else NT (N).Nkind = N_Formal_Type_Declaration
814 or else NT (N).Nkind = N_Full_Type_Declaration
815 or else NT (N).Nkind = N_Incomplete_Type_Declaration
816 or else NT (N).Nkind = N_Private_Extension_Declaration
817 or else NT (N).Nkind = N_Private_Type_Declaration
818 or else NT (N).Nkind = N_Protected_Type_Declaration
819 or else NT (N).Nkind = N_Task_Type_Declaration);
821 end Discriminant_Specifications;
823 function Discriminant_Type
824 (N : Node_Id) return Node_Id is
827 or else NT (N).Nkind = N_Discriminant_Specification);
829 end Discriminant_Type;
831 function Do_Accessibility_Check
832 (N : Node_Id) return Boolean is
835 or else NT (N).Nkind = N_Parameter_Specification);
837 end Do_Accessibility_Check;
839 function Do_Discriminant_Check
840 (N : Node_Id) return Boolean is
843 or else NT (N).Nkind = N_Selected_Component);
845 end Do_Discriminant_Check;
847 function Do_Division_Check
848 (N : Node_Id) return Boolean is
851 or else NT (N).Nkind = N_Op_Divide
852 or else NT (N).Nkind = N_Op_Mod
853 or else NT (N).Nkind = N_Op_Rem);
855 end Do_Division_Check;
857 function Do_Length_Check
858 (N : Node_Id) return Boolean is
861 or else NT (N).Nkind = N_Assignment_Statement
862 or else NT (N).Nkind = N_Op_And
863 or else NT (N).Nkind = N_Op_Or
864 or else NT (N).Nkind = N_Op_Xor
865 or else NT (N).Nkind = N_Type_Conversion);
869 function Do_Overflow_Check
870 (N : Node_Id) return Boolean is
873 or else NT (N).Nkind in N_Op
874 or else NT (N).Nkind = N_Attribute_Reference
875 or else NT (N).Nkind = N_Type_Conversion);
877 end Do_Overflow_Check;
879 function Do_Range_Check
880 (N : Node_Id) return Boolean is
883 or else NT (N).Nkind in N_Subexpr);
887 function Do_Storage_Check
888 (N : Node_Id) return Boolean is
891 or else NT (N).Nkind = N_Allocator
892 or else NT (N).Nkind = N_Subprogram_Body);
894 end Do_Storage_Check;
896 function Do_Tag_Check
897 (N : Node_Id) return Boolean is
900 or else NT (N).Nkind = N_Assignment_Statement
901 or else NT (N).Nkind = N_Extended_Return_Statement
902 or else NT (N).Nkind = N_Function_Call
903 or else NT (N).Nkind = N_Procedure_Call_Statement
904 or else NT (N).Nkind = N_Return_Statement
905 or else NT (N).Nkind = N_Type_Conversion);
909 function Elaborate_All_Desirable
910 (N : Node_Id) return Boolean is
913 or else NT (N).Nkind = N_With_Clause);
915 end Elaborate_All_Desirable;
917 function Elaborate_All_Present
918 (N : Node_Id) return Boolean is
921 or else NT (N).Nkind = N_With_Clause);
923 end Elaborate_All_Present;
925 function Elaborate_Desirable
926 (N : Node_Id) return Boolean is
929 or else NT (N).Nkind = N_With_Clause);
931 end Elaborate_Desirable;
933 function Elaborate_Present
934 (N : Node_Id) return Boolean is
937 or else NT (N).Nkind = N_With_Clause);
939 end Elaborate_Present;
941 function Elaboration_Boolean
942 (N : Node_Id) return Node_Id is
945 or else NT (N).Nkind = N_Function_Specification
946 or else NT (N).Nkind = N_Procedure_Specification);
948 end Elaboration_Boolean;
950 function Else_Actions
951 (N : Node_Id) return List_Id is
954 or else NT (N).Nkind = N_Conditional_Expression);
958 function Else_Statements
959 (N : Node_Id) return List_Id is
962 or else NT (N).Nkind = N_Conditional_Entry_Call
963 or else NT (N).Nkind = N_If_Statement
964 or else NT (N).Nkind = N_Selective_Accept);
969 (N : Node_Id) return List_Id is
972 or else NT (N).Nkind = N_If_Statement);
976 function Enclosing_Variant
977 (N : Node_Id) return Node_Id is
980 or else NT (N).Nkind = N_Variant);
982 end Enclosing_Variant;
985 (N : Node_Id) return Node_Id is
988 or else NT (N).Nkind = N_Enumeration_Type_Definition
989 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements
990 or else NT (N).Nkind = N_Loop_Statement
991 or else NT (N).Nkind = N_Package_Specification
992 or else NT (N).Nkind = N_Protected_Body
993 or else NT (N).Nkind = N_Protected_Definition
994 or else NT (N).Nkind = N_Record_Definition
995 or else NT (N).Nkind = N_Task_Definition);
1000 (N : Node_Id) return Uint is
1002 pragma Assert (False
1003 or else NT (N).Nkind = N_Case_Statement
1004 or else NT (N).Nkind = N_If_Statement);
1009 (N : Node_Id) return Node_Id is
1011 pragma Assert (False
1012 or else NT (N).Nkind in N_Has_Entity
1013 or else NT (N).Nkind = N_Freeze_Entity
1014 or else NT (N).Nkind = N_Attribute_Definition_Clause);
1018 function Entity_Or_Associated_Node
1019 (N : Node_Id) return Node_Id is
1021 pragma Assert (False
1022 or else NT (N).Nkind in N_Has_Entity
1023 or else NT (N).Nkind = N_Freeze_Entity);
1025 end Entity_Or_Associated_Node;
1027 function Entry_Body_Formal_Part
1028 (N : Node_Id) return Node_Id is
1030 pragma Assert (False
1031 or else NT (N).Nkind = N_Entry_Body);
1033 end Entry_Body_Formal_Part;
1035 function Entry_Call_Alternative
1036 (N : Node_Id) return Node_Id is
1038 pragma Assert (False
1039 or else NT (N).Nkind = N_Conditional_Entry_Call
1040 or else NT (N).Nkind = N_Timed_Entry_Call);
1042 end Entry_Call_Alternative;
1044 function Entry_Call_Statement
1045 (N : Node_Id) return Node_Id is
1047 pragma Assert (False
1048 or else NT (N).Nkind = N_Entry_Call_Alternative);
1050 end Entry_Call_Statement;
1052 function Entry_Direct_Name
1053 (N : Node_Id) return Node_Id is
1055 pragma Assert (False
1056 or else NT (N).Nkind = N_Accept_Statement);
1058 end Entry_Direct_Name;
1060 function Entry_Index
1061 (N : Node_Id) return Node_Id is
1063 pragma Assert (False
1064 or else NT (N).Nkind = N_Accept_Statement);
1068 function Entry_Index_Specification
1069 (N : Node_Id) return Node_Id is
1071 pragma Assert (False
1072 or else NT (N).Nkind = N_Entry_Body_Formal_Part);
1074 end Entry_Index_Specification;
1077 (N : Node_Id) return Node_Id is
1079 pragma Assert (False
1080 or else NT (N).Nkind in N_Has_Etype);
1084 function Exception_Choices
1085 (N : Node_Id) return List_Id is
1087 pragma Assert (False
1088 or else NT (N).Nkind = N_Exception_Handler);
1090 end Exception_Choices;
1092 function Exception_Handlers
1093 (N : Node_Id) return List_Id is
1095 pragma Assert (False
1096 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements);
1098 end Exception_Handlers;
1100 function Exception_Junk
1101 (N : Node_Id) return Boolean is
1103 pragma Assert (False
1104 or else NT (N).Nkind = N_Block_Statement
1105 or else NT (N).Nkind = N_Goto_Statement
1106 or else NT (N).Nkind = N_Label
1107 or else NT (N).Nkind = N_Object_Declaration
1108 or else NT (N).Nkind = N_Subtype_Declaration);
1112 function Exception_Label
1113 (N : Node_Id) return Node_Id is
1115 pragma Assert (False
1116 or else NT (N).Nkind = N_Exception_Handler
1117 or else NT (N).Nkind = N_Push_Constraint_Error_Label
1118 or else NT (N).Nkind = N_Push_Program_Error_Label
1119 or else NT (N).Nkind = N_Push_Storage_Error_Label);
1121 end Exception_Label;
1123 function Expansion_Delayed
1124 (N : Node_Id) return Boolean is
1126 pragma Assert (False
1127 or else NT (N).Nkind = N_Aggregate
1128 or else NT (N).Nkind = N_Extension_Aggregate);
1130 end Expansion_Delayed;
1132 function Explicit_Actual_Parameter
1133 (N : Node_Id) return Node_Id is
1135 pragma Assert (False
1136 or else NT (N).Nkind = N_Parameter_Association);
1138 end Explicit_Actual_Parameter;
1140 function Explicit_Generic_Actual_Parameter
1141 (N : Node_Id) return Node_Id is
1143 pragma Assert (False
1144 or else NT (N).Nkind = N_Generic_Association);
1146 end Explicit_Generic_Actual_Parameter;
1149 (N : Node_Id) return Node_Id is
1151 pragma Assert (False
1152 or else NT (N).Nkind = N_Allocator
1153 or else NT (N).Nkind = N_Assignment_Statement
1154 or else NT (N).Nkind = N_At_Clause
1155 or else NT (N).Nkind = N_Attribute_Definition_Clause
1156 or else NT (N).Nkind = N_Case_Statement
1157 or else NT (N).Nkind = N_Code_Statement
1158 or else NT (N).Nkind = N_Component_Association
1159 or else NT (N).Nkind = N_Component_Declaration
1160 or else NT (N).Nkind = N_Delay_Relative_Statement
1161 or else NT (N).Nkind = N_Delay_Until_Statement
1162 or else NT (N).Nkind = N_Discriminant_Association
1163 or else NT (N).Nkind = N_Discriminant_Specification
1164 or else NT (N).Nkind = N_Exception_Declaration
1165 or else NT (N).Nkind = N_Free_Statement
1166 or else NT (N).Nkind = N_Mod_Clause
1167 or else NT (N).Nkind = N_Modular_Type_Definition
1168 or else NT (N).Nkind = N_Number_Declaration
1169 or else NT (N).Nkind = N_Object_Declaration
1170 or else NT (N).Nkind = N_Parameter_Specification
1171 or else NT (N).Nkind = N_Pragma_Argument_Association
1172 or else NT (N).Nkind = N_Qualified_Expression
1173 or else NT (N).Nkind = N_Raise_Statement
1174 or else NT (N).Nkind = N_Return_Statement
1175 or else NT (N).Nkind = N_Type_Conversion
1176 or else NT (N).Nkind = N_Unchecked_Expression
1177 or else NT (N).Nkind = N_Unchecked_Type_Conversion);
1181 function Expressions
1182 (N : Node_Id) return List_Id is
1184 pragma Assert (False
1185 or else NT (N).Nkind = N_Aggregate
1186 or else NT (N).Nkind = N_Attribute_Reference
1187 or else NT (N).Nkind = N_Conditional_Expression
1188 or else NT (N).Nkind = N_Extension_Aggregate
1189 or else NT (N).Nkind = N_Indexed_Component);
1194 (N : Node_Id) return Node_Id is
1196 pragma Assert (False
1197 or else NT (N).Nkind = N_Component_Clause);
1201 function First_Inlined_Subprogram
1202 (N : Node_Id) return Entity_Id is
1204 pragma Assert (False
1205 or else NT (N).Nkind = N_Compilation_Unit);
1207 end First_Inlined_Subprogram;
1210 (N : Node_Id) return Boolean is
1212 pragma Assert (False
1213 or else NT (N).Nkind = N_With_Clause);
1217 function First_Named_Actual
1218 (N : Node_Id) return Node_Id is
1220 pragma Assert (False
1221 or else NT (N).Nkind = N_Entry_Call_Statement
1222 or else NT (N).Nkind = N_Function_Call
1223 or else NT (N).Nkind = N_Procedure_Call_Statement);
1225 end First_Named_Actual;
1227 function First_Real_Statement
1228 (N : Node_Id) return Node_Id is
1230 pragma Assert (False
1231 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements);
1233 end First_Real_Statement;
1235 function First_Subtype_Link
1236 (N : Node_Id) return Entity_Id is
1238 pragma Assert (False
1239 or else NT (N).Nkind = N_Freeze_Entity);
1241 end First_Subtype_Link;
1243 function Float_Truncate
1244 (N : Node_Id) return Boolean is
1246 pragma Assert (False
1247 or else NT (N).Nkind = N_Type_Conversion);
1251 function Formal_Type_Definition
1252 (N : Node_Id) return Node_Id is
1254 pragma Assert (False
1255 or else NT (N).Nkind = N_Formal_Type_Declaration);
1257 end Formal_Type_Definition;
1259 function Forwards_OK
1260 (N : Node_Id) return Boolean is
1262 pragma Assert (False
1263 or else NT (N).Nkind = N_Assignment_Statement);
1267 function From_At_End
1268 (N : Node_Id) return Boolean is
1270 pragma Assert (False
1271 or else NT (N).Nkind = N_Raise_Statement);
1275 function From_At_Mod
1276 (N : Node_Id) return Boolean is
1278 pragma Assert (False
1279 or else NT (N).Nkind = N_Attribute_Definition_Clause);
1283 function From_Default
1284 (N : Node_Id) return Boolean is
1286 pragma Assert (False
1287 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration);
1291 function Generic_Associations
1292 (N : Node_Id) return List_Id is
1294 pragma Assert (False
1295 or else NT (N).Nkind = N_Formal_Package_Declaration
1296 or else NT (N).Nkind = N_Function_Instantiation
1297 or else NT (N).Nkind = N_Package_Instantiation
1298 or else NT (N).Nkind = N_Procedure_Instantiation);
1300 end Generic_Associations;
1302 function Generic_Formal_Declarations
1303 (N : Node_Id) return List_Id is
1305 pragma Assert (False
1306 or else NT (N).Nkind = N_Generic_Package_Declaration
1307 or else NT (N).Nkind = N_Generic_Subprogram_Declaration);
1309 end Generic_Formal_Declarations;
1311 function Generic_Parent
1312 (N : Node_Id) return Node_Id is
1314 pragma Assert (False
1315 or else NT (N).Nkind = N_Function_Specification
1316 or else NT (N).Nkind = N_Package_Specification
1317 or else NT (N).Nkind = N_Procedure_Specification);
1321 function Generic_Parent_Type
1322 (N : Node_Id) return Node_Id is
1324 pragma Assert (False
1325 or else NT (N).Nkind = N_Subtype_Declaration);
1327 end Generic_Parent_Type;
1329 function Handled_Statement_Sequence
1330 (N : Node_Id) return Node_Id is
1332 pragma Assert (False
1333 or else NT (N).Nkind = N_Accept_Statement
1334 or else NT (N).Nkind = N_Block_Statement
1335 or else NT (N).Nkind = N_Entry_Body
1336 or else NT (N).Nkind = N_Extended_Return_Statement
1337 or else NT (N).Nkind = N_Package_Body
1338 or else NT (N).Nkind = N_Subprogram_Body
1339 or else NT (N).Nkind = N_Task_Body);
1341 end Handled_Statement_Sequence;
1343 function Handler_List_Entry
1344 (N : Node_Id) return Node_Id is
1346 pragma Assert (False
1347 or else NT (N).Nkind = N_Object_Declaration);
1349 end Handler_List_Entry;
1351 function Has_Created_Identifier
1352 (N : Node_Id) return Boolean is
1354 pragma Assert (False
1355 or else NT (N).Nkind = N_Block_Statement
1356 or else NT (N).Nkind = N_Loop_Statement);
1358 end Has_Created_Identifier;
1360 function Has_Dynamic_Length_Check
1361 (N : Node_Id) return Boolean is
1364 end Has_Dynamic_Length_Check;
1366 function Has_Dynamic_Range_Check
1367 (N : Node_Id) return Boolean is
1370 end Has_Dynamic_Range_Check;
1372 function Has_Init_Expression
1373 (N : Node_Id) return Boolean is
1375 pragma Assert (False
1376 or else NT (N).Nkind = N_Object_Declaration);
1378 end Has_Init_Expression;
1380 function Has_Local_Raise
1381 (N : Node_Id) return Boolean is
1383 pragma Assert (False
1384 or else NT (N).Nkind = N_Exception_Handler);
1386 end Has_Local_Raise;
1388 function Has_No_Elaboration_Code
1389 (N : Node_Id) return Boolean is
1391 pragma Assert (False
1392 or else NT (N).Nkind = N_Compilation_Unit);
1394 end Has_No_Elaboration_Code;
1396 function Has_Priority_Pragma
1397 (N : Node_Id) return Boolean is
1399 pragma Assert (False
1400 or else NT (N).Nkind = N_Protected_Definition
1401 or else NT (N).Nkind = N_Subprogram_Body
1402 or else NT (N).Nkind = N_Task_Definition);
1404 end Has_Priority_Pragma;
1406 function Has_Private_View
1407 (N : Node_Id) return Boolean is
1409 pragma Assert (False
1410 or else NT (N).Nkind in N_Op
1411 or else NT (N).Nkind = N_Character_Literal
1412 or else NT (N).Nkind = N_Expanded_Name
1413 or else NT (N).Nkind = N_Identifier
1414 or else NT (N).Nkind = N_Operator_Symbol);
1416 end Has_Private_View;
1418 function Has_Relative_Deadline_Pragma
1419 (N : Node_Id) return Boolean is
1421 pragma Assert (False
1422 or else NT (N).Nkind = N_Subprogram_Body
1423 or else NT (N).Nkind = N_Task_Definition);
1425 end Has_Relative_Deadline_Pragma;
1427 function Has_Self_Reference
1428 (N : Node_Id) return Boolean is
1430 pragma Assert (False
1431 or else NT (N).Nkind = N_Aggregate
1432 or else NT (N).Nkind = N_Extension_Aggregate);
1434 end Has_Self_Reference;
1436 function Has_Storage_Size_Pragma
1437 (N : Node_Id) return Boolean is
1439 pragma Assert (False
1440 or else NT (N).Nkind = N_Task_Definition);
1442 end Has_Storage_Size_Pragma;
1444 function Has_Task_Info_Pragma
1445 (N : Node_Id) return Boolean is
1447 pragma Assert (False
1448 or else NT (N).Nkind = N_Task_Definition);
1450 end Has_Task_Info_Pragma;
1452 function Has_Task_Name_Pragma
1453 (N : Node_Id) return Boolean is
1455 pragma Assert (False
1456 or else NT (N).Nkind = N_Task_Definition);
1458 end Has_Task_Name_Pragma;
1460 function Has_Wide_Character
1461 (N : Node_Id) return Boolean is
1463 pragma Assert (False
1464 or else NT (N).Nkind = N_String_Literal);
1466 end Has_Wide_Character;
1468 function Hidden_By_Use_Clause
1469 (N : Node_Id) return Elist_Id is
1471 pragma Assert (False
1472 or else NT (N).Nkind = N_Use_Package_Clause
1473 or else NT (N).Nkind = N_Use_Type_Clause);
1475 end Hidden_By_Use_Clause;
1478 (N : Node_Id) return Node_Id is
1480 pragma Assert (False
1481 or else NT (N).Nkind = N_Range
1482 or else NT (N).Nkind = N_Real_Range_Specification
1483 or else NT (N).Nkind = N_Signed_Integer_Type_Definition);
1488 (N : Node_Id) return Node_Id is
1490 pragma Assert (False
1491 or else NT (N).Nkind = N_At_Clause
1492 or else NT (N).Nkind = N_Block_Statement
1493 or else NT (N).Nkind = N_Designator
1494 or else NT (N).Nkind = N_Enumeration_Representation_Clause
1495 or else NT (N).Nkind = N_Label
1496 or else NT (N).Nkind = N_Loop_Statement
1497 or else NT (N).Nkind = N_Record_Representation_Clause
1498 or else NT (N).Nkind = N_Subprogram_Info);
1502 function Implicit_With
1503 (N : Node_Id) return Boolean is
1505 pragma Assert (False
1506 or else NT (N).Nkind = N_With_Clause);
1510 function Interface_List
1511 (N : Node_Id) return List_Id is
1513 pragma Assert (False
1514 or else NT (N).Nkind = N_Derived_Type_Definition
1515 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
1516 or else NT (N).Nkind = N_Private_Extension_Declaration
1517 or else NT (N).Nkind = N_Protected_Type_Declaration
1518 or else NT (N).Nkind = N_Record_Definition
1519 or else NT (N).Nkind = N_Single_Protected_Declaration
1520 or else NT (N).Nkind = N_Single_Task_Declaration
1521 or else NT (N).Nkind = N_Task_Type_Declaration);
1525 function Interface_Present
1526 (N : Node_Id) return Boolean is
1528 pragma Assert (False
1529 or else NT (N).Nkind = N_Derived_Type_Definition
1530 or else NT (N).Nkind = N_Record_Definition);
1532 end Interface_Present;
1535 (N : Node_Id) return Boolean is
1537 pragma Assert (False
1538 or else NT (N).Nkind = N_Formal_Object_Declaration
1539 or else NT (N).Nkind = N_Parameter_Specification);
1543 function Includes_Infinities
1544 (N : Node_Id) return Boolean is
1546 pragma Assert (False
1547 or else NT (N).Nkind = N_Range);
1549 end Includes_Infinities;
1551 function Instance_Spec
1552 (N : Node_Id) return Node_Id is
1554 pragma Assert (False
1555 or else NT (N).Nkind = N_Formal_Package_Declaration
1556 or else NT (N).Nkind = N_Function_Instantiation
1557 or else NT (N).Nkind = N_Package_Instantiation
1558 or else NT (N).Nkind = N_Procedure_Instantiation);
1563 (N : Node_Id) return Uint is
1565 pragma Assert (False
1566 or else NT (N).Nkind = N_Integer_Literal);
1570 function Is_Asynchronous_Call_Block
1571 (N : Node_Id) return Boolean is
1573 pragma Assert (False
1574 or else NT (N).Nkind = N_Block_Statement);
1576 end Is_Asynchronous_Call_Block;
1578 function Is_Component_Left_Opnd
1579 (N : Node_Id) return Boolean is
1581 pragma Assert (False
1582 or else NT (N).Nkind = N_Op_Concat);
1584 end Is_Component_Left_Opnd;
1586 function Is_Component_Right_Opnd
1587 (N : Node_Id) return Boolean is
1589 pragma Assert (False
1590 or else NT (N).Nkind = N_Op_Concat);
1592 end Is_Component_Right_Opnd;
1594 function Is_Controlling_Actual
1595 (N : Node_Id) return Boolean is
1597 pragma Assert (False
1598 or else NT (N).Nkind in N_Subexpr);
1600 end Is_Controlling_Actual;
1602 function Is_Dynamic_Coextension
1603 (N : Node_Id) return Boolean is
1605 pragma Assert (False
1606 or else NT (N).Nkind = N_Allocator);
1608 end Is_Dynamic_Coextension;
1610 function Is_Entry_Barrier_Function
1611 (N : Node_Id) return Boolean is
1613 pragma Assert (False
1614 or else NT (N).Nkind = N_Subprogram_Body);
1616 end Is_Entry_Barrier_Function;
1618 function Is_Expanded_Build_In_Place_Call
1619 (N : Node_Id) return Boolean is
1621 pragma Assert (False
1622 or else NT (N).Nkind = N_Function_Call);
1624 end Is_Expanded_Build_In_Place_Call;
1626 function Is_Folded_In_Parser
1627 (N : Node_Id) return Boolean is
1629 pragma Assert (False
1630 or else NT (N).Nkind = N_String_Literal);
1632 end Is_Folded_In_Parser;
1634 function Is_In_Discriminant_Check
1635 (N : Node_Id) return Boolean is
1637 pragma Assert (False
1638 or else NT (N).Nkind = N_Selected_Component);
1640 end Is_In_Discriminant_Check;
1642 function Is_Machine_Number
1643 (N : Node_Id) return Boolean is
1645 pragma Assert (False
1646 or else NT (N).Nkind = N_Real_Literal);
1648 end Is_Machine_Number;
1650 function Is_Null_Loop
1651 (N : Node_Id) return Boolean is
1653 pragma Assert (False
1654 or else NT (N).Nkind = N_Loop_Statement);
1658 function Is_Overloaded
1659 (N : Node_Id) return Boolean is
1661 pragma Assert (False
1662 or else NT (N).Nkind in N_Subexpr);
1666 function Is_Power_Of_2_For_Shift
1667 (N : Node_Id) return Boolean is
1669 pragma Assert (False
1670 or else NT (N).Nkind = N_Op_Expon);
1672 end Is_Power_Of_2_For_Shift;
1674 function Is_Protected_Subprogram_Body
1675 (N : Node_Id) return Boolean is
1677 pragma Assert (False
1678 or else NT (N).Nkind = N_Subprogram_Body);
1680 end Is_Protected_Subprogram_Body;
1682 function Is_Static_Coextension
1683 (N : Node_Id) return Boolean is
1685 pragma Assert (False
1686 or else NT (N).Nkind = N_Allocator);
1688 end Is_Static_Coextension;
1690 function Is_Static_Expression
1691 (N : Node_Id) return Boolean is
1693 pragma Assert (False
1694 or else NT (N).Nkind in N_Subexpr);
1696 end Is_Static_Expression;
1698 function Is_Subprogram_Descriptor
1699 (N : Node_Id) return Boolean is
1701 pragma Assert (False
1702 or else NT (N).Nkind = N_Object_Declaration);
1704 end Is_Subprogram_Descriptor;
1706 function Is_Task_Allocation_Block
1707 (N : Node_Id) return Boolean is
1709 pragma Assert (False
1710 or else NT (N).Nkind = N_Block_Statement);
1712 end Is_Task_Allocation_Block;
1714 function Is_Task_Master
1715 (N : Node_Id) return Boolean is
1717 pragma Assert (False
1718 or else NT (N).Nkind = N_Block_Statement
1719 or else NT (N).Nkind = N_Subprogram_Body
1720 or else NT (N).Nkind = N_Task_Body);
1724 function Iteration_Scheme
1725 (N : Node_Id) return Node_Id is
1727 pragma Assert (False
1728 or else NT (N).Nkind = N_Loop_Statement);
1730 end Iteration_Scheme;
1733 (N : Node_Id) return Node_Id is
1735 pragma Assert (False
1736 or else NT (N).Nkind = N_Itype_Reference);
1740 function Kill_Range_Check
1741 (N : Node_Id) return Boolean is
1743 pragma Assert (False
1744 or else NT (N).Nkind = N_Unchecked_Type_Conversion);
1746 end Kill_Range_Check;
1748 function Label_Construct
1749 (N : Node_Id) return Node_Id is
1751 pragma Assert (False
1752 or else NT (N).Nkind = N_Implicit_Label_Declaration);
1754 end Label_Construct;
1757 (N : Node_Id) return Node_Id is
1759 pragma Assert (False
1760 or else NT (N).Nkind = N_Component_Clause);
1765 (N : Node_Id) return Boolean is
1767 pragma Assert (False
1768 or else NT (N).Nkind = N_With_Clause);
1773 (N : Node_Id) return Node_Id is
1775 pragma Assert (False
1776 or else NT (N).Nkind = N_And_Then
1777 or else NT (N).Nkind = N_In
1778 or else NT (N).Nkind = N_Not_In
1779 or else NT (N).Nkind = N_Or_Else
1780 or else NT (N).Nkind in N_Binary_Op);
1784 function Library_Unit
1785 (N : Node_Id) return Node_Id is
1787 pragma Assert (False
1788 or else NT (N).Nkind = N_Compilation_Unit
1789 or else NT (N).Nkind = N_Package_Body_Stub
1790 or else NT (N).Nkind = N_Protected_Body_Stub
1791 or else NT (N).Nkind = N_Subprogram_Body_Stub
1792 or else NT (N).Nkind = N_Task_Body_Stub
1793 or else NT (N).Nkind = N_With_Clause);
1797 function Limited_View_Installed
1798 (N : Node_Id) return Boolean is
1800 pragma Assert (False
1801 or else NT (N).Nkind = N_Package_Specification
1802 or else NT (N).Nkind = N_With_Clause);
1804 end Limited_View_Installed;
1806 function Limited_Present
1807 (N : Node_Id) return Boolean is
1809 pragma Assert (False
1810 or else NT (N).Nkind = N_Derived_Type_Definition
1811 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
1812 or else NT (N).Nkind = N_Formal_Private_Type_Definition
1813 or else NT (N).Nkind = N_Private_Extension_Declaration
1814 or else NT (N).Nkind = N_Private_Type_Declaration
1815 or else NT (N).Nkind = N_Record_Definition
1816 or else NT (N).Nkind = N_With_Clause);
1818 end Limited_Present;
1821 (N : Node_Id) return List_Id is
1823 pragma Assert (False
1824 or else NT (N).Nkind = N_Enumeration_Type_Definition);
1828 function Local_Raise_Not_OK
1829 (N : Node_Id) return Boolean is
1831 pragma Assert (False
1832 or else NT (N).Nkind = N_Exception_Handler);
1834 end Local_Raise_Not_OK;
1836 function Local_Raise_Statements
1837 (N : Node_Id) return Elist_Id is
1839 pragma Assert (False
1840 or else NT (N).Nkind = N_Exception_Handler);
1842 end Local_Raise_Statements;
1844 function Loop_Actions
1845 (N : Node_Id) return List_Id is
1847 pragma Assert (False
1848 or else NT (N).Nkind = N_Component_Association);
1852 function Loop_Parameter_Specification
1853 (N : Node_Id) return Node_Id is
1855 pragma Assert (False
1856 or else NT (N).Nkind = N_Iteration_Scheme);
1858 end Loop_Parameter_Specification;
1861 (N : Node_Id) return Node_Id is
1863 pragma Assert (False
1864 or else NT (N).Nkind = N_Range
1865 or else NT (N).Nkind = N_Real_Range_Specification
1866 or else NT (N).Nkind = N_Signed_Integer_Type_Definition);
1871 (N : Node_Id) return Node_Id is
1873 pragma Assert (False
1874 or else NT (N).Nkind = N_Record_Representation_Clause);
1879 (N : Node_Id) return Boolean is
1881 pragma Assert (False
1882 or else NT (N).Nkind = N_Component_Declaration
1883 or else NT (N).Nkind = N_Discriminant_Specification
1884 or else NT (N).Nkind = N_Exception_Declaration
1885 or else NT (N).Nkind = N_Formal_Object_Declaration
1886 or else NT (N).Nkind = N_Number_Declaration
1887 or else NT (N).Nkind = N_Object_Declaration
1888 or else NT (N).Nkind = N_Parameter_Specification);
1892 function Must_Be_Byte_Aligned
1893 (N : Node_Id) return Boolean is
1895 pragma Assert (False
1896 or else NT (N).Nkind = N_Attribute_Reference);
1898 end Must_Be_Byte_Aligned;
1900 function Must_Not_Freeze
1901 (N : Node_Id) return Boolean is
1903 pragma Assert (False
1904 or else NT (N).Nkind = N_Subtype_Indication
1905 or else NT (N).Nkind in N_Subexpr);
1907 end Must_Not_Freeze;
1909 function Must_Not_Override
1910 (N : Node_Id) return Boolean is
1912 pragma Assert (False
1913 or else NT (N).Nkind = N_Entry_Declaration
1914 or else NT (N).Nkind = N_Function_Instantiation
1915 or else NT (N).Nkind = N_Function_Specification
1916 or else NT (N).Nkind = N_Procedure_Instantiation
1917 or else NT (N).Nkind = N_Procedure_Specification);
1919 end Must_Not_Override;
1921 function Must_Override
1922 (N : Node_Id) return Boolean is
1924 pragma Assert (False
1925 or else NT (N).Nkind = N_Entry_Declaration
1926 or else NT (N).Nkind = N_Function_Instantiation
1927 or else NT (N).Nkind = N_Function_Specification
1928 or else NT (N).Nkind = N_Procedure_Instantiation
1929 or else NT (N).Nkind = N_Procedure_Specification);
1934 (N : Node_Id) return Node_Id is
1936 pragma Assert (False
1937 or else NT (N).Nkind = N_Assignment_Statement
1938 or else NT (N).Nkind = N_Attribute_Definition_Clause
1939 or else NT (N).Nkind = N_Defining_Program_Unit_Name
1940 or else NT (N).Nkind = N_Designator
1941 or else NT (N).Nkind = N_Entry_Call_Statement
1942 or else NT (N).Nkind = N_Exception_Renaming_Declaration
1943 or else NT (N).Nkind = N_Exit_Statement
1944 or else NT (N).Nkind = N_Formal_Package_Declaration
1945 or else NT (N).Nkind = N_Function_Call
1946 or else NT (N).Nkind = N_Function_Instantiation
1947 or else NT (N).Nkind = N_Generic_Function_Renaming_Declaration
1948 or else NT (N).Nkind = N_Generic_Package_Renaming_Declaration
1949 or else NT (N).Nkind = N_Generic_Procedure_Renaming_Declaration
1950 or else NT (N).Nkind = N_Goto_Statement
1951 or else NT (N).Nkind = N_Object_Renaming_Declaration
1952 or else NT (N).Nkind = N_Package_Instantiation
1953 or else NT (N).Nkind = N_Package_Renaming_Declaration
1954 or else NT (N).Nkind = N_Procedure_Call_Statement
1955 or else NT (N).Nkind = N_Procedure_Instantiation
1956 or else NT (N).Nkind = N_Raise_Statement
1957 or else NT (N).Nkind = N_Requeue_Statement
1958 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration
1959 or else NT (N).Nkind = N_Subunit
1960 or else NT (N).Nkind = N_Variant_Part
1961 or else NT (N).Nkind = N_With_Clause);
1966 (N : Node_Id) return List_Id is
1968 pragma Assert (False
1969 or else NT (N).Nkind = N_Abort_Statement
1970 or else NT (N).Nkind = N_Use_Package_Clause);
1974 function Next_Entity
1975 (N : Node_Id) return Node_Id is
1977 pragma Assert (False
1978 or else NT (N).Nkind = N_Defining_Character_Literal
1979 or else NT (N).Nkind = N_Defining_Identifier
1980 or else NT (N).Nkind = N_Defining_Operator_Symbol);
1984 function Next_Named_Actual
1985 (N : Node_Id) return Node_Id is
1987 pragma Assert (False
1988 or else NT (N).Nkind = N_Parameter_Association);
1990 end Next_Named_Actual;
1992 function Next_Pragma
1993 (N : Node_Id) return Node_Id is
1995 pragma Assert (False
1996 or else NT (N).Nkind = N_Pragma);
2000 function Next_Rep_Item
2001 (N : Node_Id) return Node_Id is
2003 pragma Assert (False
2004 or else NT (N).Nkind = N_Attribute_Definition_Clause
2005 or else NT (N).Nkind = N_Enumeration_Representation_Clause
2006 or else NT (N).Nkind = N_Pragma
2007 or else NT (N).Nkind = N_Record_Representation_Clause);
2011 function Next_Use_Clause
2012 (N : Node_Id) return Node_Id is
2014 pragma Assert (False
2015 or else NT (N).Nkind = N_Use_Package_Clause
2016 or else NT (N).Nkind = N_Use_Type_Clause);
2018 end Next_Use_Clause;
2020 function No_Ctrl_Actions
2021 (N : Node_Id) return Boolean is
2023 pragma Assert (False
2024 or else NT (N).Nkind = N_Assignment_Statement);
2026 end No_Ctrl_Actions;
2028 function No_Elaboration_Check
2029 (N : Node_Id) return Boolean is
2031 pragma Assert (False
2032 or else NT (N).Nkind = N_Function_Call
2033 or else NT (N).Nkind = N_Procedure_Call_Statement);
2035 end No_Elaboration_Check;
2037 function No_Entities_Ref_In_Spec
2038 (N : Node_Id) return Boolean is
2040 pragma Assert (False
2041 or else NT (N).Nkind = N_With_Clause);
2043 end No_Entities_Ref_In_Spec;
2045 function No_Initialization
2046 (N : Node_Id) return Boolean is
2048 pragma Assert (False
2049 or else NT (N).Nkind = N_Allocator
2050 or else NT (N).Nkind = N_Object_Declaration);
2052 end No_Initialization;
2054 function No_Truncation
2055 (N : Node_Id) return Boolean is
2057 pragma Assert (False
2058 or else NT (N).Nkind = N_Unchecked_Type_Conversion);
2062 function Null_Present
2063 (N : Node_Id) return Boolean is
2065 pragma Assert (False
2066 or else NT (N).Nkind = N_Component_List
2067 or else NT (N).Nkind = N_Procedure_Specification
2068 or else NT (N).Nkind = N_Record_Definition);
2072 function Null_Exclusion_Present
2073 (N : Node_Id) return Boolean is
2075 pragma Assert (False
2076 or else NT (N).Nkind = N_Access_Definition
2077 or else NT (N).Nkind = N_Access_Function_Definition
2078 or else NT (N).Nkind = N_Access_Procedure_Definition
2079 or else NT (N).Nkind = N_Access_To_Object_Definition
2080 or else NT (N).Nkind = N_Allocator
2081 or else NT (N).Nkind = N_Component_Definition
2082 or else NT (N).Nkind = N_Derived_Type_Definition
2083 or else NT (N).Nkind = N_Discriminant_Specification
2084 or else NT (N).Nkind = N_Formal_Object_Declaration
2085 or else NT (N).Nkind = N_Function_Specification
2086 or else NT (N).Nkind = N_Object_Declaration
2087 or else NT (N).Nkind = N_Object_Renaming_Declaration
2088 or else NT (N).Nkind = N_Parameter_Specification
2089 or else NT (N).Nkind = N_Subtype_Declaration);
2091 end Null_Exclusion_Present;
2093 function Null_Record_Present
2094 (N : Node_Id) return Boolean is
2096 pragma Assert (False
2097 or else NT (N).Nkind = N_Aggregate
2098 or else NT (N).Nkind = N_Extension_Aggregate);
2100 end Null_Record_Present;
2102 function Object_Definition
2103 (N : Node_Id) return Node_Id is
2105 pragma Assert (False
2106 or else NT (N).Nkind = N_Object_Declaration);
2108 end Object_Definition;
2110 function Original_Discriminant
2111 (N : Node_Id) return Node_Id is
2113 pragma Assert (False
2114 or else NT (N).Nkind = N_Identifier);
2116 end Original_Discriminant;
2118 function Original_Entity
2119 (N : Node_Id) return Entity_Id is
2121 pragma Assert (False
2122 or else NT (N).Nkind = N_Integer_Literal
2123 or else NT (N).Nkind = N_Real_Literal);
2125 end Original_Entity;
2127 function Others_Discrete_Choices
2128 (N : Node_Id) return List_Id is
2130 pragma Assert (False
2131 or else NT (N).Nkind = N_Others_Choice);
2133 end Others_Discrete_Choices;
2135 function Out_Present
2136 (N : Node_Id) return Boolean is
2138 pragma Assert (False
2139 or else NT (N).Nkind = N_Formal_Object_Declaration
2140 or else NT (N).Nkind = N_Parameter_Specification);
2144 function Parameter_Associations
2145 (N : Node_Id) return List_Id is
2147 pragma Assert (False
2148 or else NT (N).Nkind = N_Entry_Call_Statement
2149 or else NT (N).Nkind = N_Function_Call
2150 or else NT (N).Nkind = N_Procedure_Call_Statement);
2152 end Parameter_Associations;
2154 function Parameter_List_Truncated
2155 (N : Node_Id) return Boolean is
2157 pragma Assert (False
2158 or else NT (N).Nkind = N_Function_Call
2159 or else NT (N).Nkind = N_Procedure_Call_Statement);
2161 end Parameter_List_Truncated;
2163 function Parameter_Specifications
2164 (N : Node_Id) return List_Id is
2166 pragma Assert (False
2167 or else NT (N).Nkind = N_Accept_Statement
2168 or else NT (N).Nkind = N_Access_Function_Definition
2169 or else NT (N).Nkind = N_Access_Procedure_Definition
2170 or else NT (N).Nkind = N_Entry_Body_Formal_Part
2171 or else NT (N).Nkind = N_Entry_Declaration
2172 or else NT (N).Nkind = N_Function_Specification
2173 or else NT (N).Nkind = N_Procedure_Specification);
2175 end Parameter_Specifications;
2177 function Parameter_Type
2178 (N : Node_Id) return Node_Id is
2180 pragma Assert (False
2181 or else NT (N).Nkind = N_Parameter_Specification);
2185 function Parent_Spec
2186 (N : Node_Id) return Node_Id is
2188 pragma Assert (False
2189 or else NT (N).Nkind = N_Function_Instantiation
2190 or else NT (N).Nkind = N_Generic_Function_Renaming_Declaration
2191 or else NT (N).Nkind = N_Generic_Package_Declaration
2192 or else NT (N).Nkind = N_Generic_Package_Renaming_Declaration
2193 or else NT (N).Nkind = N_Generic_Procedure_Renaming_Declaration
2194 or else NT (N).Nkind = N_Generic_Subprogram_Declaration
2195 or else NT (N).Nkind = N_Package_Declaration
2196 or else NT (N).Nkind = N_Package_Instantiation
2197 or else NT (N).Nkind = N_Package_Renaming_Declaration
2198 or else NT (N).Nkind = N_Procedure_Instantiation
2199 or else NT (N).Nkind = N_Subprogram_Declaration
2200 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration);
2204 function PPC_Enabled
2205 (N : Node_Id) return Boolean is
2207 pragma Assert (False
2208 or else NT (N).Nkind = N_Pragma);
2213 (N : Node_Id) return Node_Id is
2215 pragma Assert (False
2216 or else NT (N).Nkind = N_Component_Clause);
2220 function Pragma_Argument_Associations
2221 (N : Node_Id) return List_Id is
2223 pragma Assert (False
2224 or else NT (N).Nkind = N_Pragma);
2226 end Pragma_Argument_Associations;
2228 function Pragma_Identifier
2229 (N : Node_Id) return Node_Id is
2231 pragma Assert (False
2232 or else NT (N).Nkind = N_Pragma);
2234 end Pragma_Identifier;
2236 function Pragmas_After
2237 (N : Node_Id) return List_Id is
2239 pragma Assert (False
2240 or else NT (N).Nkind = N_Compilation_Unit_Aux
2241 or else NT (N).Nkind = N_Terminate_Alternative);
2245 function Pragmas_Before
2246 (N : Node_Id) return List_Id is
2248 pragma Assert (False
2249 or else NT (N).Nkind = N_Accept_Alternative
2250 or else NT (N).Nkind = N_Delay_Alternative
2251 or else NT (N).Nkind = N_Entry_Call_Alternative
2252 or else NT (N).Nkind = N_Mod_Clause
2253 or else NT (N).Nkind = N_Terminate_Alternative
2254 or else NT (N).Nkind = N_Triggering_Alternative);
2259 (N : Node_Id) return Node_Id is
2261 pragma Assert (False
2262 or else NT (N).Nkind = N_Attribute_Reference
2263 or else NT (N).Nkind = N_Expanded_Name
2264 or else NT (N).Nkind = N_Explicit_Dereference
2265 or else NT (N).Nkind = N_Indexed_Component
2266 or else NT (N).Nkind = N_Reference
2267 or else NT (N).Nkind = N_Selected_Component
2268 or else NT (N).Nkind = N_Slice);
2272 function Present_Expr
2273 (N : Node_Id) return Uint is
2275 pragma Assert (False
2276 or else NT (N).Nkind = N_Variant);
2281 (N : Node_Id) return Boolean is
2283 pragma Assert (False
2284 or else NT (N).Nkind = N_Component_Declaration
2285 or else NT (N).Nkind = N_Discriminant_Specification
2286 or else NT (N).Nkind = N_Exception_Declaration
2287 or else NT (N).Nkind = N_Formal_Object_Declaration
2288 or else NT (N).Nkind = N_Number_Declaration
2289 or else NT (N).Nkind = N_Object_Declaration
2290 or else NT (N).Nkind = N_Parameter_Specification);
2294 function Print_In_Hex
2295 (N : Node_Id) return Boolean is
2297 pragma Assert (False
2298 or else NT (N).Nkind = N_Integer_Literal);
2302 function Private_Declarations
2303 (N : Node_Id) return List_Id is
2305 pragma Assert (False
2306 or else NT (N).Nkind = N_Package_Specification
2307 or else NT (N).Nkind = N_Protected_Definition
2308 or else NT (N).Nkind = N_Task_Definition);
2310 end Private_Declarations;
2312 function Private_Present
2313 (N : Node_Id) return Boolean is
2315 pragma Assert (False
2316 or else NT (N).Nkind = N_Compilation_Unit
2317 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
2318 or else NT (N).Nkind = N_With_Clause);
2320 end Private_Present;
2322 function Procedure_To_Call
2323 (N : Node_Id) return Node_Id is
2325 pragma Assert (False
2326 or else NT (N).Nkind = N_Allocator
2327 or else NT (N).Nkind = N_Extended_Return_Statement
2328 or else NT (N).Nkind = N_Free_Statement
2329 or else NT (N).Nkind = N_Return_Statement);
2331 end Procedure_To_Call;
2333 function Proper_Body
2334 (N : Node_Id) return Node_Id is
2336 pragma Assert (False
2337 or else NT (N).Nkind = N_Subunit);
2341 function Protected_Definition
2342 (N : Node_Id) return Node_Id is
2344 pragma Assert (False
2345 or else NT (N).Nkind = N_Protected_Type_Declaration
2346 or else NT (N).Nkind = N_Single_Protected_Declaration);
2348 end Protected_Definition;
2350 function Protected_Present
2351 (N : Node_Id) return Boolean is
2353 pragma Assert (False
2354 or else NT (N).Nkind = N_Access_Function_Definition
2355 or else NT (N).Nkind = N_Access_Procedure_Definition
2356 or else NT (N).Nkind = N_Derived_Type_Definition
2357 or else NT (N).Nkind = N_Record_Definition);
2359 end Protected_Present;
2361 function Raises_Constraint_Error
2362 (N : Node_Id) return Boolean is
2364 pragma Assert (False
2365 or else NT (N).Nkind in N_Subexpr);
2367 end Raises_Constraint_Error;
2369 function Range_Constraint
2370 (N : Node_Id) return Node_Id is
2372 pragma Assert (False
2373 or else NT (N).Nkind = N_Delta_Constraint
2374 or else NT (N).Nkind = N_Digits_Constraint);
2376 end Range_Constraint;
2378 function Range_Expression
2379 (N : Node_Id) return Node_Id is
2381 pragma Assert (False
2382 or else NT (N).Nkind = N_Range_Constraint);
2384 end Range_Expression;
2386 function Real_Range_Specification
2387 (N : Node_Id) return Node_Id is
2389 pragma Assert (False
2390 or else NT (N).Nkind = N_Decimal_Fixed_Point_Definition
2391 or else NT (N).Nkind = N_Floating_Point_Definition
2392 or else NT (N).Nkind = N_Ordinary_Fixed_Point_Definition);
2394 end Real_Range_Specification;
2397 (N : Node_Id) return Ureal is
2399 pragma Assert (False
2400 or else NT (N).Nkind = N_Real_Literal);
2405 (N : Node_Id) return Uint is
2407 pragma Assert (False
2408 or else NT (N).Nkind = N_Raise_Constraint_Error
2409 or else NT (N).Nkind = N_Raise_Program_Error
2410 or else NT (N).Nkind = N_Raise_Storage_Error);
2414 function Record_Extension_Part
2415 (N : Node_Id) return Node_Id is
2417 pragma Assert (False
2418 or else NT (N).Nkind = N_Derived_Type_Definition);
2420 end Record_Extension_Part;
2422 function Redundant_Use
2423 (N : Node_Id) return Boolean is
2425 pragma Assert (False
2426 or else NT (N).Nkind = N_Attribute_Reference
2427 or else NT (N).Nkind = N_Expanded_Name
2428 or else NT (N).Nkind = N_Identifier);
2432 function Renaming_Exception
2433 (N : Node_Id) return Node_Id is
2435 pragma Assert (False
2436 or else NT (N).Nkind = N_Exception_Declaration);
2438 end Renaming_Exception;
2440 function Result_Definition
2441 (N : Node_Id) return Node_Id is
2443 pragma Assert (False
2444 or else NT (N).Nkind = N_Access_Function_Definition
2445 or else NT (N).Nkind = N_Function_Specification);
2447 end Result_Definition;
2449 function Return_Object_Declarations
2450 (N : Node_Id) return List_Id is
2452 pragma Assert (False
2453 or else NT (N).Nkind = N_Extended_Return_Statement);
2455 end Return_Object_Declarations;
2457 function Return_Statement_Entity
2458 (N : Node_Id) return Node_Id is
2460 pragma Assert (False
2461 or else NT (N).Nkind = N_Extended_Return_Statement
2462 or else NT (N).Nkind = N_Return_Statement);
2464 end Return_Statement_Entity;
2466 function Reverse_Present
2467 (N : Node_Id) return Boolean is
2469 pragma Assert (False
2470 or else NT (N).Nkind = N_Loop_Parameter_Specification);
2472 end Reverse_Present;
2475 (N : Node_Id) return Node_Id is
2477 pragma Assert (False
2478 or else NT (N).Nkind in N_Op
2479 or else NT (N).Nkind = N_And_Then
2480 or else NT (N).Nkind = N_In
2481 or else NT (N).Nkind = N_Not_In
2482 or else NT (N).Nkind = N_Or_Else);
2486 function Rounded_Result
2487 (N : Node_Id) return Boolean is
2489 pragma Assert (False
2490 or else NT (N).Nkind = N_Op_Divide
2491 or else NT (N).Nkind = N_Op_Multiply
2492 or else NT (N).Nkind = N_Type_Conversion);
2497 (N : Node_Id) return Node_Id is
2499 pragma Assert (False
2500 or else NT (N).Nkind = N_Defining_Character_Literal
2501 or else NT (N).Nkind = N_Defining_Identifier
2502 or else NT (N).Nkind = N_Defining_Operator_Symbol);
2506 function Select_Alternatives
2507 (N : Node_Id) return List_Id is
2509 pragma Assert (False
2510 or else NT (N).Nkind = N_Selective_Accept);
2512 end Select_Alternatives;
2514 function Selector_Name
2515 (N : Node_Id) return Node_Id is
2517 pragma Assert (False
2518 or else NT (N).Nkind = N_Expanded_Name
2519 or else NT (N).Nkind = N_Generic_Association
2520 or else NT (N).Nkind = N_Parameter_Association
2521 or else NT (N).Nkind = N_Selected_Component);
2525 function Selector_Names
2526 (N : Node_Id) return List_Id is
2528 pragma Assert (False
2529 or else NT (N).Nkind = N_Discriminant_Association);
2533 function Shift_Count_OK
2534 (N : Node_Id) return Boolean is
2536 pragma Assert (False
2537 or else NT (N).Nkind = N_Op_Rotate_Left
2538 or else NT (N).Nkind = N_Op_Rotate_Right
2539 or else NT (N).Nkind = N_Op_Shift_Left
2540 or else NT (N).Nkind = N_Op_Shift_Right
2541 or else NT (N).Nkind = N_Op_Shift_Right_Arithmetic);
2545 function Source_Type
2546 (N : Node_Id) return Entity_Id is
2548 pragma Assert (False
2549 or else NT (N).Nkind = N_Validate_Unchecked_Conversion);
2553 function Specification
2554 (N : Node_Id) return Node_Id is
2556 pragma Assert (False
2557 or else NT (N).Nkind = N_Abstract_Subprogram_Declaration
2558 or else NT (N).Nkind = N_Formal_Abstract_Subprogram_Declaration
2559 or else NT (N).Nkind = N_Formal_Concrete_Subprogram_Declaration
2560 or else NT (N).Nkind = N_Generic_Package_Declaration
2561 or else NT (N).Nkind = N_Generic_Subprogram_Declaration
2562 or else NT (N).Nkind = N_Package_Declaration
2563 or else NT (N).Nkind = N_Subprogram_Body
2564 or else NT (N).Nkind = N_Subprogram_Body_Stub
2565 or else NT (N).Nkind = N_Subprogram_Declaration
2566 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration);
2571 (N : Node_Id) return List_Id is
2573 pragma Assert (False
2574 or else NT (N).Nkind = N_Abortable_Part
2575 or else NT (N).Nkind = N_Accept_Alternative
2576 or else NT (N).Nkind = N_Case_Statement_Alternative
2577 or else NT (N).Nkind = N_Delay_Alternative
2578 or else NT (N).Nkind = N_Entry_Call_Alternative
2579 or else NT (N).Nkind = N_Exception_Handler
2580 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements
2581 or else NT (N).Nkind = N_Loop_Statement
2582 or else NT (N).Nkind = N_Triggering_Alternative);
2586 function Static_Processing_OK
2587 (N : Node_Id) return Boolean is
2589 pragma Assert (False
2590 or else NT (N).Nkind = N_Aggregate);
2592 end Static_Processing_OK;
2594 function Storage_Pool
2595 (N : Node_Id) return Node_Id is
2597 pragma Assert (False
2598 or else NT (N).Nkind = N_Allocator
2599 or else NT (N).Nkind = N_Extended_Return_Statement
2600 or else NT (N).Nkind = N_Free_Statement
2601 or else NT (N).Nkind = N_Return_Statement);
2606 (N : Node_Id) return String_Id is
2608 pragma Assert (False
2609 or else NT (N).Nkind = N_Operator_Symbol
2610 or else NT (N).Nkind = N_String_Literal);
2614 function Subtype_Indication
2615 (N : Node_Id) return Node_Id is
2617 pragma Assert (False
2618 or else NT (N).Nkind = N_Access_To_Object_Definition
2619 or else NT (N).Nkind = N_Component_Definition
2620 or else NT (N).Nkind = N_Derived_Type_Definition
2621 or else NT (N).Nkind = N_Private_Extension_Declaration
2622 or else NT (N).Nkind = N_Subtype_Declaration);
2624 end Subtype_Indication;
2626 function Suppress_Loop_Warnings
2627 (N : Node_Id) return Boolean is
2629 pragma Assert (False
2630 or else NT (N).Nkind = N_Loop_Statement);
2632 end Suppress_Loop_Warnings;
2634 function Subtype_Mark
2635 (N : Node_Id) return Node_Id is
2637 pragma Assert (False
2638 or else NT (N).Nkind = N_Access_Definition
2639 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
2640 or else NT (N).Nkind = N_Formal_Object_Declaration
2641 or else NT (N).Nkind = N_Object_Renaming_Declaration
2642 or else NT (N).Nkind = N_Qualified_Expression
2643 or else NT (N).Nkind = N_Subtype_Indication
2644 or else NT (N).Nkind = N_Type_Conversion
2645 or else NT (N).Nkind = N_Unchecked_Type_Conversion);
2649 function Subtype_Marks
2650 (N : Node_Id) return List_Id is
2652 pragma Assert (False
2653 or else NT (N).Nkind = N_Unconstrained_Array_Definition
2654 or else NT (N).Nkind = N_Use_Type_Clause);
2658 function Synchronized_Present
2659 (N : Node_Id) return Boolean is
2661 pragma Assert (False
2662 or else NT (N).Nkind = N_Derived_Type_Definition
2663 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
2664 or else NT (N).Nkind = N_Private_Extension_Declaration
2665 or else NT (N).Nkind = N_Record_Definition);
2667 end Synchronized_Present;
2669 function Tagged_Present
2670 (N : Node_Id) return Boolean is
2672 pragma Assert (False
2673 or else NT (N).Nkind = N_Formal_Private_Type_Definition
2674 or else NT (N).Nkind = N_Incomplete_Type_Declaration
2675 or else NT (N).Nkind = N_Private_Type_Declaration
2676 or else NT (N).Nkind = N_Record_Definition);
2680 function Target_Type
2681 (N : Node_Id) return Entity_Id is
2683 pragma Assert (False
2684 or else NT (N).Nkind = N_Validate_Unchecked_Conversion);
2688 function Task_Definition
2689 (N : Node_Id) return Node_Id is
2691 pragma Assert (False
2692 or else NT (N).Nkind = N_Single_Task_Declaration
2693 or else NT (N).Nkind = N_Task_Type_Declaration);
2695 end Task_Definition;
2697 function Task_Present
2698 (N : Node_Id) return Boolean is
2700 pragma Assert (False
2701 or else NT (N).Nkind = N_Derived_Type_Definition
2702 or else NT (N).Nkind = N_Record_Definition);
2706 function Then_Actions
2707 (N : Node_Id) return List_Id is
2709 pragma Assert (False
2710 or else NT (N).Nkind = N_Conditional_Expression);
2714 function Then_Statements
2715 (N : Node_Id) return List_Id is
2717 pragma Assert (False
2718 or else NT (N).Nkind = N_Elsif_Part
2719 or else NT (N).Nkind = N_If_Statement);
2721 end Then_Statements;
2723 function Treat_Fixed_As_Integer
2724 (N : Node_Id) return Boolean is
2726 pragma Assert (False
2727 or else NT (N).Nkind = N_Op_Divide
2728 or else NT (N).Nkind = N_Op_Mod
2729 or else NT (N).Nkind = N_Op_Multiply
2730 or else NT (N).Nkind = N_Op_Rem);
2732 end Treat_Fixed_As_Integer;
2734 function Triggering_Alternative
2735 (N : Node_Id) return Node_Id is
2737 pragma Assert (False
2738 or else NT (N).Nkind = N_Asynchronous_Select);
2740 end Triggering_Alternative;
2742 function Triggering_Statement
2743 (N : Node_Id) return Node_Id is
2745 pragma Assert (False
2746 or else NT (N).Nkind = N_Triggering_Alternative);
2748 end Triggering_Statement;
2751 (N : Node_Id) return Elist_Id is
2753 pragma Assert (False
2754 or else NT (N).Nkind = N_Freeze_Entity);
2758 function Type_Definition
2759 (N : Node_Id) return Node_Id is
2761 pragma Assert (False
2762 or else NT (N).Nkind = N_Full_Type_Declaration);
2764 end Type_Definition;
2767 (N : Node_Id) return Node_Id is
2769 pragma Assert (False
2770 or else NT (N).Nkind = N_Compilation_Unit);
2774 function Unknown_Discriminants_Present
2775 (N : Node_Id) return Boolean is
2777 pragma Assert (False
2778 or else NT (N).Nkind = N_Formal_Type_Declaration
2779 or else NT (N).Nkind = N_Incomplete_Type_Declaration
2780 or else NT (N).Nkind = N_Private_Extension_Declaration
2781 or else NT (N).Nkind = N_Private_Type_Declaration);
2783 end Unknown_Discriminants_Present;
2785 function Unreferenced_In_Spec
2786 (N : Node_Id) return Boolean is
2788 pragma Assert (False
2789 or else NT (N).Nkind = N_With_Clause);
2791 end Unreferenced_In_Spec;
2793 function Variant_Part
2794 (N : Node_Id) return Node_Id is
2796 pragma Assert (False
2797 or else NT (N).Nkind = N_Component_List);
2802 (N : Node_Id) return List_Id is
2804 pragma Assert (False
2805 or else NT (N).Nkind = N_Variant_Part);
2809 function Visible_Declarations
2810 (N : Node_Id) return List_Id is
2812 pragma Assert (False
2813 or else NT (N).Nkind = N_Package_Specification
2814 or else NT (N).Nkind = N_Protected_Definition
2815 or else NT (N).Nkind = N_Task_Definition);
2817 end Visible_Declarations;
2819 function Was_Originally_Stub
2820 (N : Node_Id) return Boolean is
2822 pragma Assert (False
2823 or else NT (N).Nkind = N_Package_Body
2824 or else NT (N).Nkind = N_Protected_Body
2825 or else NT (N).Nkind = N_Subprogram_Body
2826 or else NT (N).Nkind = N_Task_Body);
2828 end Was_Originally_Stub;
2830 function Zero_Cost_Handling
2831 (N : Node_Id) return Boolean is
2833 pragma Assert (False
2834 or else NT (N).Nkind = N_Exception_Handler
2835 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements);
2837 end Zero_Cost_Handling;
2839 --------------------------
2840 -- Field Set Procedures --
2841 --------------------------
2843 procedure Set_ABE_Is_Certain
2844 (N : Node_Id; Val : Boolean := True) is
2846 pragma Assert (False
2847 or else NT (N).Nkind = N_Formal_Package_Declaration
2848 or else NT (N).Nkind = N_Function_Call
2849 or else NT (N).Nkind = N_Function_Instantiation
2850 or else NT (N).Nkind = N_Package_Instantiation
2851 or else NT (N).Nkind = N_Procedure_Call_Statement
2852 or else NT (N).Nkind = N_Procedure_Instantiation);
2853 Set_Flag18 (N, Val);
2854 end Set_ABE_Is_Certain;
2856 procedure Set_Abort_Present
2857 (N : Node_Id; Val : Boolean := True) is
2859 pragma Assert (False
2860 or else NT (N).Nkind = N_Requeue_Statement);
2861 Set_Flag15 (N, Val);
2862 end Set_Abort_Present;
2864 procedure Set_Abortable_Part
2865 (N : Node_Id; Val : Node_Id) is
2867 pragma Assert (False
2868 or else NT (N).Nkind = N_Asynchronous_Select);
2869 Set_Node2_With_Parent (N, Val);
2870 end Set_Abortable_Part;
2872 procedure Set_Abstract_Present
2873 (N : Node_Id; Val : Boolean := True) is
2875 pragma Assert (False
2876 or else NT (N).Nkind = N_Derived_Type_Definition
2877 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
2878 or else NT (N).Nkind = N_Formal_Private_Type_Definition
2879 or else NT (N).Nkind = N_Private_Extension_Declaration
2880 or else NT (N).Nkind = N_Private_Type_Declaration
2881 or else NT (N).Nkind = N_Record_Definition);
2883 end Set_Abstract_Present;
2885 procedure Set_Accept_Handler_Records
2886 (N : Node_Id; Val : List_Id) is
2888 pragma Assert (False
2889 or else NT (N).Nkind = N_Accept_Alternative);
2890 Set_List5 (N, Val); -- semantic field, no parent set
2891 end Set_Accept_Handler_Records;
2893 procedure Set_Accept_Statement
2894 (N : Node_Id; Val : Node_Id) is
2896 pragma Assert (False
2897 or else NT (N).Nkind = N_Accept_Alternative);
2898 Set_Node2_With_Parent (N, Val);
2899 end Set_Accept_Statement;
2901 procedure Set_Access_Definition
2902 (N : Node_Id; Val : Node_Id) is
2904 pragma Assert (False
2905 or else NT (N).Nkind = N_Component_Definition
2906 or else NT (N).Nkind = N_Formal_Object_Declaration
2907 or else NT (N).Nkind = N_Object_Renaming_Declaration);
2908 Set_Node3_With_Parent (N, Val);
2909 end Set_Access_Definition;
2911 procedure Set_Access_To_Subprogram_Definition
2912 (N : Node_Id; Val : Node_Id) is
2914 pragma Assert (False
2915 or else NT (N).Nkind = N_Access_Definition);
2916 Set_Node3_With_Parent (N, Val);
2917 end Set_Access_To_Subprogram_Definition;
2919 procedure Set_Access_Types_To_Process
2920 (N : Node_Id; Val : Elist_Id) is
2922 pragma Assert (False
2923 or else NT (N).Nkind = N_Freeze_Entity);
2924 Set_Elist2 (N, Val); -- semantic field, no parent set
2925 end Set_Access_Types_To_Process;
2927 procedure Set_Actions
2928 (N : Node_Id; Val : List_Id) is
2930 pragma Assert (False
2931 or else NT (N).Nkind = N_And_Then
2932 or else NT (N).Nkind = N_Compilation_Unit_Aux
2933 or else NT (N).Nkind = N_Freeze_Entity
2934 or else NT (N).Nkind = N_Or_Else);
2935 Set_List1_With_Parent (N, Val);
2938 procedure Set_Activation_Chain_Entity
2939 (N : Node_Id; Val : Node_Id) is
2941 pragma Assert (False
2942 or else NT (N).Nkind = N_Block_Statement
2943 or else NT (N).Nkind = N_Entry_Body
2944 or else NT (N).Nkind = N_Generic_Package_Declaration
2945 or else NT (N).Nkind = N_Package_Declaration
2946 or else NT (N).Nkind = N_Subprogram_Body
2947 or else NT (N).Nkind = N_Task_Body);
2948 Set_Node3 (N, Val); -- semantic field, no parent set
2949 end Set_Activation_Chain_Entity;
2951 procedure Set_Acts_As_Spec
2952 (N : Node_Id; Val : Boolean := True) is
2954 pragma Assert (False
2955 or else NT (N).Nkind = N_Compilation_Unit
2956 or else NT (N).Nkind = N_Subprogram_Body);
2958 end Set_Acts_As_Spec;
2960 procedure Set_Actual_Designated_Subtype
2961 (N : Node_Id; Val : Node_Id) is
2963 pragma Assert (False
2964 or else NT (N).Nkind = N_Explicit_Dereference
2965 or else NT (N).Nkind = N_Free_Statement);
2967 end Set_Actual_Designated_Subtype;
2969 procedure Set_Address_Warning_Posted
2970 (N : Node_Id; Val : Boolean := True) is
2972 pragma Assert (False
2973 or else NT (N).Nkind = N_Attribute_Definition_Clause);
2974 Set_Flag18 (N, Val);
2975 end Set_Address_Warning_Posted;
2977 procedure Set_Aggregate_Bounds
2978 (N : Node_Id; Val : Node_Id) is
2980 pragma Assert (False
2981 or else NT (N).Nkind = N_Aggregate);
2982 Set_Node3 (N, Val); -- semantic field, no parent set
2983 end Set_Aggregate_Bounds;
2985 procedure Set_Aliased_Present
2986 (N : Node_Id; Val : Boolean := True) is
2988 pragma Assert (False
2989 or else NT (N).Nkind = N_Component_Definition
2990 or else NT (N).Nkind = N_Object_Declaration);
2992 end Set_Aliased_Present;
2994 procedure Set_All_Others
2995 (N : Node_Id; Val : Boolean := True) is
2997 pragma Assert (False
2998 or else NT (N).Nkind = N_Others_Choice);
2999 Set_Flag11 (N, Val);
3002 procedure Set_All_Present
3003 (N : Node_Id; Val : Boolean := True) is
3005 pragma Assert (False
3006 or else NT (N).Nkind = N_Access_Definition
3007 or else NT (N).Nkind = N_Access_To_Object_Definition);
3008 Set_Flag15 (N, Val);
3009 end Set_All_Present;
3011 procedure Set_Alternatives
3012 (N : Node_Id; Val : List_Id) is
3014 pragma Assert (False
3015 or else NT (N).Nkind = N_Case_Statement);
3016 Set_List4_With_Parent (N, Val);
3017 end Set_Alternatives;
3019 procedure Set_Ancestor_Part
3020 (N : Node_Id; Val : Node_Id) is
3022 pragma Assert (False
3023 or else NT (N).Nkind = N_Extension_Aggregate);
3024 Set_Node3_With_Parent (N, Val);
3025 end Set_Ancestor_Part;
3027 procedure Set_Array_Aggregate
3028 (N : Node_Id; Val : Node_Id) is
3030 pragma Assert (False
3031 or else NT (N).Nkind = N_Enumeration_Representation_Clause);
3032 Set_Node3_With_Parent (N, Val);
3033 end Set_Array_Aggregate;
3035 procedure Set_Assignment_OK
3036 (N : Node_Id; Val : Boolean := True) is
3038 pragma Assert (False
3039 or else NT (N).Nkind = N_Object_Declaration
3040 or else NT (N).Nkind in N_Subexpr);
3041 Set_Flag15 (N, Val);
3042 end Set_Assignment_OK;
3044 procedure Set_Associated_Node
3045 (N : Node_Id; Val : Node_Id) is
3047 pragma Assert (False
3048 or else NT (N).Nkind in N_Has_Entity
3049 or else NT (N).Nkind = N_Aggregate
3050 or else NT (N).Nkind = N_Extension_Aggregate
3051 or else NT (N).Nkind = N_Selected_Component);
3052 Set_Node4 (N, Val); -- semantic field, no parent set
3053 end Set_Associated_Node;
3055 procedure Set_At_End_Proc
3056 (N : Node_Id; Val : Node_Id) is
3058 pragma Assert (False
3059 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements);
3061 end Set_At_End_Proc;
3063 procedure Set_Attribute_Name
3064 (N : Node_Id; Val : Name_Id) is
3066 pragma Assert (False
3067 or else NT (N).Nkind = N_Attribute_Reference);
3069 end Set_Attribute_Name;
3071 procedure Set_Aux_Decls_Node
3072 (N : Node_Id; Val : Node_Id) is
3074 pragma Assert (False
3075 or else NT (N).Nkind = N_Compilation_Unit);
3076 Set_Node5_With_Parent (N, Val);
3077 end Set_Aux_Decls_Node;
3079 procedure Set_Backwards_OK
3080 (N : Node_Id; Val : Boolean := True) is
3082 pragma Assert (False
3083 or else NT (N).Nkind = N_Assignment_Statement);
3085 end Set_Backwards_OK;
3087 procedure Set_Bad_Is_Detected
3088 (N : Node_Id; Val : Boolean := True) is
3090 pragma Assert (False
3091 or else NT (N).Nkind = N_Subprogram_Body);
3092 Set_Flag15 (N, Val);
3093 end Set_Bad_Is_Detected;
3095 procedure Set_Body_Required
3096 (N : Node_Id; Val : Boolean := True) is
3098 pragma Assert (False
3099 or else NT (N).Nkind = N_Compilation_Unit);
3100 Set_Flag13 (N, Val);
3101 end Set_Body_Required;
3103 procedure Set_Body_To_Inline
3104 (N : Node_Id; Val : Node_Id) is
3106 pragma Assert (False
3107 or else NT (N).Nkind = N_Subprogram_Declaration);
3109 end Set_Body_To_Inline;
3111 procedure Set_Box_Present
3112 (N : Node_Id; Val : Boolean := True) is
3114 pragma Assert (False
3115 or else NT (N).Nkind = N_Component_Association
3116 or else NT (N).Nkind = N_Formal_Abstract_Subprogram_Declaration
3117 or else NT (N).Nkind = N_Formal_Concrete_Subprogram_Declaration
3118 or else NT (N).Nkind = N_Formal_Package_Declaration
3119 or else NT (N).Nkind = N_Generic_Association);
3120 Set_Flag15 (N, Val);
3121 end Set_Box_Present;
3123 procedure Set_By_Ref
3124 (N : Node_Id; Val : Boolean := True) is
3126 pragma Assert (False
3127 or else NT (N).Nkind = N_Extended_Return_Statement
3128 or else NT (N).Nkind = N_Return_Statement);
3132 procedure Set_Char_Literal_Value
3133 (N : Node_Id; Val : Uint) is
3135 pragma Assert (False
3136 or else NT (N).Nkind = N_Character_Literal);
3138 end Set_Char_Literal_Value;
3141 (N : Node_Id; Val : Name_Id) is
3143 pragma Assert (False
3144 or else NT (N).Nkind in N_Has_Chars);
3148 procedure Set_Check_Address_Alignment
3149 (N : Node_Id; Val : Boolean := True) is
3151 pragma Assert (False
3152 or else NT (N).Nkind = N_Attribute_Definition_Clause);
3153 Set_Flag11 (N, Val);
3154 end Set_Check_Address_Alignment;
3156 procedure Set_Choice_Parameter
3157 (N : Node_Id; Val : Node_Id) is
3159 pragma Assert (False
3160 or else NT (N).Nkind = N_Exception_Handler);
3161 Set_Node2_With_Parent (N, Val);
3162 end Set_Choice_Parameter;
3164 procedure Set_Choices
3165 (N : Node_Id; Val : List_Id) is
3167 pragma Assert (False
3168 or else NT (N).Nkind = N_Component_Association);
3169 Set_List1_With_Parent (N, Val);
3172 procedure Set_Coextensions
3173 (N : Node_Id; Val : Elist_Id) is
3175 pragma Assert (False
3176 or else NT (N).Nkind = N_Allocator);
3177 Set_Elist4 (N, Val);
3178 end Set_Coextensions;
3180 procedure Set_Comes_From_Extended_Return_Statement
3181 (N : Node_Id; Val : Boolean := True) is
3183 pragma Assert (False
3184 or else NT (N).Nkind = N_Return_Statement);
3185 Set_Flag18 (N, Val);
3186 end Set_Comes_From_Extended_Return_Statement;
3188 procedure Set_Compile_Time_Known_Aggregate
3189 (N : Node_Id; Val : Boolean := True) is
3191 pragma Assert (False
3192 or else NT (N).Nkind = N_Aggregate);
3193 Set_Flag18 (N, Val);
3194 end Set_Compile_Time_Known_Aggregate;
3196 procedure Set_Component_Associations
3197 (N : Node_Id; Val : List_Id) is
3199 pragma Assert (False
3200 or else NT (N).Nkind = N_Aggregate
3201 or else NT (N).Nkind = N_Extension_Aggregate);
3202 Set_List2_With_Parent (N, Val);
3203 end Set_Component_Associations;
3205 procedure Set_Component_Clauses
3206 (N : Node_Id; Val : List_Id) is
3208 pragma Assert (False
3209 or else NT (N).Nkind = N_Record_Representation_Clause);
3210 Set_List3_With_Parent (N, Val);
3211 end Set_Component_Clauses;
3213 procedure Set_Component_Definition
3214 (N : Node_Id; Val : Node_Id) is
3216 pragma Assert (False
3217 or else NT (N).Nkind = N_Component_Declaration
3218 or else NT (N).Nkind = N_Constrained_Array_Definition
3219 or else NT (N).Nkind = N_Unconstrained_Array_Definition);
3220 Set_Node4_With_Parent (N, Val);
3221 end Set_Component_Definition;
3223 procedure Set_Component_Items
3224 (N : Node_Id; Val : List_Id) is
3226 pragma Assert (False
3227 or else NT (N).Nkind = N_Component_List);
3228 Set_List3_With_Parent (N, Val);
3229 end Set_Component_Items;
3231 procedure Set_Component_List
3232 (N : Node_Id; Val : Node_Id) is
3234 pragma Assert (False
3235 or else NT (N).Nkind = N_Record_Definition
3236 or else NT (N).Nkind = N_Variant);
3237 Set_Node1_With_Parent (N, Val);
3238 end Set_Component_List;
3240 procedure Set_Component_Name
3241 (N : Node_Id; Val : Node_Id) is
3243 pragma Assert (False
3244 or else NT (N).Nkind = N_Component_Clause);
3245 Set_Node1_With_Parent (N, Val);
3246 end Set_Component_Name;
3248 procedure Set_Condition
3249 (N : Node_Id; Val : Node_Id) is
3251 pragma Assert (False
3252 or else NT (N).Nkind = N_Accept_Alternative
3253 or else NT (N).Nkind = N_Delay_Alternative
3254 or else NT (N).Nkind = N_Elsif_Part
3255 or else NT (N).Nkind = N_Entry_Body_Formal_Part
3256 or else NT (N).Nkind = N_Exit_Statement
3257 or else NT (N).Nkind = N_If_Statement
3258 or else NT (N).Nkind = N_Iteration_Scheme
3259 or else NT (N).Nkind = N_Raise_Constraint_Error
3260 or else NT (N).Nkind = N_Raise_Program_Error
3261 or else NT (N).Nkind = N_Raise_Storage_Error
3262 or else NT (N).Nkind = N_Terminate_Alternative);
3263 Set_Node1_With_Parent (N, Val);
3266 procedure Set_Condition_Actions
3267 (N : Node_Id; Val : List_Id) is
3269 pragma Assert (False
3270 or else NT (N).Nkind = N_Elsif_Part
3271 or else NT (N).Nkind = N_Iteration_Scheme);
3272 Set_List3 (N, Val); -- semantic field, no parent set
3273 end Set_Condition_Actions;
3275 procedure Set_Config_Pragmas
3276 (N : Node_Id; Val : List_Id) is
3278 pragma Assert (False
3279 or else NT (N).Nkind = N_Compilation_Unit_Aux);
3280 Set_List4_With_Parent (N, Val);
3281 end Set_Config_Pragmas;
3283 procedure Set_Constant_Present
3284 (N : Node_Id; Val : Boolean := True) is
3286 pragma Assert (False
3287 or else NT (N).Nkind = N_Access_Definition
3288 or else NT (N).Nkind = N_Access_To_Object_Definition
3289 or else NT (N).Nkind = N_Object_Declaration);
3290 Set_Flag17 (N, Val);
3291 end Set_Constant_Present;
3293 procedure Set_Constraint
3294 (N : Node_Id; Val : Node_Id) is
3296 pragma Assert (False
3297 or else NT (N).Nkind = N_Subtype_Indication);
3298 Set_Node3_With_Parent (N, Val);
3301 procedure Set_Constraints
3302 (N : Node_Id; Val : List_Id) is
3304 pragma Assert (False
3305 or else NT (N).Nkind = N_Index_Or_Discriminant_Constraint);
3306 Set_List1_With_Parent (N, Val);
3307 end Set_Constraints;
3309 procedure Set_Context_Installed
3310 (N : Node_Id; Val : Boolean := True) is
3312 pragma Assert (False
3313 or else NT (N).Nkind = N_With_Clause);
3314 Set_Flag13 (N, Val);
3315 end Set_Context_Installed;
3317 procedure Set_Context_Items
3318 (N : Node_Id; Val : List_Id) is
3320 pragma Assert (False
3321 or else NT (N).Nkind = N_Compilation_Unit);
3322 Set_List1_With_Parent (N, Val);
3323 end Set_Context_Items;
3325 procedure Set_Controlling_Argument
3326 (N : Node_Id; Val : Node_Id) is
3328 pragma Assert (False
3329 or else NT (N).Nkind = N_Function_Call
3330 or else NT (N).Nkind = N_Procedure_Call_Statement);
3331 Set_Node1 (N, Val); -- semantic field, no parent set
3332 end Set_Controlling_Argument;
3334 procedure Set_Conversion_OK
3335 (N : Node_Id; Val : Boolean := True) is
3337 pragma Assert (False
3338 or else NT (N).Nkind = N_Type_Conversion);
3339 Set_Flag14 (N, Val);
3340 end Set_Conversion_OK;
3342 procedure Set_Corresponding_Body
3343 (N : Node_Id; Val : Node_Id) is
3345 pragma Assert (False
3346 or else NT (N).Nkind = N_Entry_Declaration
3347 or else NT (N).Nkind = N_Generic_Package_Declaration
3348 or else NT (N).Nkind = N_Generic_Subprogram_Declaration
3349 or else NT (N).Nkind = N_Package_Body_Stub
3350 or else NT (N).Nkind = N_Package_Declaration
3351 or else NT (N).Nkind = N_Protected_Body_Stub
3352 or else NT (N).Nkind = N_Protected_Type_Declaration
3353 or else NT (N).Nkind = N_Subprogram_Body_Stub
3354 or else NT (N).Nkind = N_Subprogram_Declaration
3355 or else NT (N).Nkind = N_Task_Body_Stub
3356 or else NT (N).Nkind = N_Task_Type_Declaration);
3357 Set_Node5 (N, Val); -- semantic field, no parent set
3358 end Set_Corresponding_Body;
3360 procedure Set_Corresponding_Formal_Spec
3361 (N : Node_Id; Val : Node_Id) is
3363 pragma Assert (False
3364 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration);
3365 Set_Node3 (N, Val); -- semantic field, no parent set
3366 end Set_Corresponding_Formal_Spec;
3368 procedure Set_Corresponding_Generic_Association
3369 (N : Node_Id; Val : Node_Id) is
3371 pragma Assert (False
3372 or else NT (N).Nkind = N_Object_Declaration
3373 or else NT (N).Nkind = N_Object_Renaming_Declaration);
3374 Set_Node5 (N, Val); -- semantic field, no parent set
3375 end Set_Corresponding_Generic_Association;
3377 procedure Set_Corresponding_Integer_Value
3378 (N : Node_Id; Val : Uint) is
3380 pragma Assert (False
3381 or else NT (N).Nkind = N_Real_Literal);
3382 Set_Uint4 (N, Val); -- semantic field, no parent set
3383 end Set_Corresponding_Integer_Value;
3385 procedure Set_Corresponding_Spec
3386 (N : Node_Id; Val : Node_Id) is
3388 pragma Assert (False
3389 or else NT (N).Nkind = N_Package_Body
3390 or else NT (N).Nkind = N_Protected_Body
3391 or else NT (N).Nkind = N_Subprogram_Body
3392 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration
3393 or else NT (N).Nkind = N_Task_Body
3394 or else NT (N).Nkind = N_With_Clause);
3395 Set_Node5 (N, Val); -- semantic field, no parent set
3396 end Set_Corresponding_Spec;
3398 procedure Set_Corresponding_Stub
3399 (N : Node_Id; Val : Node_Id) is
3401 pragma Assert (False
3402 or else NT (N).Nkind = N_Subunit);
3404 end Set_Corresponding_Stub;
3406 procedure Set_Dcheck_Function
3407 (N : Node_Id; Val : Entity_Id) is
3409 pragma Assert (False
3410 or else NT (N).Nkind = N_Variant);
3411 Set_Node5 (N, Val); -- semantic field, no parent set
3412 end Set_Dcheck_Function;
3414 procedure Set_Debug_Statement
3415 (N : Node_Id; Val : Node_Id) is
3417 pragma Assert (False
3418 or else NT (N).Nkind = N_Pragma);
3419 Set_Node3_With_Parent (N, Val);
3420 end Set_Debug_Statement;
3422 procedure Set_Declarations
3423 (N : Node_Id; Val : List_Id) is
3425 pragma Assert (False
3426 or else NT (N).Nkind = N_Accept_Statement
3427 or else NT (N).Nkind = N_Block_Statement
3428 or else NT (N).Nkind = N_Compilation_Unit_Aux
3429 or else NT (N).Nkind = N_Entry_Body
3430 or else NT (N).Nkind = N_Package_Body
3431 or else NT (N).Nkind = N_Protected_Body
3432 or else NT (N).Nkind = N_Subprogram_Body
3433 or else NT (N).Nkind = N_Task_Body);
3434 Set_List2_With_Parent (N, Val);
3435 end Set_Declarations;
3437 procedure Set_Default_Expression
3438 (N : Node_Id; Val : Node_Id) is
3440 pragma Assert (False
3441 or else NT (N).Nkind = N_Formal_Object_Declaration
3442 or else NT (N).Nkind = N_Parameter_Specification);
3443 Set_Node5 (N, Val); -- semantic field, no parent set
3444 end Set_Default_Expression;
3446 procedure Set_Default_Name
3447 (N : Node_Id; Val : Node_Id) is
3449 pragma Assert (False
3450 or else NT (N).Nkind = N_Formal_Abstract_Subprogram_Declaration
3451 or else NT (N).Nkind = N_Formal_Concrete_Subprogram_Declaration);
3452 Set_Node2_With_Parent (N, Val);
3453 end Set_Default_Name;
3455 procedure Set_Defining_Identifier
3456 (N : Node_Id; Val : Entity_Id) is
3458 pragma Assert (False
3459 or else NT (N).Nkind = N_Component_Declaration
3460 or else NT (N).Nkind = N_Defining_Program_Unit_Name
3461 or else NT (N).Nkind = N_Discriminant_Specification
3462 or else NT (N).Nkind = N_Entry_Body
3463 or else NT (N).Nkind = N_Entry_Declaration
3464 or else NT (N).Nkind = N_Entry_Index_Specification
3465 or else NT (N).Nkind = N_Exception_Declaration
3466 or else NT (N).Nkind = N_Exception_Renaming_Declaration
3467 or else NT (N).Nkind = N_Formal_Object_Declaration
3468 or else NT (N).Nkind = N_Formal_Package_Declaration
3469 or else NT (N).Nkind = N_Formal_Type_Declaration
3470 or else NT (N).Nkind = N_Full_Type_Declaration
3471 or else NT (N).Nkind = N_Implicit_Label_Declaration
3472 or else NT (N).Nkind = N_Incomplete_Type_Declaration
3473 or else NT (N).Nkind = N_Loop_Parameter_Specification
3474 or else NT (N).Nkind = N_Number_Declaration
3475 or else NT (N).Nkind = N_Object_Declaration
3476 or else NT (N).Nkind = N_Object_Renaming_Declaration
3477 or else NT (N).Nkind = N_Package_Body_Stub
3478 or else NT (N).Nkind = N_Parameter_Specification
3479 or else NT (N).Nkind = N_Private_Extension_Declaration
3480 or else NT (N).Nkind = N_Private_Type_Declaration
3481 or else NT (N).Nkind = N_Protected_Body
3482 or else NT (N).Nkind = N_Protected_Body_Stub
3483 or else NT (N).Nkind = N_Protected_Type_Declaration
3484 or else NT (N).Nkind = N_Single_Protected_Declaration
3485 or else NT (N).Nkind = N_Single_Task_Declaration
3486 or else NT (N).Nkind = N_Subtype_Declaration
3487 or else NT (N).Nkind = N_Task_Body
3488 or else NT (N).Nkind = N_Task_Body_Stub
3489 or else NT (N).Nkind = N_Task_Type_Declaration);
3490 Set_Node1_With_Parent (N, Val);
3491 end Set_Defining_Identifier;
3493 procedure Set_Defining_Unit_Name
3494 (N : Node_Id; Val : Node_Id) is
3496 pragma Assert (False
3497 or else NT (N).Nkind = N_Function_Instantiation
3498 or else NT (N).Nkind = N_Function_Specification
3499 or else NT (N).Nkind = N_Generic_Function_Renaming_Declaration
3500 or else NT (N).Nkind = N_Generic_Package_Renaming_Declaration
3501 or else NT (N).Nkind = N_Generic_Procedure_Renaming_Declaration
3502 or else NT (N).Nkind = N_Package_Body
3503 or else NT (N).Nkind = N_Package_Instantiation
3504 or else NT (N).Nkind = N_Package_Renaming_Declaration
3505 or else NT (N).Nkind = N_Package_Specification
3506 or else NT (N).Nkind = N_Procedure_Instantiation
3507 or else NT (N).Nkind = N_Procedure_Specification);
3508 Set_Node1_With_Parent (N, Val);
3509 end Set_Defining_Unit_Name;
3511 procedure Set_Delay_Alternative
3512 (N : Node_Id; Val : Node_Id) is
3514 pragma Assert (False
3515 or else NT (N).Nkind = N_Timed_Entry_Call);
3516 Set_Node4_With_Parent (N, Val);
3517 end Set_Delay_Alternative;
3519 procedure Set_Delay_Statement
3520 (N : Node_Id; Val : Node_Id) is
3522 pragma Assert (False
3523 or else NT (N).Nkind = N_Delay_Alternative);
3524 Set_Node2_With_Parent (N, Val);
3525 end Set_Delay_Statement;
3527 procedure Set_Delta_Expression
3528 (N : Node_Id; Val : Node_Id) is
3530 pragma Assert (False
3531 or else NT (N).Nkind = N_Decimal_Fixed_Point_Definition
3532 or else NT (N).Nkind = N_Delta_Constraint
3533 or else NT (N).Nkind = N_Ordinary_Fixed_Point_Definition);
3534 Set_Node3_With_Parent (N, Val);
3535 end Set_Delta_Expression;
3537 procedure Set_Digits_Expression
3538 (N : Node_Id; Val : Node_Id) is
3540 pragma Assert (False
3541 or else NT (N).Nkind = N_Decimal_Fixed_Point_Definition
3542 or else NT (N).Nkind = N_Digits_Constraint
3543 or else NT (N).Nkind = N_Floating_Point_Definition);
3544 Set_Node2_With_Parent (N, Val);
3545 end Set_Digits_Expression;
3547 procedure Set_Discr_Check_Funcs_Built
3548 (N : Node_Id; Val : Boolean := True) is
3550 pragma Assert (False
3551 or else NT (N).Nkind = N_Full_Type_Declaration);
3552 Set_Flag11 (N, Val);
3553 end Set_Discr_Check_Funcs_Built;
3555 procedure Set_Discrete_Choices
3556 (N : Node_Id; Val : List_Id) is
3558 pragma Assert (False
3559 or else NT (N).Nkind = N_Case_Statement_Alternative
3560 or else NT (N).Nkind = N_Variant);
3561 Set_List4_With_Parent (N, Val);
3562 end Set_Discrete_Choices;
3564 procedure Set_Discrete_Range
3565 (N : Node_Id; Val : Node_Id) is
3567 pragma Assert (False
3568 or else NT (N).Nkind = N_Slice);
3569 Set_Node4_With_Parent (N, Val);
3570 end Set_Discrete_Range;
3572 procedure Set_Discrete_Subtype_Definition
3573 (N : Node_Id; Val : Node_Id) is
3575 pragma Assert (False
3576 or else NT (N).Nkind = N_Entry_Declaration
3577 or else NT (N).Nkind = N_Entry_Index_Specification
3578 or else NT (N).Nkind = N_Loop_Parameter_Specification);
3579 Set_Node4_With_Parent (N, Val);
3580 end Set_Discrete_Subtype_Definition;
3582 procedure Set_Discrete_Subtype_Definitions
3583 (N : Node_Id; Val : List_Id) is
3585 pragma Assert (False
3586 or else NT (N).Nkind = N_Constrained_Array_Definition);
3587 Set_List2_With_Parent (N, Val);
3588 end Set_Discrete_Subtype_Definitions;
3590 procedure Set_Discriminant_Specifications
3591 (N : Node_Id; Val : List_Id) is
3593 pragma Assert (False
3594 or else NT (N).Nkind = N_Formal_Type_Declaration
3595 or else NT (N).Nkind = N_Full_Type_Declaration
3596 or else NT (N).Nkind = N_Incomplete_Type_Declaration
3597 or else NT (N).Nkind = N_Private_Extension_Declaration
3598 or else NT (N).Nkind = N_Private_Type_Declaration
3599 or else NT (N).Nkind = N_Protected_Type_Declaration
3600 or else NT (N).Nkind = N_Task_Type_Declaration);
3601 Set_List4_With_Parent (N, Val);
3602 end Set_Discriminant_Specifications;
3604 procedure Set_Discriminant_Type
3605 (N : Node_Id; Val : Node_Id) is
3607 pragma Assert (False
3608 or else NT (N).Nkind = N_Discriminant_Specification);
3609 Set_Node5_With_Parent (N, Val);
3610 end Set_Discriminant_Type;
3612 procedure Set_Do_Accessibility_Check
3613 (N : Node_Id; Val : Boolean := True) is
3615 pragma Assert (False
3616 or else NT (N).Nkind = N_Parameter_Specification);
3617 Set_Flag13 (N, Val);
3618 end Set_Do_Accessibility_Check;
3620 procedure Set_Do_Discriminant_Check
3621 (N : Node_Id; Val : Boolean := True) is
3623 pragma Assert (False
3624 or else NT (N).Nkind = N_Selected_Component);
3625 Set_Flag13 (N, Val);
3626 end Set_Do_Discriminant_Check;
3628 procedure Set_Do_Division_Check
3629 (N : Node_Id; Val : Boolean := True) is
3631 pragma Assert (False
3632 or else NT (N).Nkind = N_Op_Divide
3633 or else NT (N).Nkind = N_Op_Mod
3634 or else NT (N).Nkind = N_Op_Rem);
3635 Set_Flag13 (N, Val);
3636 end Set_Do_Division_Check;
3638 procedure Set_Do_Length_Check
3639 (N : Node_Id; Val : Boolean := True) is
3641 pragma Assert (False
3642 or else NT (N).Nkind = N_Assignment_Statement
3643 or else NT (N).Nkind = N_Op_And
3644 or else NT (N).Nkind = N_Op_Or
3645 or else NT (N).Nkind = N_Op_Xor
3646 or else NT (N).Nkind = N_Type_Conversion);
3648 end Set_Do_Length_Check;
3650 procedure Set_Do_Overflow_Check
3651 (N : Node_Id; Val : Boolean := True) is
3653 pragma Assert (False
3654 or else NT (N).Nkind in N_Op
3655 or else NT (N).Nkind = N_Attribute_Reference
3656 or else NT (N).Nkind = N_Type_Conversion);
3657 Set_Flag17 (N, Val);
3658 end Set_Do_Overflow_Check;
3660 procedure Set_Do_Range_Check
3661 (N : Node_Id; Val : Boolean := True) is
3663 pragma Assert (False
3664 or else NT (N).Nkind in N_Subexpr);
3666 end Set_Do_Range_Check;
3668 procedure Set_Do_Storage_Check
3669 (N : Node_Id; Val : Boolean := True) is
3671 pragma Assert (False
3672 or else NT (N).Nkind = N_Allocator
3673 or else NT (N).Nkind = N_Subprogram_Body);
3674 Set_Flag17 (N, Val);
3675 end Set_Do_Storage_Check;
3677 procedure Set_Do_Tag_Check
3678 (N : Node_Id; Val : Boolean := True) is
3680 pragma Assert (False
3681 or else NT (N).Nkind = N_Assignment_Statement
3682 or else NT (N).Nkind = N_Extended_Return_Statement
3683 or else NT (N).Nkind = N_Function_Call
3684 or else NT (N).Nkind = N_Procedure_Call_Statement
3685 or else NT (N).Nkind = N_Return_Statement
3686 or else NT (N).Nkind = N_Type_Conversion);
3687 Set_Flag13 (N, Val);
3688 end Set_Do_Tag_Check;
3690 procedure Set_Elaborate_All_Desirable
3691 (N : Node_Id; Val : Boolean := True) is
3693 pragma Assert (False
3694 or else NT (N).Nkind = N_With_Clause);
3696 end Set_Elaborate_All_Desirable;
3698 procedure Set_Elaborate_All_Present
3699 (N : Node_Id; Val : Boolean := True) is
3701 pragma Assert (False
3702 or else NT (N).Nkind = N_With_Clause);
3703 Set_Flag14 (N, Val);
3704 end Set_Elaborate_All_Present;
3706 procedure Set_Elaborate_Desirable
3707 (N : Node_Id; Val : Boolean := True) is
3709 pragma Assert (False
3710 or else NT (N).Nkind = N_With_Clause);
3711 Set_Flag11 (N, Val);
3712 end Set_Elaborate_Desirable;
3714 procedure Set_Elaborate_Present
3715 (N : Node_Id; Val : Boolean := True) is
3717 pragma Assert (False
3718 or else NT (N).Nkind = N_With_Clause);
3720 end Set_Elaborate_Present;
3722 procedure Set_Elaboration_Boolean
3723 (N : Node_Id; Val : Node_Id) is
3725 pragma Assert (False
3726 or else NT (N).Nkind = N_Function_Specification
3727 or else NT (N).Nkind = N_Procedure_Specification);
3729 end Set_Elaboration_Boolean;
3731 procedure Set_Else_Actions
3732 (N : Node_Id; Val : List_Id) is
3734 pragma Assert (False
3735 or else NT (N).Nkind = N_Conditional_Expression);
3736 Set_List3 (N, Val); -- semantic field, no parent set
3737 end Set_Else_Actions;
3739 procedure Set_Else_Statements
3740 (N : Node_Id; Val : List_Id) is
3742 pragma Assert (False
3743 or else NT (N).Nkind = N_Conditional_Entry_Call
3744 or else NT (N).Nkind = N_If_Statement
3745 or else NT (N).Nkind = N_Selective_Accept);
3746 Set_List4_With_Parent (N, Val);
3747 end Set_Else_Statements;
3749 procedure Set_Elsif_Parts
3750 (N : Node_Id; Val : List_Id) is
3752 pragma Assert (False
3753 or else NT (N).Nkind = N_If_Statement);
3754 Set_List3_With_Parent (N, Val);
3755 end Set_Elsif_Parts;
3757 procedure Set_Enclosing_Variant
3758 (N : Node_Id; Val : Node_Id) is
3760 pragma Assert (False
3761 or else NT (N).Nkind = N_Variant);
3762 Set_Node2 (N, Val); -- semantic field, no parent set
3763 end Set_Enclosing_Variant;
3765 procedure Set_End_Label
3766 (N : Node_Id; Val : Node_Id) is
3768 pragma Assert (False
3769 or else NT (N).Nkind = N_Enumeration_Type_Definition
3770 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements
3771 or else NT (N).Nkind = N_Loop_Statement
3772 or else NT (N).Nkind = N_Package_Specification
3773 or else NT (N).Nkind = N_Protected_Body
3774 or else NT (N).Nkind = N_Protected_Definition
3775 or else NT (N).Nkind = N_Record_Definition
3776 or else NT (N).Nkind = N_Task_Definition);
3777 Set_Node4_With_Parent (N, Val);
3780 procedure Set_End_Span
3781 (N : Node_Id; Val : Uint) is
3783 pragma Assert (False
3784 or else NT (N).Nkind = N_Case_Statement
3785 or else NT (N).Nkind = N_If_Statement);
3789 procedure Set_Entity
3790 (N : Node_Id; Val : Node_Id) is
3792 pragma Assert (False
3793 or else NT (N).Nkind in N_Has_Entity
3794 or else NT (N).Nkind = N_Freeze_Entity
3795 or else NT (N).Nkind = N_Attribute_Definition_Clause);
3796 Set_Node4 (N, Val); -- semantic field, no parent set
3799 procedure Set_Entry_Body_Formal_Part
3800 (N : Node_Id; Val : Node_Id) is
3802 pragma Assert (False
3803 or else NT (N).Nkind = N_Entry_Body);
3804 Set_Node5_With_Parent (N, Val);
3805 end Set_Entry_Body_Formal_Part;
3807 procedure Set_Entry_Call_Alternative
3808 (N : Node_Id; Val : Node_Id) is
3810 pragma Assert (False
3811 or else NT (N).Nkind = N_Conditional_Entry_Call
3812 or else NT (N).Nkind = N_Timed_Entry_Call);
3813 Set_Node1_With_Parent (N, Val);
3814 end Set_Entry_Call_Alternative;
3816 procedure Set_Entry_Call_Statement
3817 (N : Node_Id; Val : Node_Id) is
3819 pragma Assert (False
3820 or else NT (N).Nkind = N_Entry_Call_Alternative);
3821 Set_Node1_With_Parent (N, Val);
3822 end Set_Entry_Call_Statement;
3824 procedure Set_Entry_Direct_Name
3825 (N : Node_Id; Val : Node_Id) is
3827 pragma Assert (False
3828 or else NT (N).Nkind = N_Accept_Statement);
3829 Set_Node1_With_Parent (N, Val);
3830 end Set_Entry_Direct_Name;
3832 procedure Set_Entry_Index
3833 (N : Node_Id; Val : Node_Id) is
3835 pragma Assert (False
3836 or else NT (N).Nkind = N_Accept_Statement);
3837 Set_Node5_With_Parent (N, Val);
3838 end Set_Entry_Index;
3840 procedure Set_Entry_Index_Specification
3841 (N : Node_Id; Val : Node_Id) is
3843 pragma Assert (False
3844 or else NT (N).Nkind = N_Entry_Body_Formal_Part);
3845 Set_Node4_With_Parent (N, Val);
3846 end Set_Entry_Index_Specification;
3849 (N : Node_Id; Val : Node_Id) is
3851 pragma Assert (False
3852 or else NT (N).Nkind in N_Has_Etype);
3853 Set_Node5 (N, Val); -- semantic field, no parent set
3856 procedure Set_Exception_Choices
3857 (N : Node_Id; Val : List_Id) is
3859 pragma Assert (False
3860 or else NT (N).Nkind = N_Exception_Handler);
3861 Set_List4_With_Parent (N, Val);
3862 end Set_Exception_Choices;
3864 procedure Set_Exception_Handlers
3865 (N : Node_Id; Val : List_Id) is
3867 pragma Assert (False
3868 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements);
3869 Set_List5_With_Parent (N, Val);
3870 end Set_Exception_Handlers;
3872 procedure Set_Exception_Junk
3873 (N : Node_Id; Val : Boolean := True) is
3875 pragma Assert (False
3876 or else NT (N).Nkind = N_Block_Statement
3877 or else NT (N).Nkind = N_Goto_Statement
3878 or else NT (N).Nkind = N_Label
3879 or else NT (N).Nkind = N_Object_Declaration
3880 or else NT (N).Nkind = N_Subtype_Declaration);
3882 end Set_Exception_Junk;
3884 procedure Set_Exception_Label
3885 (N : Node_Id; Val : Node_Id) is
3887 pragma Assert (False
3888 or else NT (N).Nkind = N_Exception_Handler
3889 or else NT (N).Nkind = N_Push_Constraint_Error_Label
3890 or else NT (N).Nkind = N_Push_Program_Error_Label
3891 or else NT (N).Nkind = N_Push_Storage_Error_Label);
3892 Set_Node5 (N, Val); -- semantic field, no parent set
3893 end Set_Exception_Label;
3895 procedure Set_Expansion_Delayed
3896 (N : Node_Id; Val : Boolean := True) is
3898 pragma Assert (False
3899 or else NT (N).Nkind = N_Aggregate
3900 or else NT (N).Nkind = N_Extension_Aggregate);
3901 Set_Flag11 (N, Val);
3902 end Set_Expansion_Delayed;
3904 procedure Set_Explicit_Actual_Parameter
3905 (N : Node_Id; Val : Node_Id) is
3907 pragma Assert (False
3908 or else NT (N).Nkind = N_Parameter_Association);
3909 Set_Node3_With_Parent (N, Val);
3910 end Set_Explicit_Actual_Parameter;
3912 procedure Set_Explicit_Generic_Actual_Parameter
3913 (N : Node_Id; Val : Node_Id) is
3915 pragma Assert (False
3916 or else NT (N).Nkind = N_Generic_Association);
3917 Set_Node1_With_Parent (N, Val);
3918 end Set_Explicit_Generic_Actual_Parameter;
3920 procedure Set_Expression
3921 (N : Node_Id; Val : Node_Id) is
3923 pragma Assert (False
3924 or else NT (N).Nkind = N_Allocator
3925 or else NT (N).Nkind = N_Assignment_Statement
3926 or else NT (N).Nkind = N_At_Clause
3927 or else NT (N).Nkind = N_Attribute_Definition_Clause
3928 or else NT (N).Nkind = N_Case_Statement
3929 or else NT (N).Nkind = N_Code_Statement
3930 or else NT (N).Nkind = N_Component_Association
3931 or else NT (N).Nkind = N_Component_Declaration
3932 or else NT (N).Nkind = N_Delay_Relative_Statement
3933 or else NT (N).Nkind = N_Delay_Until_Statement
3934 or else NT (N).Nkind = N_Discriminant_Association
3935 or else NT (N).Nkind = N_Discriminant_Specification
3936 or else NT (N).Nkind = N_Exception_Declaration
3937 or else NT (N).Nkind = N_Free_Statement
3938 or else NT (N).Nkind = N_Mod_Clause
3939 or else NT (N).Nkind = N_Modular_Type_Definition
3940 or else NT (N).Nkind = N_Number_Declaration
3941 or else NT (N).Nkind = N_Object_Declaration
3942 or else NT (N).Nkind = N_Parameter_Specification
3943 or else NT (N).Nkind = N_Pragma_Argument_Association
3944 or else NT (N).Nkind = N_Qualified_Expression
3945 or else NT (N).Nkind = N_Raise_Statement
3946 or else NT (N).Nkind = N_Return_Statement
3947 or else NT (N).Nkind = N_Type_Conversion
3948 or else NT (N).Nkind = N_Unchecked_Expression
3949 or else NT (N).Nkind = N_Unchecked_Type_Conversion);
3950 Set_Node3_With_Parent (N, Val);
3953 procedure Set_Expressions
3954 (N : Node_Id; Val : List_Id) is
3956 pragma Assert (False
3957 or else NT (N).Nkind = N_Aggregate
3958 or else NT (N).Nkind = N_Attribute_Reference
3959 or else NT (N).Nkind = N_Conditional_Expression
3960 or else NT (N).Nkind = N_Extension_Aggregate
3961 or else NT (N).Nkind = N_Indexed_Component);
3962 Set_List1_With_Parent (N, Val);
3963 end Set_Expressions;
3965 procedure Set_First_Bit
3966 (N : Node_Id; Val : Node_Id) is
3968 pragma Assert (False
3969 or else NT (N).Nkind = N_Component_Clause);
3970 Set_Node3_With_Parent (N, Val);
3973 procedure Set_First_Inlined_Subprogram
3974 (N : Node_Id; Val : Entity_Id) is
3976 pragma Assert (False
3977 or else NT (N).Nkind = N_Compilation_Unit);
3978 Set_Node3 (N, Val); -- semantic field, no parent set
3979 end Set_First_Inlined_Subprogram;
3981 procedure Set_First_Name
3982 (N : Node_Id; Val : Boolean := True) is
3984 pragma Assert (False
3985 or else NT (N).Nkind = N_With_Clause);
3989 procedure Set_First_Named_Actual
3990 (N : Node_Id; Val : Node_Id) is
3992 pragma Assert (False
3993 or else NT (N).Nkind = N_Entry_Call_Statement
3994 or else NT (N).Nkind = N_Function_Call
3995 or else NT (N).Nkind = N_Procedure_Call_Statement);
3996 Set_Node4 (N, Val); -- semantic field, no parent set
3997 end Set_First_Named_Actual;
3999 procedure Set_First_Real_Statement
4000 (N : Node_Id; Val : Node_Id) is
4002 pragma Assert (False
4003 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements);
4004 Set_Node2 (N, Val); -- semantic field, no parent set
4005 end Set_First_Real_Statement;
4007 procedure Set_First_Subtype_Link
4008 (N : Node_Id; Val : Entity_Id) is
4010 pragma Assert (False
4011 or else NT (N).Nkind = N_Freeze_Entity);
4012 Set_Node5 (N, Val); -- semantic field, no parent set
4013 end Set_First_Subtype_Link;
4015 procedure Set_Float_Truncate
4016 (N : Node_Id; Val : Boolean := True) is
4018 pragma Assert (False
4019 or else NT (N).Nkind = N_Type_Conversion);
4020 Set_Flag11 (N, Val);
4021 end Set_Float_Truncate;
4023 procedure Set_Formal_Type_Definition
4024 (N : Node_Id; Val : Node_Id) is
4026 pragma Assert (False
4027 or else NT (N).Nkind = N_Formal_Type_Declaration);
4028 Set_Node3_With_Parent (N, Val);
4029 end Set_Formal_Type_Definition;
4031 procedure Set_Forwards_OK
4032 (N : Node_Id; Val : Boolean := True) is
4034 pragma Assert (False
4035 or else NT (N).Nkind = N_Assignment_Statement);
4037 end Set_Forwards_OK;
4039 procedure Set_From_At_End
4040 (N : Node_Id; Val : Boolean := True) is
4042 pragma Assert (False
4043 or else NT (N).Nkind = N_Raise_Statement);
4045 end Set_From_At_End;
4047 procedure Set_From_At_Mod
4048 (N : Node_Id; Val : Boolean := True) is
4050 pragma Assert (False
4051 or else NT (N).Nkind = N_Attribute_Definition_Clause);
4053 end Set_From_At_Mod;
4055 procedure Set_From_Default
4056 (N : Node_Id; Val : Boolean := True) is
4058 pragma Assert (False
4059 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration);
4061 end Set_From_Default;
4063 procedure Set_Generic_Associations
4064 (N : Node_Id; Val : List_Id) is
4066 pragma Assert (False
4067 or else NT (N).Nkind = N_Formal_Package_Declaration
4068 or else NT (N).Nkind = N_Function_Instantiation
4069 or else NT (N).Nkind = N_Package_Instantiation
4070 or else NT (N).Nkind = N_Procedure_Instantiation);
4071 Set_List3_With_Parent (N, Val);
4072 end Set_Generic_Associations;
4074 procedure Set_Generic_Formal_Declarations
4075 (N : Node_Id; Val : List_Id) is
4077 pragma Assert (False
4078 or else NT (N).Nkind = N_Generic_Package_Declaration
4079 or else NT (N).Nkind = N_Generic_Subprogram_Declaration);
4080 Set_List2_With_Parent (N, Val);
4081 end Set_Generic_Formal_Declarations;
4083 procedure Set_Generic_Parent
4084 (N : Node_Id; Val : Node_Id) is
4086 pragma Assert (False
4087 or else NT (N).Nkind = N_Function_Specification
4088 or else NT (N).Nkind = N_Package_Specification
4089 or else NT (N).Nkind = N_Procedure_Specification);
4091 end Set_Generic_Parent;
4093 procedure Set_Generic_Parent_Type
4094 (N : Node_Id; Val : Node_Id) is
4096 pragma Assert (False
4097 or else NT (N).Nkind = N_Subtype_Declaration);
4099 end Set_Generic_Parent_Type;
4101 procedure Set_Handled_Statement_Sequence
4102 (N : Node_Id; Val : Node_Id) is
4104 pragma Assert (False
4105 or else NT (N).Nkind = N_Accept_Statement
4106 or else NT (N).Nkind = N_Block_Statement
4107 or else NT (N).Nkind = N_Entry_Body
4108 or else NT (N).Nkind = N_Extended_Return_Statement
4109 or else NT (N).Nkind = N_Package_Body
4110 or else NT (N).Nkind = N_Subprogram_Body
4111 or else NT (N).Nkind = N_Task_Body);
4112 Set_Node4_With_Parent (N, Val);
4113 end Set_Handled_Statement_Sequence;
4115 procedure Set_Handler_List_Entry
4116 (N : Node_Id; Val : Node_Id) is
4118 pragma Assert (False
4119 or else NT (N).Nkind = N_Object_Declaration);
4121 end Set_Handler_List_Entry;
4123 procedure Set_Has_Created_Identifier
4124 (N : Node_Id; Val : Boolean := True) is
4126 pragma Assert (False
4127 or else NT (N).Nkind = N_Block_Statement
4128 or else NT (N).Nkind = N_Loop_Statement);
4129 Set_Flag15 (N, Val);
4130 end Set_Has_Created_Identifier;
4132 procedure Set_Has_Dynamic_Length_Check
4133 (N : Node_Id; Val : Boolean := True) is
4135 Set_Flag10 (N, Val);
4136 end Set_Has_Dynamic_Length_Check;
4138 procedure Set_Has_Dynamic_Range_Check
4139 (N : Node_Id; Val : Boolean := True) is
4141 Set_Flag12 (N, Val);
4142 end Set_Has_Dynamic_Range_Check;
4144 procedure Set_Has_Init_Expression
4145 (N : Node_Id; Val : Boolean := True) is
4147 pragma Assert (False
4148 or else NT (N).Nkind = N_Object_Declaration);
4149 Set_Flag14 (N, Val);
4150 end Set_Has_Init_Expression;
4152 procedure Set_Has_Local_Raise
4153 (N : Node_Id; Val : Boolean := True) is
4155 pragma Assert (False
4156 or else NT (N).Nkind = N_Exception_Handler);
4158 end Set_Has_Local_Raise;
4160 procedure Set_Has_No_Elaboration_Code
4161 (N : Node_Id; Val : Boolean := True) is
4163 pragma Assert (False
4164 or else NT (N).Nkind = N_Compilation_Unit);
4165 Set_Flag17 (N, Val);
4166 end Set_Has_No_Elaboration_Code;
4168 procedure Set_Has_Priority_Pragma
4169 (N : Node_Id; Val : Boolean := True) is
4171 pragma Assert (False
4172 or else NT (N).Nkind = N_Protected_Definition
4173 or else NT (N).Nkind = N_Subprogram_Body
4174 or else NT (N).Nkind = N_Task_Definition);
4176 end Set_Has_Priority_Pragma;
4178 procedure Set_Has_Private_View
4179 (N : Node_Id; Val : Boolean := True) is
4181 pragma Assert (False
4182 or else NT (N).Nkind in N_Op
4183 or else NT (N).Nkind = N_Character_Literal
4184 or else NT (N).Nkind = N_Expanded_Name
4185 or else NT (N).Nkind = N_Identifier
4186 or else NT (N).Nkind = N_Operator_Symbol);
4187 Set_Flag11 (N, Val);
4188 end Set_Has_Private_View;
4190 procedure Set_Has_Relative_Deadline_Pragma
4191 (N : Node_Id; Val : Boolean := True) is
4193 pragma Assert (False
4194 or else NT (N).Nkind = N_Subprogram_Body
4195 or else NT (N).Nkind = N_Task_Definition);
4197 end Set_Has_Relative_Deadline_Pragma;
4199 procedure Set_Has_Self_Reference
4200 (N : Node_Id; Val : Boolean := True) is
4202 pragma Assert (False
4203 or else NT (N).Nkind = N_Aggregate
4204 or else NT (N).Nkind = N_Extension_Aggregate);
4205 Set_Flag13 (N, Val);
4206 end Set_Has_Self_Reference;
4208 procedure Set_Has_Storage_Size_Pragma
4209 (N : Node_Id; Val : Boolean := True) is
4211 pragma Assert (False
4212 or else NT (N).Nkind = N_Task_Definition);
4214 end Set_Has_Storage_Size_Pragma;
4216 procedure Set_Has_Task_Info_Pragma
4217 (N : Node_Id; Val : Boolean := True) is
4219 pragma Assert (False
4220 or else NT (N).Nkind = N_Task_Definition);
4222 end Set_Has_Task_Info_Pragma;
4224 procedure Set_Has_Task_Name_Pragma
4225 (N : Node_Id; Val : Boolean := True) is
4227 pragma Assert (False
4228 or else NT (N).Nkind = N_Task_Definition);
4230 end Set_Has_Task_Name_Pragma;
4232 procedure Set_Has_Wide_Character
4233 (N : Node_Id; Val : Boolean := True) is
4235 pragma Assert (False
4236 or else NT (N).Nkind = N_String_Literal);
4237 Set_Flag11 (N, Val);
4238 end Set_Has_Wide_Character;
4240 procedure Set_Hidden_By_Use_Clause
4241 (N : Node_Id; Val : Elist_Id) is
4243 pragma Assert (False
4244 or else NT (N).Nkind = N_Use_Package_Clause
4245 or else NT (N).Nkind = N_Use_Type_Clause);
4246 Set_Elist4 (N, Val);
4247 end Set_Hidden_By_Use_Clause;
4249 procedure Set_High_Bound
4250 (N : Node_Id; Val : Node_Id) is
4252 pragma Assert (False
4253 or else NT (N).Nkind = N_Range
4254 or else NT (N).Nkind = N_Real_Range_Specification
4255 or else NT (N).Nkind = N_Signed_Integer_Type_Definition);
4256 Set_Node2_With_Parent (N, Val);
4259 procedure Set_Identifier
4260 (N : Node_Id; Val : Node_Id) is
4262 pragma Assert (False
4263 or else NT (N).Nkind = N_At_Clause
4264 or else NT (N).Nkind = N_Block_Statement
4265 or else NT (N).Nkind = N_Designator
4266 or else NT (N).Nkind = N_Enumeration_Representation_Clause
4267 or else NT (N).Nkind = N_Label
4268 or else NT (N).Nkind = N_Loop_Statement
4269 or else NT (N).Nkind = N_Record_Representation_Clause
4270 or else NT (N).Nkind = N_Subprogram_Info);
4271 Set_Node1_With_Parent (N, Val);
4274 procedure Set_Implicit_With
4275 (N : Node_Id; Val : Boolean := True) is
4277 pragma Assert (False
4278 or else NT (N).Nkind = N_With_Clause);
4279 Set_Flag16 (N, Val);
4280 end Set_Implicit_With;
4282 procedure Set_Interface_List
4283 (N : Node_Id; Val : List_Id) is
4285 pragma Assert (False
4286 or else NT (N).Nkind = N_Derived_Type_Definition
4287 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
4288 or else NT (N).Nkind = N_Private_Extension_Declaration
4289 or else NT (N).Nkind = N_Protected_Type_Declaration
4290 or else NT (N).Nkind = N_Record_Definition
4291 or else NT (N).Nkind = N_Single_Protected_Declaration
4292 or else NT (N).Nkind = N_Single_Task_Declaration
4293 or else NT (N).Nkind = N_Task_Type_Declaration);
4294 Set_List2_With_Parent (N, Val);
4295 end Set_Interface_List;
4297 procedure Set_Interface_Present
4298 (N : Node_Id; Val : Boolean := True) is
4300 pragma Assert (False
4301 or else NT (N).Nkind = N_Derived_Type_Definition
4302 or else NT (N).Nkind = N_Record_Definition);
4303 Set_Flag16 (N, Val);
4304 end Set_Interface_Present;
4306 procedure Set_In_Present
4307 (N : Node_Id; Val : Boolean := True) is
4309 pragma Assert (False
4310 or else NT (N).Nkind = N_Formal_Object_Declaration
4311 or else NT (N).Nkind = N_Parameter_Specification);
4312 Set_Flag15 (N, Val);
4315 procedure Set_Includes_Infinities
4316 (N : Node_Id; Val : Boolean := True) is
4318 pragma Assert (False
4319 or else NT (N).Nkind = N_Range);
4320 Set_Flag11 (N, Val);
4321 end Set_Includes_Infinities;
4323 procedure Set_Instance_Spec
4324 (N : Node_Id; Val : Node_Id) is
4326 pragma Assert (False
4327 or else NT (N).Nkind = N_Formal_Package_Declaration
4328 or else NT (N).Nkind = N_Function_Instantiation
4329 or else NT (N).Nkind = N_Package_Instantiation
4330 or else NT (N).Nkind = N_Procedure_Instantiation);
4331 Set_Node5 (N, Val); -- semantic field, no Parent set
4332 end Set_Instance_Spec;
4334 procedure Set_Intval
4335 (N : Node_Id; Val : Uint) is
4337 pragma Assert (False
4338 or else NT (N).Nkind = N_Integer_Literal);
4342 procedure Set_Is_Asynchronous_Call_Block
4343 (N : Node_Id; Val : Boolean := True) is
4345 pragma Assert (False
4346 or else NT (N).Nkind = N_Block_Statement);
4348 end Set_Is_Asynchronous_Call_Block;
4350 procedure Set_Is_Component_Left_Opnd
4351 (N : Node_Id; Val : Boolean := True) is
4353 pragma Assert (False
4354 or else NT (N).Nkind = N_Op_Concat);
4355 Set_Flag13 (N, Val);
4356 end Set_Is_Component_Left_Opnd;
4358 procedure Set_Is_Component_Right_Opnd
4359 (N : Node_Id; Val : Boolean := True) is
4361 pragma Assert (False
4362 or else NT (N).Nkind = N_Op_Concat);
4363 Set_Flag14 (N, Val);
4364 end Set_Is_Component_Right_Opnd;
4366 procedure Set_Is_Controlling_Actual
4367 (N : Node_Id; Val : Boolean := True) is
4369 pragma Assert (False
4370 or else NT (N).Nkind in N_Subexpr);
4371 Set_Flag16 (N, Val);
4372 end Set_Is_Controlling_Actual;
4374 procedure Set_Is_Dynamic_Coextension
4375 (N : Node_Id; Val : Boolean := True) is
4377 pragma Assert (False
4378 or else NT (N).Nkind = N_Allocator);
4379 Set_Flag18 (N, Val);
4380 end Set_Is_Dynamic_Coextension;
4382 procedure Set_Is_Entry_Barrier_Function
4383 (N : Node_Id; Val : Boolean := True) is
4385 pragma Assert (False
4386 or else NT (N).Nkind = N_Subprogram_Body);
4388 end Set_Is_Entry_Barrier_Function;
4390 procedure Set_Is_Expanded_Build_In_Place_Call
4391 (N : Node_Id; Val : Boolean := True) is
4393 pragma Assert (False
4394 or else NT (N).Nkind = N_Function_Call);
4395 Set_Flag11 (N, Val);
4396 end Set_Is_Expanded_Build_In_Place_Call;
4398 procedure Set_Is_Folded_In_Parser
4399 (N : Node_Id; Val : Boolean := True) is
4401 pragma Assert (False
4402 or else NT (N).Nkind = N_String_Literal);
4404 end Set_Is_Folded_In_Parser;
4406 procedure Set_Is_In_Discriminant_Check
4407 (N : Node_Id; Val : Boolean := True) is
4409 pragma Assert (False
4410 or else NT (N).Nkind = N_Selected_Component);
4411 Set_Flag11 (N, Val);
4412 end Set_Is_In_Discriminant_Check;
4414 procedure Set_Is_Machine_Number
4415 (N : Node_Id; Val : Boolean := True) is
4417 pragma Assert (False
4418 or else NT (N).Nkind = N_Real_Literal);
4419 Set_Flag11 (N, Val);
4420 end Set_Is_Machine_Number;
4422 procedure Set_Is_Null_Loop
4423 (N : Node_Id; Val : Boolean := True) is
4425 pragma Assert (False
4426 or else NT (N).Nkind = N_Loop_Statement);
4427 Set_Flag16 (N, Val);
4428 end Set_Is_Null_Loop;
4430 procedure Set_Is_Overloaded
4431 (N : Node_Id; Val : Boolean := True) is
4433 pragma Assert (False
4434 or else NT (N).Nkind in N_Subexpr);
4436 end Set_Is_Overloaded;
4438 procedure Set_Is_Power_Of_2_For_Shift
4439 (N : Node_Id; Val : Boolean := True) is
4441 pragma Assert (False
4442 or else NT (N).Nkind = N_Op_Expon);
4443 Set_Flag13 (N, Val);
4444 end Set_Is_Power_Of_2_For_Shift;
4446 procedure Set_Is_Protected_Subprogram_Body
4447 (N : Node_Id; Val : Boolean := True) is
4449 pragma Assert (False
4450 or else NT (N).Nkind = N_Subprogram_Body);
4452 end Set_Is_Protected_Subprogram_Body;
4454 procedure Set_Is_Static_Coextension
4455 (N : Node_Id; Val : Boolean := True) is
4457 pragma Assert (False
4458 or else NT (N).Nkind = N_Allocator);
4459 Set_Flag14 (N, Val);
4460 end Set_Is_Static_Coextension;
4462 procedure Set_Is_Static_Expression
4463 (N : Node_Id; Val : Boolean := True) is
4465 pragma Assert (False
4466 or else NT (N).Nkind in N_Subexpr);
4468 end Set_Is_Static_Expression;
4470 procedure Set_Is_Subprogram_Descriptor
4471 (N : Node_Id; Val : Boolean := True) is
4473 pragma Assert (False
4474 or else NT (N).Nkind = N_Object_Declaration);
4475 Set_Flag16 (N, Val);
4476 end Set_Is_Subprogram_Descriptor;
4478 procedure Set_Is_Task_Allocation_Block
4479 (N : Node_Id; Val : Boolean := True) is
4481 pragma Assert (False
4482 or else NT (N).Nkind = N_Block_Statement);
4484 end Set_Is_Task_Allocation_Block;
4486 procedure Set_Is_Task_Master
4487 (N : Node_Id; Val : Boolean := True) is
4489 pragma Assert (False
4490 or else NT (N).Nkind = N_Block_Statement
4491 or else NT (N).Nkind = N_Subprogram_Body
4492 or else NT (N).Nkind = N_Task_Body);
4494 end Set_Is_Task_Master;
4496 procedure Set_Iteration_Scheme
4497 (N : Node_Id; Val : Node_Id) is
4499 pragma Assert (False
4500 or else NT (N).Nkind = N_Loop_Statement);
4501 Set_Node2_With_Parent (N, Val);
4502 end Set_Iteration_Scheme;
4505 (N : Node_Id; Val : Entity_Id) is
4507 pragma Assert (False
4508 or else NT (N).Nkind = N_Itype_Reference);
4509 Set_Node1 (N, Val); -- no parent, semantic field
4512 procedure Set_Kill_Range_Check
4513 (N : Node_Id; Val : Boolean := True) is
4515 pragma Assert (False
4516 or else NT (N).Nkind = N_Unchecked_Type_Conversion);
4517 Set_Flag11 (N, Val);
4518 end Set_Kill_Range_Check;
4520 procedure Set_Label_Construct
4521 (N : Node_Id; Val : Node_Id) is
4523 pragma Assert (False
4524 or else NT (N).Nkind = N_Implicit_Label_Declaration);
4525 Set_Node2 (N, Val); -- semantic field, no parent set
4526 end Set_Label_Construct;
4528 procedure Set_Last_Bit
4529 (N : Node_Id; Val : Node_Id) is
4531 pragma Assert (False
4532 or else NT (N).Nkind = N_Component_Clause);
4533 Set_Node4_With_Parent (N, Val);
4536 procedure Set_Last_Name
4537 (N : Node_Id; Val : Boolean := True) is
4539 pragma Assert (False
4540 or else NT (N).Nkind = N_With_Clause);
4544 procedure Set_Left_Opnd
4545 (N : Node_Id; Val : Node_Id) is
4547 pragma Assert (False
4548 or else NT (N).Nkind = N_And_Then
4549 or else NT (N).Nkind = N_In
4550 or else NT (N).Nkind = N_Not_In
4551 or else NT (N).Nkind = N_Or_Else
4552 or else NT (N).Nkind in N_Binary_Op);
4553 Set_Node2_With_Parent (N, Val);
4556 procedure Set_Library_Unit
4557 (N : Node_Id; Val : Node_Id) is
4559 pragma Assert (False
4560 or else NT (N).Nkind = N_Compilation_Unit
4561 or else NT (N).Nkind = N_Package_Body_Stub
4562 or else NT (N).Nkind = N_Protected_Body_Stub
4563 or else NT (N).Nkind = N_Subprogram_Body_Stub
4564 or else NT (N).Nkind = N_Task_Body_Stub
4565 or else NT (N).Nkind = N_With_Clause);
4566 Set_Node4 (N, Val); -- semantic field, no parent set
4567 end Set_Library_Unit;
4569 procedure Set_Limited_View_Installed
4570 (N : Node_Id; Val : Boolean := True) is
4572 pragma Assert (False
4573 or else NT (N).Nkind = N_Package_Specification
4574 or else NT (N).Nkind = N_With_Clause);
4575 Set_Flag18 (N, Val);
4576 end Set_Limited_View_Installed;
4578 procedure Set_Limited_Present
4579 (N : Node_Id; Val : Boolean := True) is
4581 pragma Assert (False
4582 or else NT (N).Nkind = N_Derived_Type_Definition
4583 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
4584 or else NT (N).Nkind = N_Formal_Private_Type_Definition
4585 or else NT (N).Nkind = N_Private_Extension_Declaration
4586 or else NT (N).Nkind = N_Private_Type_Declaration
4587 or else NT (N).Nkind = N_Record_Definition
4588 or else NT (N).Nkind = N_With_Clause);
4589 Set_Flag17 (N, Val);
4590 end Set_Limited_Present;
4592 procedure Set_Literals
4593 (N : Node_Id; Val : List_Id) is
4595 pragma Assert (False
4596 or else NT (N).Nkind = N_Enumeration_Type_Definition);
4597 Set_List1_With_Parent (N, Val);
4600 procedure Set_Local_Raise_Not_OK
4601 (N : Node_Id; Val : Boolean := True) is
4603 pragma Assert (False
4604 or else NT (N).Nkind = N_Exception_Handler);
4606 end Set_Local_Raise_Not_OK;
4608 procedure Set_Local_Raise_Statements
4609 (N : Node_Id; Val : Elist_Id) is
4611 pragma Assert (False
4612 or else NT (N).Nkind = N_Exception_Handler);
4613 Set_Elist1 (N, Val);
4614 end Set_Local_Raise_Statements;
4616 procedure Set_Loop_Actions
4617 (N : Node_Id; Val : List_Id) is
4619 pragma Assert (False
4620 or else NT (N).Nkind = N_Component_Association);
4621 Set_List2 (N, Val); -- semantic field, no parent set
4622 end Set_Loop_Actions;
4624 procedure Set_Loop_Parameter_Specification
4625 (N : Node_Id; Val : Node_Id) is
4627 pragma Assert (False
4628 or else NT (N).Nkind = N_Iteration_Scheme);
4629 Set_Node4_With_Parent (N, Val);
4630 end Set_Loop_Parameter_Specification;
4632 procedure Set_Low_Bound
4633 (N : Node_Id; Val : Node_Id) is
4635 pragma Assert (False
4636 or else NT (N).Nkind = N_Range
4637 or else NT (N).Nkind = N_Real_Range_Specification
4638 or else NT (N).Nkind = N_Signed_Integer_Type_Definition);
4639 Set_Node1_With_Parent (N, Val);
4642 procedure Set_Mod_Clause
4643 (N : Node_Id; Val : Node_Id) is
4645 pragma Assert (False
4646 or else NT (N).Nkind = N_Record_Representation_Clause);
4647 Set_Node2_With_Parent (N, Val);
4650 procedure Set_More_Ids
4651 (N : Node_Id; Val : Boolean := True) is
4653 pragma Assert (False
4654 or else NT (N).Nkind = N_Component_Declaration
4655 or else NT (N).Nkind = N_Discriminant_Specification
4656 or else NT (N).Nkind = N_Exception_Declaration
4657 or else NT (N).Nkind = N_Formal_Object_Declaration
4658 or else NT (N).Nkind = N_Number_Declaration
4659 or else NT (N).Nkind = N_Object_Declaration
4660 or else NT (N).Nkind = N_Parameter_Specification);
4664 procedure Set_Must_Be_Byte_Aligned
4665 (N : Node_Id; Val : Boolean := True) is
4667 pragma Assert (False
4668 or else NT (N).Nkind = N_Attribute_Reference);
4669 Set_Flag14 (N, Val);
4670 end Set_Must_Be_Byte_Aligned;
4672 procedure Set_Must_Not_Freeze
4673 (N : Node_Id; Val : Boolean := True) is
4675 pragma Assert (False
4676 or else NT (N).Nkind = N_Subtype_Indication
4677 or else NT (N).Nkind in N_Subexpr);
4679 end Set_Must_Not_Freeze;
4681 procedure Set_Must_Not_Override
4682 (N : Node_Id; Val : Boolean := True) is
4684 pragma Assert (False
4685 or else NT (N).Nkind = N_Entry_Declaration
4686 or else NT (N).Nkind = N_Function_Instantiation
4687 or else NT (N).Nkind = N_Function_Specification
4688 or else NT (N).Nkind = N_Procedure_Instantiation
4689 or else NT (N).Nkind = N_Procedure_Specification);
4690 Set_Flag15 (N, Val);
4691 end Set_Must_Not_Override;
4693 procedure Set_Must_Override
4694 (N : Node_Id; Val : Boolean := True) is
4696 pragma Assert (False
4697 or else NT (N).Nkind = N_Entry_Declaration
4698 or else NT (N).Nkind = N_Function_Instantiation
4699 or else NT (N).Nkind = N_Function_Specification
4700 or else NT (N).Nkind = N_Procedure_Instantiation
4701 or else NT (N).Nkind = N_Procedure_Specification);
4702 Set_Flag14 (N, Val);
4703 end Set_Must_Override;
4706 (N : Node_Id; Val : Node_Id) is
4708 pragma Assert (False
4709 or else NT (N).Nkind = N_Assignment_Statement
4710 or else NT (N).Nkind = N_Attribute_Definition_Clause
4711 or else NT (N).Nkind = N_Defining_Program_Unit_Name
4712 or else NT (N).Nkind = N_Designator
4713 or else NT (N).Nkind = N_Entry_Call_Statement
4714 or else NT (N).Nkind = N_Exception_Renaming_Declaration
4715 or else NT (N).Nkind = N_Exit_Statement
4716 or else NT (N).Nkind = N_Formal_Package_Declaration
4717 or else NT (N).Nkind = N_Function_Call
4718 or else NT (N).Nkind = N_Function_Instantiation
4719 or else NT (N).Nkind = N_Generic_Function_Renaming_Declaration
4720 or else NT (N).Nkind = N_Generic_Package_Renaming_Declaration
4721 or else NT (N).Nkind = N_Generic_Procedure_Renaming_Declaration
4722 or else NT (N).Nkind = N_Goto_Statement
4723 or else NT (N).Nkind = N_Object_Renaming_Declaration
4724 or else NT (N).Nkind = N_Package_Instantiation
4725 or else NT (N).Nkind = N_Package_Renaming_Declaration
4726 or else NT (N).Nkind = N_Procedure_Call_Statement
4727 or else NT (N).Nkind = N_Procedure_Instantiation
4728 or else NT (N).Nkind = N_Raise_Statement
4729 or else NT (N).Nkind = N_Requeue_Statement
4730 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration
4731 or else NT (N).Nkind = N_Subunit
4732 or else NT (N).Nkind = N_Variant_Part
4733 or else NT (N).Nkind = N_With_Clause);
4734 Set_Node2_With_Parent (N, Val);
4738 (N : Node_Id; Val : List_Id) is
4740 pragma Assert (False
4741 or else NT (N).Nkind = N_Abort_Statement
4742 or else NT (N).Nkind = N_Use_Package_Clause);
4743 Set_List2_With_Parent (N, Val);
4746 procedure Set_Next_Entity
4747 (N : Node_Id; Val : Node_Id) is
4749 pragma Assert (False
4750 or else NT (N).Nkind = N_Defining_Character_Literal
4751 or else NT (N).Nkind = N_Defining_Identifier
4752 or else NT (N).Nkind = N_Defining_Operator_Symbol);
4753 Set_Node2 (N, Val); -- semantic field, no parent set
4754 end Set_Next_Entity;
4756 procedure Set_Next_Named_Actual
4757 (N : Node_Id; Val : Node_Id) is
4759 pragma Assert (False
4760 or else NT (N).Nkind = N_Parameter_Association);
4761 Set_Node4 (N, Val); -- semantic field, no parent set
4762 end Set_Next_Named_Actual;
4764 procedure Set_Next_Pragma
4765 (N : Node_Id; Val : Node_Id) is
4767 pragma Assert (False
4768 or else NT (N).Nkind = N_Pragma);
4769 Set_Node1 (N, Val); -- semantic field, no parent set
4770 end Set_Next_Pragma;
4772 procedure Set_Next_Rep_Item
4773 (N : Node_Id; Val : Node_Id) is
4775 pragma Assert (False
4776 or else NT (N).Nkind = N_Attribute_Definition_Clause
4777 or else NT (N).Nkind = N_Enumeration_Representation_Clause
4778 or else NT (N).Nkind = N_Pragma
4779 or else NT (N).Nkind = N_Record_Representation_Clause);
4780 Set_Node5 (N, Val); -- semantic field, no parent set
4781 end Set_Next_Rep_Item;
4783 procedure Set_Next_Use_Clause
4784 (N : Node_Id; Val : Node_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_Node3 (N, Val); -- semantic field, no parent set
4790 end Set_Next_Use_Clause;
4792 procedure Set_No_Ctrl_Actions
4793 (N : Node_Id; Val : Boolean := True) is
4795 pragma Assert (False
4796 or else NT (N).Nkind = N_Assignment_Statement);
4798 end Set_No_Ctrl_Actions;
4800 procedure Set_No_Elaboration_Check
4801 (N : Node_Id; Val : Boolean := True) is
4803 pragma Assert (False
4804 or else NT (N).Nkind = N_Function_Call
4805 or else NT (N).Nkind = N_Procedure_Call_Statement);
4806 Set_Flag14 (N, Val);
4807 end Set_No_Elaboration_Check;
4809 procedure Set_No_Entities_Ref_In_Spec
4810 (N : Node_Id; Val : Boolean := True) is
4812 pragma Assert (False
4813 or else NT (N).Nkind = N_With_Clause);
4815 end Set_No_Entities_Ref_In_Spec;
4817 procedure Set_No_Initialization
4818 (N : Node_Id; Val : Boolean := True) is
4820 pragma Assert (False
4821 or else NT (N).Nkind = N_Allocator
4822 or else NT (N).Nkind = N_Object_Declaration);
4823 Set_Flag13 (N, Val);
4824 end Set_No_Initialization;
4826 procedure Set_No_Truncation
4827 (N : Node_Id; Val : Boolean := True) is
4829 pragma Assert (False
4830 or else NT (N).Nkind = N_Unchecked_Type_Conversion);
4831 Set_Flag17 (N, Val);
4832 end Set_No_Truncation;
4834 procedure Set_Null_Present
4835 (N : Node_Id; Val : Boolean := True) is
4837 pragma Assert (False
4838 or else NT (N).Nkind = N_Component_List
4839 or else NT (N).Nkind = N_Procedure_Specification
4840 or else NT (N).Nkind = N_Record_Definition);
4841 Set_Flag13 (N, Val);
4842 end Set_Null_Present;
4844 procedure Set_Null_Exclusion_Present
4845 (N : Node_Id; Val : Boolean := True) is
4847 pragma Assert (False
4848 or else NT (N).Nkind = N_Access_Definition
4849 or else NT (N).Nkind = N_Access_Function_Definition
4850 or else NT (N).Nkind = N_Access_Procedure_Definition
4851 or else NT (N).Nkind = N_Access_To_Object_Definition
4852 or else NT (N).Nkind = N_Allocator
4853 or else NT (N).Nkind = N_Component_Definition
4854 or else NT (N).Nkind = N_Derived_Type_Definition
4855 or else NT (N).Nkind = N_Discriminant_Specification
4856 or else NT (N).Nkind = N_Formal_Object_Declaration
4857 or else NT (N).Nkind = N_Function_Specification
4858 or else NT (N).Nkind = N_Object_Declaration
4859 or else NT (N).Nkind = N_Object_Renaming_Declaration
4860 or else NT (N).Nkind = N_Parameter_Specification
4861 or else NT (N).Nkind = N_Subtype_Declaration);
4862 Set_Flag11 (N, Val);
4863 end Set_Null_Exclusion_Present;
4865 procedure Set_Null_Record_Present
4866 (N : Node_Id; Val : Boolean := True) is
4868 pragma Assert (False
4869 or else NT (N).Nkind = N_Aggregate
4870 or else NT (N).Nkind = N_Extension_Aggregate);
4871 Set_Flag17 (N, Val);
4872 end Set_Null_Record_Present;
4874 procedure Set_Object_Definition
4875 (N : Node_Id; Val : Node_Id) is
4877 pragma Assert (False
4878 or else NT (N).Nkind = N_Object_Declaration);
4879 Set_Node4_With_Parent (N, Val);
4880 end Set_Object_Definition;
4882 procedure Set_Original_Discriminant
4883 (N : Node_Id; Val : Node_Id) is
4885 pragma Assert (False
4886 or else NT (N).Nkind = N_Identifier);
4887 Set_Node2 (N, Val); -- semantic field, no parent set
4888 end Set_Original_Discriminant;
4890 procedure Set_Original_Entity
4891 (N : Node_Id; Val : Entity_Id) is
4893 pragma Assert (False
4894 or else NT (N).Nkind = N_Integer_Literal
4895 or else NT (N).Nkind = N_Real_Literal);
4896 Set_Node2 (N, Val); -- semantic field, no parent set
4897 end Set_Original_Entity;
4899 procedure Set_Others_Discrete_Choices
4900 (N : Node_Id; Val : List_Id) is
4902 pragma Assert (False
4903 or else NT (N).Nkind = N_Others_Choice);
4904 Set_List1_With_Parent (N, Val);
4905 end Set_Others_Discrete_Choices;
4907 procedure Set_Out_Present
4908 (N : Node_Id; Val : Boolean := True) is
4910 pragma Assert (False
4911 or else NT (N).Nkind = N_Formal_Object_Declaration
4912 or else NT (N).Nkind = N_Parameter_Specification);
4913 Set_Flag17 (N, Val);
4914 end Set_Out_Present;
4916 procedure Set_Parameter_Associations
4917 (N : Node_Id; Val : List_Id) is
4919 pragma Assert (False
4920 or else NT (N).Nkind = N_Entry_Call_Statement
4921 or else NT (N).Nkind = N_Function_Call
4922 or else NT (N).Nkind = N_Procedure_Call_Statement);
4923 Set_List3_With_Parent (N, Val);
4924 end Set_Parameter_Associations;
4926 procedure Set_Parameter_List_Truncated
4927 (N : Node_Id; Val : Boolean := True) is
4929 pragma Assert (False
4930 or else NT (N).Nkind = N_Function_Call
4931 or else NT (N).Nkind = N_Procedure_Call_Statement);
4932 Set_Flag17 (N, Val);
4933 end Set_Parameter_List_Truncated;
4935 procedure Set_Parameter_Specifications
4936 (N : Node_Id; Val : List_Id) is
4938 pragma Assert (False
4939 or else NT (N).Nkind = N_Accept_Statement
4940 or else NT (N).Nkind = N_Access_Function_Definition
4941 or else NT (N).Nkind = N_Access_Procedure_Definition
4942 or else NT (N).Nkind = N_Entry_Body_Formal_Part
4943 or else NT (N).Nkind = N_Entry_Declaration
4944 or else NT (N).Nkind = N_Function_Specification
4945 or else NT (N).Nkind = N_Procedure_Specification);
4946 Set_List3_With_Parent (N, Val);
4947 end Set_Parameter_Specifications;
4949 procedure Set_Parameter_Type
4950 (N : Node_Id; Val : Node_Id) is
4952 pragma Assert (False
4953 or else NT (N).Nkind = N_Parameter_Specification);
4954 Set_Node2_With_Parent (N, Val);
4955 end Set_Parameter_Type;
4957 procedure Set_Parent_Spec
4958 (N : Node_Id; Val : Node_Id) is
4960 pragma Assert (False
4961 or else NT (N).Nkind = N_Function_Instantiation
4962 or else NT (N).Nkind = N_Generic_Function_Renaming_Declaration
4963 or else NT (N).Nkind = N_Generic_Package_Declaration
4964 or else NT (N).Nkind = N_Generic_Package_Renaming_Declaration
4965 or else NT (N).Nkind = N_Generic_Procedure_Renaming_Declaration
4966 or else NT (N).Nkind = N_Generic_Subprogram_Declaration
4967 or else NT (N).Nkind = N_Package_Declaration
4968 or else NT (N).Nkind = N_Package_Instantiation
4969 or else NT (N).Nkind = N_Package_Renaming_Declaration
4970 or else NT (N).Nkind = N_Procedure_Instantiation
4971 or else NT (N).Nkind = N_Subprogram_Declaration
4972 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration);
4973 Set_Node4 (N, Val); -- semantic field, no parent set
4974 end Set_Parent_Spec;
4976 procedure Set_PPC_Enabled
4977 (N : Node_Id; Val : Boolean := True) is
4979 pragma Assert (False
4980 or else NT (N).Nkind = N_Pragma);
4982 end Set_PPC_Enabled;
4984 procedure Set_Position
4985 (N : Node_Id; Val : Node_Id) is
4987 pragma Assert (False
4988 or else NT (N).Nkind = N_Component_Clause);
4989 Set_Node2_With_Parent (N, Val);
4992 procedure Set_Pragma_Argument_Associations
4993 (N : Node_Id; Val : List_Id) is
4995 pragma Assert (False
4996 or else NT (N).Nkind = N_Pragma);
4997 Set_List2_With_Parent (N, Val);
4998 end Set_Pragma_Argument_Associations;
5000 procedure Set_Pragma_Identifier
5001 (N : Node_Id; Val : Node_Id) is
5003 pragma Assert (False
5004 or else NT (N).Nkind = N_Pragma);
5005 Set_Node4_With_Parent (N, Val);
5006 end Set_Pragma_Identifier;
5008 procedure Set_Pragmas_After
5009 (N : Node_Id; Val : List_Id) is
5011 pragma Assert (False
5012 or else NT (N).Nkind = N_Compilation_Unit_Aux
5013 or else NT (N).Nkind = N_Terminate_Alternative);
5014 Set_List5_With_Parent (N, Val);
5015 end Set_Pragmas_After;
5017 procedure Set_Pragmas_Before
5018 (N : Node_Id; Val : List_Id) is
5020 pragma Assert (False
5021 or else NT (N).Nkind = N_Accept_Alternative
5022 or else NT (N).Nkind = N_Delay_Alternative
5023 or else NT (N).Nkind = N_Entry_Call_Alternative
5024 or else NT (N).Nkind = N_Mod_Clause
5025 or else NT (N).Nkind = N_Terminate_Alternative
5026 or else NT (N).Nkind = N_Triggering_Alternative);
5027 Set_List4_With_Parent (N, Val);
5028 end Set_Pragmas_Before;
5030 procedure Set_Prefix
5031 (N : Node_Id; Val : Node_Id) is
5033 pragma Assert (False
5034 or else NT (N).Nkind = N_Attribute_Reference
5035 or else NT (N).Nkind = N_Expanded_Name
5036 or else NT (N).Nkind = N_Explicit_Dereference
5037 or else NT (N).Nkind = N_Indexed_Component
5038 or else NT (N).Nkind = N_Reference
5039 or else NT (N).Nkind = N_Selected_Component
5040 or else NT (N).Nkind = N_Slice);
5041 Set_Node3_With_Parent (N, Val);
5044 procedure Set_Present_Expr
5045 (N : Node_Id; Val : Uint) is
5047 pragma Assert (False
5048 or else NT (N).Nkind = N_Variant);
5050 end Set_Present_Expr;
5052 procedure Set_Prev_Ids
5053 (N : Node_Id; Val : Boolean := True) is
5055 pragma Assert (False
5056 or else NT (N).Nkind = N_Component_Declaration
5057 or else NT (N).Nkind = N_Discriminant_Specification
5058 or else NT (N).Nkind = N_Exception_Declaration
5059 or else NT (N).Nkind = N_Formal_Object_Declaration
5060 or else NT (N).Nkind = N_Number_Declaration
5061 or else NT (N).Nkind = N_Object_Declaration
5062 or else NT (N).Nkind = N_Parameter_Specification);
5066 procedure Set_Print_In_Hex
5067 (N : Node_Id; Val : Boolean := True) is
5069 pragma Assert (False
5070 or else NT (N).Nkind = N_Integer_Literal);
5071 Set_Flag13 (N, Val);
5072 end Set_Print_In_Hex;
5074 procedure Set_Private_Declarations
5075 (N : Node_Id; Val : List_Id) is
5077 pragma Assert (False
5078 or else NT (N).Nkind = N_Package_Specification
5079 or else NT (N).Nkind = N_Protected_Definition
5080 or else NT (N).Nkind = N_Task_Definition);
5081 Set_List3_With_Parent (N, Val);
5082 end Set_Private_Declarations;
5084 procedure Set_Private_Present
5085 (N : Node_Id; Val : Boolean := True) is
5087 pragma Assert (False
5088 or else NT (N).Nkind = N_Compilation_Unit
5089 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
5090 or else NT (N).Nkind = N_With_Clause);
5091 Set_Flag15 (N, Val);
5092 end Set_Private_Present;
5094 procedure Set_Procedure_To_Call
5095 (N : Node_Id; Val : Node_Id) is
5097 pragma Assert (False
5098 or else NT (N).Nkind = N_Allocator
5099 or else NT (N).Nkind = N_Extended_Return_Statement
5100 or else NT (N).Nkind = N_Free_Statement
5101 or else NT (N).Nkind = N_Return_Statement);
5102 Set_Node2 (N, Val); -- semantic field, no parent set
5103 end Set_Procedure_To_Call;
5105 procedure Set_Proper_Body
5106 (N : Node_Id; Val : Node_Id) is
5108 pragma Assert (False
5109 or else NT (N).Nkind = N_Subunit);
5110 Set_Node1_With_Parent (N, Val);
5111 end Set_Proper_Body;
5113 procedure Set_Protected_Definition
5114 (N : Node_Id; Val : Node_Id) is
5116 pragma Assert (False
5117 or else NT (N).Nkind = N_Protected_Type_Declaration
5118 or else NT (N).Nkind = N_Single_Protected_Declaration);
5119 Set_Node3_With_Parent (N, Val);
5120 end Set_Protected_Definition;
5122 procedure Set_Protected_Present
5123 (N : Node_Id; Val : Boolean := True) is
5125 pragma Assert (False
5126 or else NT (N).Nkind = N_Access_Function_Definition
5127 or else NT (N).Nkind = N_Access_Procedure_Definition
5128 or else NT (N).Nkind = N_Derived_Type_Definition
5129 or else NT (N).Nkind = N_Record_Definition);
5131 end Set_Protected_Present;
5133 procedure Set_Raises_Constraint_Error
5134 (N : Node_Id; Val : Boolean := True) is
5136 pragma Assert (False
5137 or else NT (N).Nkind in N_Subexpr);
5139 end Set_Raises_Constraint_Error;
5141 procedure Set_Range_Constraint
5142 (N : Node_Id; Val : Node_Id) is
5144 pragma Assert (False
5145 or else NT (N).Nkind = N_Delta_Constraint
5146 or else NT (N).Nkind = N_Digits_Constraint);
5147 Set_Node4_With_Parent (N, Val);
5148 end Set_Range_Constraint;
5150 procedure Set_Range_Expression
5151 (N : Node_Id; Val : Node_Id) is
5153 pragma Assert (False
5154 or else NT (N).Nkind = N_Range_Constraint);
5155 Set_Node4_With_Parent (N, Val);
5156 end Set_Range_Expression;
5158 procedure Set_Real_Range_Specification
5159 (N : Node_Id; Val : Node_Id) is
5161 pragma Assert (False
5162 or else NT (N).Nkind = N_Decimal_Fixed_Point_Definition
5163 or else NT (N).Nkind = N_Floating_Point_Definition
5164 or else NT (N).Nkind = N_Ordinary_Fixed_Point_Definition);
5165 Set_Node4_With_Parent (N, Val);
5166 end Set_Real_Range_Specification;
5168 procedure Set_Realval
5169 (N : Node_Id; Val : Ureal) is
5171 pragma Assert (False
5172 or else NT (N).Nkind = N_Real_Literal);
5173 Set_Ureal3 (N, Val);
5176 procedure Set_Reason
5177 (N : Node_Id; Val : Uint) is
5179 pragma Assert (False
5180 or else NT (N).Nkind = N_Raise_Constraint_Error
5181 or else NT (N).Nkind = N_Raise_Program_Error
5182 or else NT (N).Nkind = N_Raise_Storage_Error);
5186 procedure Set_Record_Extension_Part
5187 (N : Node_Id; Val : Node_Id) is
5189 pragma Assert (False
5190 or else NT (N).Nkind = N_Derived_Type_Definition);
5191 Set_Node3_With_Parent (N, Val);
5192 end Set_Record_Extension_Part;
5194 procedure Set_Redundant_Use
5195 (N : Node_Id; Val : Boolean := True) is
5197 pragma Assert (False
5198 or else NT (N).Nkind = N_Attribute_Reference
5199 or else NT (N).Nkind = N_Expanded_Name
5200 or else NT (N).Nkind = N_Identifier);
5201 Set_Flag13 (N, Val);
5202 end Set_Redundant_Use;
5204 procedure Set_Renaming_Exception
5205 (N : Node_Id; Val : Node_Id) is
5207 pragma Assert (False
5208 or else NT (N).Nkind = N_Exception_Declaration);
5210 end Set_Renaming_Exception;
5212 procedure Set_Result_Definition
5213 (N : Node_Id; Val : Node_Id) is
5215 pragma Assert (False
5216 or else NT (N).Nkind = N_Access_Function_Definition
5217 or else NT (N).Nkind = N_Function_Specification);
5218 Set_Node4_With_Parent (N, Val);
5219 end Set_Result_Definition;
5221 procedure Set_Return_Object_Declarations
5222 (N : Node_Id; Val : List_Id) is
5224 pragma Assert (False
5225 or else NT (N).Nkind = N_Extended_Return_Statement);
5226 Set_List3_With_Parent (N, Val);
5227 end Set_Return_Object_Declarations;
5229 procedure Set_Return_Statement_Entity
5230 (N : Node_Id; Val : Node_Id) is
5232 pragma Assert (False
5233 or else NT (N).Nkind = N_Extended_Return_Statement
5234 or else NT (N).Nkind = N_Return_Statement);
5235 Set_Node5 (N, Val); -- semantic field, no parent set
5236 end Set_Return_Statement_Entity;
5238 procedure Set_Reverse_Present
5239 (N : Node_Id; Val : Boolean := True) is
5241 pragma Assert (False
5242 or else NT (N).Nkind = N_Loop_Parameter_Specification);
5243 Set_Flag15 (N, Val);
5244 end Set_Reverse_Present;
5246 procedure Set_Right_Opnd
5247 (N : Node_Id; Val : Node_Id) is
5249 pragma Assert (False
5250 or else NT (N).Nkind in N_Op
5251 or else NT (N).Nkind = N_And_Then
5252 or else NT (N).Nkind = N_In
5253 or else NT (N).Nkind = N_Not_In
5254 or else NT (N).Nkind = N_Or_Else);
5255 Set_Node3_With_Parent (N, Val);
5258 procedure Set_Rounded_Result
5259 (N : Node_Id; Val : Boolean := True) is
5261 pragma Assert (False
5262 or else NT (N).Nkind = N_Op_Divide
5263 or else NT (N).Nkind = N_Op_Multiply
5264 or else NT (N).Nkind = N_Type_Conversion);
5265 Set_Flag18 (N, Val);
5266 end Set_Rounded_Result;
5269 (N : Node_Id; Val : Node_Id) is
5271 pragma Assert (False
5272 or else NT (N).Nkind = N_Defining_Character_Literal
5273 or else NT (N).Nkind = N_Defining_Identifier
5274 or else NT (N).Nkind = N_Defining_Operator_Symbol);
5275 Set_Node3 (N, Val); -- semantic field, no parent set
5278 procedure Set_Select_Alternatives
5279 (N : Node_Id; Val : List_Id) is
5281 pragma Assert (False
5282 or else NT (N).Nkind = N_Selective_Accept);
5283 Set_List1_With_Parent (N, Val);
5284 end Set_Select_Alternatives;
5286 procedure Set_Selector_Name
5287 (N : Node_Id; Val : Node_Id) is
5289 pragma Assert (False
5290 or else NT (N).Nkind = N_Expanded_Name
5291 or else NT (N).Nkind = N_Generic_Association
5292 or else NT (N).Nkind = N_Parameter_Association
5293 or else NT (N).Nkind = N_Selected_Component);
5294 Set_Node2_With_Parent (N, Val);
5295 end Set_Selector_Name;
5297 procedure Set_Selector_Names
5298 (N : Node_Id; Val : List_Id) is
5300 pragma Assert (False
5301 or else NT (N).Nkind = N_Discriminant_Association);
5302 Set_List1_With_Parent (N, Val);
5303 end Set_Selector_Names;
5305 procedure Set_Shift_Count_OK
5306 (N : Node_Id; Val : Boolean := True) is
5308 pragma Assert (False
5309 or else NT (N).Nkind = N_Op_Rotate_Left
5310 or else NT (N).Nkind = N_Op_Rotate_Right
5311 or else NT (N).Nkind = N_Op_Shift_Left
5312 or else NT (N).Nkind = N_Op_Shift_Right
5313 or else NT (N).Nkind = N_Op_Shift_Right_Arithmetic);
5315 end Set_Shift_Count_OK;
5317 procedure Set_Source_Type
5318 (N : Node_Id; Val : Entity_Id) is
5320 pragma Assert (False
5321 or else NT (N).Nkind = N_Validate_Unchecked_Conversion);
5322 Set_Node1 (N, Val); -- semantic field, no parent set
5323 end Set_Source_Type;
5325 procedure Set_Specification
5326 (N : Node_Id; Val : Node_Id) is
5328 pragma Assert (False
5329 or else NT (N).Nkind = N_Abstract_Subprogram_Declaration
5330 or else NT (N).Nkind = N_Formal_Abstract_Subprogram_Declaration
5331 or else NT (N).Nkind = N_Formal_Concrete_Subprogram_Declaration
5332 or else NT (N).Nkind = N_Generic_Package_Declaration
5333 or else NT (N).Nkind = N_Generic_Subprogram_Declaration
5334 or else NT (N).Nkind = N_Package_Declaration
5335 or else NT (N).Nkind = N_Subprogram_Body
5336 or else NT (N).Nkind = N_Subprogram_Body_Stub
5337 or else NT (N).Nkind = N_Subprogram_Declaration
5338 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration);
5339 Set_Node1_With_Parent (N, Val);
5340 end Set_Specification;
5342 procedure Set_Statements
5343 (N : Node_Id; Val : List_Id) is
5345 pragma Assert (False
5346 or else NT (N).Nkind = N_Abortable_Part
5347 or else NT (N).Nkind = N_Accept_Alternative
5348 or else NT (N).Nkind = N_Case_Statement_Alternative
5349 or else NT (N).Nkind = N_Delay_Alternative
5350 or else NT (N).Nkind = N_Entry_Call_Alternative
5351 or else NT (N).Nkind = N_Exception_Handler
5352 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements
5353 or else NT (N).Nkind = N_Loop_Statement
5354 or else NT (N).Nkind = N_Triggering_Alternative);
5355 Set_List3_With_Parent (N, Val);
5358 procedure Set_Static_Processing_OK
5359 (N : Node_Id; Val : Boolean) is
5361 pragma Assert (False
5362 or else NT (N).Nkind = N_Aggregate);
5364 end Set_Static_Processing_OK;
5366 procedure Set_Storage_Pool
5367 (N : Node_Id; Val : Node_Id) is
5369 pragma Assert (False
5370 or else NT (N).Nkind = N_Allocator
5371 or else NT (N).Nkind = N_Extended_Return_Statement
5372 or else NT (N).Nkind = N_Free_Statement
5373 or else NT (N).Nkind = N_Return_Statement);
5374 Set_Node1 (N, Val); -- semantic field, no parent set
5375 end Set_Storage_Pool;
5377 procedure Set_Strval
5378 (N : Node_Id; Val : String_Id) is
5380 pragma Assert (False
5381 or else NT (N).Nkind = N_Operator_Symbol
5382 or else NT (N).Nkind = N_String_Literal);
5386 procedure Set_Subtype_Indication
5387 (N : Node_Id; Val : Node_Id) is
5389 pragma Assert (False
5390 or else NT (N).Nkind = N_Access_To_Object_Definition
5391 or else NT (N).Nkind = N_Component_Definition
5392 or else NT (N).Nkind = N_Derived_Type_Definition
5393 or else NT (N).Nkind = N_Private_Extension_Declaration
5394 or else NT (N).Nkind = N_Subtype_Declaration);
5395 Set_Node5_With_Parent (N, Val);
5396 end Set_Subtype_Indication;
5398 procedure Set_Subtype_Mark
5399 (N : Node_Id; Val : Node_Id) is
5401 pragma Assert (False
5402 or else NT (N).Nkind = N_Access_Definition
5403 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
5404 or else NT (N).Nkind = N_Formal_Object_Declaration
5405 or else NT (N).Nkind = N_Object_Renaming_Declaration
5406 or else NT (N).Nkind = N_Qualified_Expression
5407 or else NT (N).Nkind = N_Subtype_Indication
5408 or else NT (N).Nkind = N_Type_Conversion
5409 or else NT (N).Nkind = N_Unchecked_Type_Conversion);
5410 Set_Node4_With_Parent (N, Val);
5411 end Set_Subtype_Mark;
5413 procedure Set_Subtype_Marks
5414 (N : Node_Id; Val : List_Id) is
5416 pragma Assert (False
5417 or else NT (N).Nkind = N_Unconstrained_Array_Definition
5418 or else NT (N).Nkind = N_Use_Type_Clause);
5419 Set_List2_With_Parent (N, Val);
5420 end Set_Subtype_Marks;
5422 procedure Set_Suppress_Loop_Warnings
5423 (N : Node_Id; Val : Boolean := True) is
5425 pragma Assert (False
5426 or else NT (N).Nkind = N_Loop_Statement);
5427 Set_Flag17 (N, Val);
5428 end Set_Suppress_Loop_Warnings;
5430 procedure Set_Synchronized_Present
5431 (N : Node_Id; Val : Boolean := True) is
5433 pragma Assert (False
5434 or else NT (N).Nkind = N_Derived_Type_Definition
5435 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
5436 or else NT (N).Nkind = N_Private_Extension_Declaration
5437 or else NT (N).Nkind = N_Record_Definition);
5439 end Set_Synchronized_Present;
5441 procedure Set_Tagged_Present
5442 (N : Node_Id; Val : Boolean := True) is
5444 pragma Assert (False
5445 or else NT (N).Nkind = N_Formal_Private_Type_Definition
5446 or else NT (N).Nkind = N_Incomplete_Type_Declaration
5447 or else NT (N).Nkind = N_Private_Type_Declaration
5448 or else NT (N).Nkind = N_Record_Definition);
5449 Set_Flag15 (N, Val);
5450 end Set_Tagged_Present;
5452 procedure Set_Target_Type
5453 (N : Node_Id; Val : Entity_Id) is
5455 pragma Assert (False
5456 or else NT (N).Nkind = N_Validate_Unchecked_Conversion);
5457 Set_Node2 (N, Val); -- semantic field, no parent set
5458 end Set_Target_Type;
5460 procedure Set_Task_Definition
5461 (N : Node_Id; Val : Node_Id) is
5463 pragma Assert (False
5464 or else NT (N).Nkind = N_Single_Task_Declaration
5465 or else NT (N).Nkind = N_Task_Type_Declaration);
5466 Set_Node3_With_Parent (N, Val);
5467 end Set_Task_Definition;
5469 procedure Set_Task_Present
5470 (N : Node_Id; Val : Boolean := True) is
5472 pragma Assert (False
5473 or else NT (N).Nkind = N_Derived_Type_Definition
5474 or else NT (N).Nkind = N_Record_Definition);
5476 end Set_Task_Present;
5478 procedure Set_Then_Actions
5479 (N : Node_Id; Val : List_Id) is
5481 pragma Assert (False
5482 or else NT (N).Nkind = N_Conditional_Expression);
5483 Set_List2 (N, Val); -- semantic field, no parent set
5484 end Set_Then_Actions;
5486 procedure Set_Then_Statements
5487 (N : Node_Id; Val : List_Id) is
5489 pragma Assert (False
5490 or else NT (N).Nkind = N_Elsif_Part
5491 or else NT (N).Nkind = N_If_Statement);
5492 Set_List2_With_Parent (N, Val);
5493 end Set_Then_Statements;
5495 procedure Set_Treat_Fixed_As_Integer
5496 (N : Node_Id; Val : Boolean := True) is
5498 pragma Assert (False
5499 or else NT (N).Nkind = N_Op_Divide
5500 or else NT (N).Nkind = N_Op_Mod
5501 or else NT (N).Nkind = N_Op_Multiply
5502 or else NT (N).Nkind = N_Op_Rem);
5503 Set_Flag14 (N, Val);
5504 end Set_Treat_Fixed_As_Integer;
5506 procedure Set_Triggering_Alternative
5507 (N : Node_Id; Val : Node_Id) is
5509 pragma Assert (False
5510 or else NT (N).Nkind = N_Asynchronous_Select);
5511 Set_Node1_With_Parent (N, Val);
5512 end Set_Triggering_Alternative;
5514 procedure Set_Triggering_Statement
5515 (N : Node_Id; Val : Node_Id) is
5517 pragma Assert (False
5518 or else NT (N).Nkind = N_Triggering_Alternative);
5519 Set_Node1_With_Parent (N, Val);
5520 end Set_Triggering_Statement;
5522 procedure Set_TSS_Elist
5523 (N : Node_Id; Val : Elist_Id) is
5525 pragma Assert (False
5526 or else NT (N).Nkind = N_Freeze_Entity);
5527 Set_Elist3 (N, Val); -- semantic field, no parent set
5530 procedure Set_Type_Definition
5531 (N : Node_Id; Val : Node_Id) is
5533 pragma Assert (False
5534 or else NT (N).Nkind = N_Full_Type_Declaration);
5535 Set_Node3_With_Parent (N, Val);
5536 end Set_Type_Definition;
5539 (N : Node_Id; Val : Node_Id) is
5541 pragma Assert (False
5542 or else NT (N).Nkind = N_Compilation_Unit);
5543 Set_Node2_With_Parent (N, Val);
5546 procedure Set_Unknown_Discriminants_Present
5547 (N : Node_Id; Val : Boolean := True) is
5549 pragma Assert (False
5550 or else NT (N).Nkind = N_Formal_Type_Declaration
5551 or else NT (N).Nkind = N_Incomplete_Type_Declaration
5552 or else NT (N).Nkind = N_Private_Extension_Declaration
5553 or else NT (N).Nkind = N_Private_Type_Declaration);
5554 Set_Flag13 (N, Val);
5555 end Set_Unknown_Discriminants_Present;
5557 procedure Set_Unreferenced_In_Spec
5558 (N : Node_Id; Val : Boolean := True) is
5560 pragma Assert (False
5561 or else NT (N).Nkind = N_With_Clause);
5563 end Set_Unreferenced_In_Spec;
5565 procedure Set_Variant_Part
5566 (N : Node_Id; Val : Node_Id) is
5568 pragma Assert (False
5569 or else NT (N).Nkind = N_Component_List);
5570 Set_Node4_With_Parent (N, Val);
5571 end Set_Variant_Part;
5573 procedure Set_Variants
5574 (N : Node_Id; Val : List_Id) is
5576 pragma Assert (False
5577 or else NT (N).Nkind = N_Variant_Part);
5578 Set_List1_With_Parent (N, Val);
5581 procedure Set_Visible_Declarations
5582 (N : Node_Id; Val : List_Id) is
5584 pragma Assert (False
5585 or else NT (N).Nkind = N_Package_Specification
5586 or else NT (N).Nkind = N_Protected_Definition
5587 or else NT (N).Nkind = N_Task_Definition);
5588 Set_List2_With_Parent (N, Val);
5589 end Set_Visible_Declarations;
5591 procedure Set_Was_Originally_Stub
5592 (N : Node_Id; Val : Boolean := True) is
5594 pragma Assert (False
5595 or else NT (N).Nkind = N_Package_Body
5596 or else NT (N).Nkind = N_Protected_Body
5597 or else NT (N).Nkind = N_Subprogram_Body
5598 or else NT (N).Nkind = N_Task_Body);
5599 Set_Flag13 (N, Val);
5600 end Set_Was_Originally_Stub;
5602 procedure Set_Zero_Cost_Handling
5603 (N : Node_Id; Val : Boolean := True) is
5605 pragma Assert (False
5606 or else NT (N).Nkind = N_Exception_Handler
5607 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements);
5609 end Set_Zero_Cost_Handling;
5611 -------------------------
5612 -- Iterator Procedures --
5613 -------------------------
5615 procedure Next_Entity (N : in out Node_Id) is
5617 N := Next_Entity (N);
5620 procedure Next_Named_Actual (N : in out Node_Id) is
5622 N := Next_Named_Actual (N);
5623 end Next_Named_Actual;
5625 procedure Next_Rep_Item (N : in out Node_Id) is
5627 N := Next_Rep_Item (N);
5630 procedure Next_Use_Clause (N : in out Node_Id) is
5632 N := Next_Use_Clause (N);
5633 end Next_Use_Clause;
5639 function End_Location (N : Node_Id) return Source_Ptr is
5640 L : constant Uint := End_Span (N);
5645 return Source_Ptr (Int (Sloc (N)) + UI_To_Int (L));
5649 ----------------------
5650 -- Set_End_Location --
5651 ----------------------
5653 procedure Set_End_Location (N : Node_Id; S : Source_Ptr) is
5656 UI_From_Int (Int (S) - Int (Sloc (N))));
5657 end Set_End_Location;
5666 V2 : Node_Kind) return Boolean
5669 return T = V1 or else
5677 V3 : Node_Kind) return Boolean
5680 return T = V1 or else
5690 V4 : Node_Kind) return Boolean
5693 return T = V1 or else
5705 V5 : Node_Kind) return Boolean
5708 return T = V1 or else
5722 V6 : Node_Kind) return Boolean
5725 return T = V1 or else
5741 V7 : Node_Kind) return Boolean
5744 return T = V1 or else
5762 V8 : Node_Kind) return Boolean
5765 return T = V1 or else
5779 function Pragma_Name (N : Node_Id) return Name_Id is
5781 return Chars (Pragma_Identifier (N));