1 ------------------------------------------------------------------------------
3 -- GNAT COMPILER COMPONENTS --
9 -- Copyright (C) 1992-2010, Free Software Foundation, Inc. --
11 -- GNAT is free software; you can redistribute it and/or modify it under --
12 -- terms of the GNU General Public License as published by the Free Soft- --
13 -- ware Foundation; either version 3, or (at your option) any later ver- --
14 -- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
15 -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
16 -- or FITNESS FOR A PARTICULAR PURPOSE. --
18 -- As a special exception under Section 7 of GPL version 3, you are granted --
19 -- additional permissions described in the GCC Runtime Library Exception, --
20 -- version 3.1, as published by the Free Software Foundation. --
22 -- You should have received a copy of the GNU General Public License and --
23 -- a copy of the GCC Runtime Library Exception along with this program; --
24 -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see --
25 -- <http://www.gnu.org/licenses/>. --
27 -- GNAT was originally developed by the GNAT team at New York University. --
28 -- Extensive contributions were provided by Ada Core Technologies Inc. --
30 ------------------------------------------------------------------------------
32 pragma Style_Checks (All_Checks);
33 -- No subprogram ordering check, due to logical grouping
35 with Atree; use Atree;
39 use Atree.Unchecked_Access;
40 -- This package is one of the few packages which is allowed to make direct
41 -- references to tree nodes (since it is in the business of providing a
42 -- higher level of tree access which other clients are expected to use and
43 -- which implements checks).
45 use Atree_Private_Part;
46 -- The only reason that we ask for direct access to the private part of
47 -- the tree package is so that we can directly reference the Nkind field
48 -- of nodes table entries. We do this since it helps the efficiency of
49 -- the Sinfo debugging checks considerably (note that when we are checking
50 -- Nkind values, we don't need to check for a valid node reference, because
51 -- we will check that anyway when we reference the field).
53 NT : Nodes.Table_Ptr renames Nodes.Table;
54 -- A short hand abbreviation, useful for the debugging checks
56 ----------------------------
57 -- Field Access Functions --
58 ----------------------------
60 function ABE_Is_Certain
61 (N : Node_Id) return Boolean is
64 or else NT (N).Nkind = N_Formal_Package_Declaration
65 or else NT (N).Nkind = N_Function_Call
66 or else NT (N).Nkind = N_Function_Instantiation
67 or else NT (N).Nkind = N_Package_Instantiation
68 or else NT (N).Nkind = N_Procedure_Call_Statement
69 or else NT (N).Nkind = N_Procedure_Instantiation);
73 function Abort_Present
74 (N : Node_Id) return Boolean is
77 or else NT (N).Nkind = N_Requeue_Statement);
81 function Abortable_Part
82 (N : Node_Id) return Node_Id is
85 or else NT (N).Nkind = N_Asynchronous_Select);
89 function Abstract_Present
90 (N : Node_Id) return Boolean is
93 or else NT (N).Nkind = N_Derived_Type_Definition
94 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
95 or else NT (N).Nkind = N_Formal_Private_Type_Definition
96 or else NT (N).Nkind = N_Private_Extension_Declaration
97 or else NT (N).Nkind = N_Private_Type_Declaration
98 or else NT (N).Nkind = N_Record_Definition);
100 end Abstract_Present;
102 function Accept_Handler_Records
103 (N : Node_Id) return List_Id is
106 or else NT (N).Nkind = N_Accept_Alternative);
108 end Accept_Handler_Records;
110 function Accept_Statement
111 (N : Node_Id) return Node_Id is
114 or else NT (N).Nkind = N_Accept_Alternative);
116 end Accept_Statement;
118 function Access_Definition
119 (N : Node_Id) return Node_Id is
122 or else NT (N).Nkind = N_Component_Definition
123 or else NT (N).Nkind = N_Formal_Object_Declaration
124 or else NT (N).Nkind = N_Object_Renaming_Declaration);
126 end Access_Definition;
128 function Access_To_Subprogram_Definition
129 (N : Node_Id) return Node_Id is
132 or else NT (N).Nkind = N_Access_Definition);
134 end Access_To_Subprogram_Definition;
136 function Access_Types_To_Process
137 (N : Node_Id) return Elist_Id is
140 or else NT (N).Nkind = N_Freeze_Entity);
142 end Access_Types_To_Process;
145 (N : Node_Id) return List_Id is
148 or else NT (N).Nkind = N_And_Then
149 or else NT (N).Nkind = N_Case_Expression_Alternative
150 or else NT (N).Nkind = N_Compilation_Unit_Aux
151 or else NT (N).Nkind = N_Expression_With_Actions
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
227 or else NT (N).Nkind = N_Use_Type_Clause);
231 function Alternatives
232 (N : Node_Id) return List_Id is
235 or else NT (N).Nkind = N_Case_Expression
236 or else NT (N).Nkind = N_Case_Statement
237 or else NT (N).Nkind = N_In
238 or else NT (N).Nkind = N_Not_In);
242 function Ancestor_Part
243 (N : Node_Id) return Node_Id is
246 or else NT (N).Nkind = N_Extension_Aggregate);
250 function Array_Aggregate
251 (N : Node_Id) return Node_Id is
254 or else NT (N).Nkind = N_Enumeration_Representation_Clause);
258 function Aspect_Cancel
259 (N : Node_Id) return Boolean is
262 or else NT (N).Nkind = N_Pragma);
266 function Aspect_Rep_Item
267 (N : Node_Id) return Node_Id is
270 or else NT (N).Nkind = N_Aspect_Specification);
274 function Assignment_OK
275 (N : Node_Id) return Boolean is
278 or else NT (N).Nkind = N_Object_Declaration
279 or else NT (N).Nkind in N_Subexpr);
283 function Associated_Node
284 (N : Node_Id) return Node_Id is
287 or else NT (N).Nkind in N_Has_Entity
288 or else NT (N).Nkind = N_Aggregate
289 or else NT (N).Nkind = N_Extension_Aggregate
290 or else NT (N).Nkind = N_Selected_Component);
295 (N : Node_Id) return Node_Id is
298 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements);
302 function Attribute_Name
303 (N : Node_Id) return Name_Id is
306 or else NT (N).Nkind = N_Attribute_Reference);
310 function Aux_Decls_Node
311 (N : Node_Id) return Node_Id is
314 or else NT (N).Nkind = N_Compilation_Unit);
318 function Backwards_OK
319 (N : Node_Id) return Boolean is
322 or else NT (N).Nkind = N_Assignment_Statement);
326 function Bad_Is_Detected
327 (N : Node_Id) return Boolean is
330 or else NT (N).Nkind = N_Subprogram_Body);
334 function Body_Required
335 (N : Node_Id) return Boolean is
338 or else NT (N).Nkind = N_Compilation_Unit);
342 function Body_To_Inline
343 (N : Node_Id) return Node_Id is
346 or else NT (N).Nkind = N_Subprogram_Declaration);
351 (N : Node_Id) return Boolean is
354 or else NT (N).Nkind = N_Component_Association
355 or else NT (N).Nkind = N_Formal_Abstract_Subprogram_Declaration
356 or else NT (N).Nkind = N_Formal_Concrete_Subprogram_Declaration
357 or else NT (N).Nkind = N_Formal_Package_Declaration
358 or else NT (N).Nkind = N_Generic_Association);
363 (N : Node_Id) return Boolean is
366 or else NT (N).Nkind = N_Extended_Return_Statement
367 or else NT (N).Nkind = N_Return_Statement);
371 function Char_Literal_Value
372 (N : Node_Id) return Uint is
375 or else NT (N).Nkind = N_Character_Literal);
377 end Char_Literal_Value;
380 (N : Node_Id) return Name_Id is
383 or else NT (N).Nkind in N_Has_Chars);
387 function Check_Address_Alignment
388 (N : Node_Id) return Boolean is
391 or else NT (N).Nkind = N_Attribute_Definition_Clause);
393 end Check_Address_Alignment;
395 function Choice_Parameter
396 (N : Node_Id) return Node_Id is
399 or else NT (N).Nkind = N_Exception_Handler);
401 end Choice_Parameter;
404 (N : Node_Id) return List_Id is
407 or else NT (N).Nkind = N_Component_Association);
411 function Class_Present
412 (N : Node_Id) return Boolean is
415 or else NT (N).Nkind = N_Aspect_Specification
416 or else NT (N).Nkind = N_Pragma);
420 function Coextensions
421 (N : Node_Id) return Elist_Id is
424 or else NT (N).Nkind = N_Allocator);
428 function Comes_From_Extended_Return_Statement
429 (N : Node_Id) return Boolean is
432 or else NT (N).Nkind = N_Return_Statement);
434 end Comes_From_Extended_Return_Statement;
436 function Compile_Time_Known_Aggregate
437 (N : Node_Id) return Boolean is
440 or else NT (N).Nkind = N_Aggregate);
442 end Compile_Time_Known_Aggregate;
444 function Component_Associations
445 (N : Node_Id) return List_Id is
448 or else NT (N).Nkind = N_Aggregate
449 or else NT (N).Nkind = N_Extension_Aggregate);
451 end Component_Associations;
453 function Component_Clauses
454 (N : Node_Id) return List_Id is
457 or else NT (N).Nkind = N_Record_Representation_Clause);
459 end Component_Clauses;
461 function Component_Definition
462 (N : Node_Id) return Node_Id is
465 or else NT (N).Nkind = N_Component_Declaration
466 or else NT (N).Nkind = N_Constrained_Array_Definition
467 or else NT (N).Nkind = N_Unconstrained_Array_Definition);
469 end Component_Definition;
471 function Component_Items
472 (N : Node_Id) return List_Id is
475 or else NT (N).Nkind = N_Component_List);
479 function Component_List
480 (N : Node_Id) return Node_Id is
483 or else NT (N).Nkind = N_Record_Definition
484 or else NT (N).Nkind = N_Variant);
488 function Component_Name
489 (N : Node_Id) return Node_Id is
492 or else NT (N).Nkind = N_Component_Clause);
496 function Componentwise_Assignment
497 (N : Node_Id) return Boolean is
500 or else NT (N).Nkind = N_Assignment_Statement);
502 end Componentwise_Assignment;
505 (N : Node_Id) return Node_Id is
508 or else NT (N).Nkind = N_Accept_Alternative
509 or else NT (N).Nkind = N_Delay_Alternative
510 or else NT (N).Nkind = N_Elsif_Part
511 or else NT (N).Nkind = N_Entry_Body_Formal_Part
512 or else NT (N).Nkind = N_Exit_Statement
513 or else NT (N).Nkind = N_If_Statement
514 or else NT (N).Nkind = N_Iteration_Scheme
515 or else NT (N).Nkind = N_Raise_Constraint_Error
516 or else NT (N).Nkind = N_Raise_Program_Error
517 or else NT (N).Nkind = N_Raise_Storage_Error
518 or else NT (N).Nkind = N_Terminate_Alternative);
522 function Condition_Actions
523 (N : Node_Id) return List_Id is
526 or else NT (N).Nkind = N_Elsif_Part
527 or else NT (N).Nkind = N_Iteration_Scheme);
529 end Condition_Actions;
531 function Config_Pragmas
532 (N : Node_Id) return List_Id is
535 or else NT (N).Nkind = N_Compilation_Unit_Aux);
539 function Constant_Present
540 (N : Node_Id) return Boolean is
543 or else NT (N).Nkind = N_Access_Definition
544 or else NT (N).Nkind = N_Access_To_Object_Definition
545 or else NT (N).Nkind = N_Object_Declaration);
547 end Constant_Present;
550 (N : Node_Id) return Node_Id is
553 or else NT (N).Nkind = N_Subtype_Indication);
558 (N : Node_Id) return List_Id is
561 or else NT (N).Nkind = N_Index_Or_Discriminant_Constraint);
565 function Context_Installed
566 (N : Node_Id) return Boolean is
569 or else NT (N).Nkind = N_With_Clause);
571 end Context_Installed;
573 function Context_Items
574 (N : Node_Id) return List_Id is
577 or else NT (N).Nkind = N_Compilation_Unit);
581 function Context_Pending
582 (N : Node_Id) return Boolean is
585 or else NT (N).Nkind = N_Compilation_Unit);
589 function Controlling_Argument
590 (N : Node_Id) return Node_Id is
593 or else NT (N).Nkind = N_Function_Call
594 or else NT (N).Nkind = N_Procedure_Call_Statement);
596 end Controlling_Argument;
598 function Conversion_OK
599 (N : Node_Id) return Boolean is
602 or else NT (N).Nkind = N_Type_Conversion);
606 function Corresponding_Body
607 (N : Node_Id) return Node_Id is
610 or else NT (N).Nkind = N_Entry_Declaration
611 or else NT (N).Nkind = N_Generic_Package_Declaration
612 or else NT (N).Nkind = N_Generic_Subprogram_Declaration
613 or else NT (N).Nkind = N_Package_Body_Stub
614 or else NT (N).Nkind = N_Package_Declaration
615 or else NT (N).Nkind = N_Protected_Body_Stub
616 or else NT (N).Nkind = N_Protected_Type_Declaration
617 or else NT (N).Nkind = N_Subprogram_Body_Stub
618 or else NT (N).Nkind = N_Subprogram_Declaration
619 or else NT (N).Nkind = N_Task_Body_Stub
620 or else NT (N).Nkind = N_Task_Type_Declaration);
622 end Corresponding_Body;
624 function Corresponding_Formal_Spec
625 (N : Node_Id) return Node_Id is
628 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration);
630 end Corresponding_Formal_Spec;
632 function Corresponding_Generic_Association
633 (N : Node_Id) return Node_Id is
636 or else NT (N).Nkind = N_Object_Declaration
637 or else NT (N).Nkind = N_Object_Renaming_Declaration);
639 end Corresponding_Generic_Association;
641 function Corresponding_Integer_Value
642 (N : Node_Id) return Uint is
645 or else NT (N).Nkind = N_Real_Literal);
647 end Corresponding_Integer_Value;
649 function Corresponding_Spec
650 (N : Node_Id) return Node_Id is
653 or else NT (N).Nkind = N_Package_Body
654 or else NT (N).Nkind = N_Protected_Body
655 or else NT (N).Nkind = N_Subprogram_Body
656 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration
657 or else NT (N).Nkind = N_Task_Body
658 or else NT (N).Nkind = N_With_Clause);
660 end Corresponding_Spec;
662 function Corresponding_Stub
663 (N : Node_Id) return Node_Id is
666 or else NT (N).Nkind = N_Subunit);
668 end Corresponding_Stub;
670 function Dcheck_Function
671 (N : Node_Id) return Entity_Id is
674 or else NT (N).Nkind = N_Variant);
678 function Debug_Statement
679 (N : Node_Id) return Node_Id is
682 or else NT (N).Nkind = N_Pragma);
686 function Declarations
687 (N : Node_Id) return List_Id is
690 or else NT (N).Nkind = N_Accept_Statement
691 or else NT (N).Nkind = N_Block_Statement
692 or else NT (N).Nkind = N_Compilation_Unit_Aux
693 or else NT (N).Nkind = N_Entry_Body
694 or else NT (N).Nkind = N_Package_Body
695 or else NT (N).Nkind = N_Protected_Body
696 or else NT (N).Nkind = N_Subprogram_Body
697 or else NT (N).Nkind = N_Task_Body);
701 function Default_Expression
702 (N : Node_Id) return Node_Id is
705 or else NT (N).Nkind = N_Formal_Object_Declaration
706 or else NT (N).Nkind = N_Parameter_Specification);
708 end Default_Expression;
710 function Default_Name
711 (N : Node_Id) return Node_Id is
714 or else NT (N).Nkind = N_Formal_Abstract_Subprogram_Declaration
715 or else NT (N).Nkind = N_Formal_Concrete_Subprogram_Declaration);
719 function Defining_Identifier
720 (N : Node_Id) return Entity_Id is
723 or else NT (N).Nkind = N_Component_Declaration
724 or else NT (N).Nkind = N_Defining_Program_Unit_Name
725 or else NT (N).Nkind = N_Discriminant_Specification
726 or else NT (N).Nkind = N_Entry_Body
727 or else NT (N).Nkind = N_Entry_Declaration
728 or else NT (N).Nkind = N_Entry_Index_Specification
729 or else NT (N).Nkind = N_Exception_Declaration
730 or else NT (N).Nkind = N_Exception_Renaming_Declaration
731 or else NT (N).Nkind = N_Formal_Object_Declaration
732 or else NT (N).Nkind = N_Formal_Package_Declaration
733 or else NT (N).Nkind = N_Formal_Type_Declaration
734 or else NT (N).Nkind = N_Full_Type_Declaration
735 or else NT (N).Nkind = N_Implicit_Label_Declaration
736 or else NT (N).Nkind = N_Incomplete_Type_Declaration
737 or else NT (N).Nkind = N_Loop_Parameter_Specification
738 or else NT (N).Nkind = N_Number_Declaration
739 or else NT (N).Nkind = N_Object_Declaration
740 or else NT (N).Nkind = N_Object_Renaming_Declaration
741 or else NT (N).Nkind = N_Package_Body_Stub
742 or else NT (N).Nkind = N_Parameter_Specification
743 or else NT (N).Nkind = N_Private_Extension_Declaration
744 or else NT (N).Nkind = N_Private_Type_Declaration
745 or else NT (N).Nkind = N_Protected_Body
746 or else NT (N).Nkind = N_Protected_Body_Stub
747 or else NT (N).Nkind = N_Protected_Type_Declaration
748 or else NT (N).Nkind = N_Single_Protected_Declaration
749 or else NT (N).Nkind = N_Single_Task_Declaration
750 or else NT (N).Nkind = N_Subtype_Declaration
751 or else NT (N).Nkind = N_Task_Body
752 or else NT (N).Nkind = N_Task_Body_Stub
753 or else NT (N).Nkind = N_Task_Type_Declaration);
755 end Defining_Identifier;
757 function Defining_Unit_Name
758 (N : Node_Id) return Node_Id is
761 or else NT (N).Nkind = N_Function_Instantiation
762 or else NT (N).Nkind = N_Function_Specification
763 or else NT (N).Nkind = N_Generic_Function_Renaming_Declaration
764 or else NT (N).Nkind = N_Generic_Package_Renaming_Declaration
765 or else NT (N).Nkind = N_Generic_Procedure_Renaming_Declaration
766 or else NT (N).Nkind = N_Package_Body
767 or else NT (N).Nkind = N_Package_Instantiation
768 or else NT (N).Nkind = N_Package_Renaming_Declaration
769 or else NT (N).Nkind = N_Package_Specification
770 or else NT (N).Nkind = N_Procedure_Instantiation
771 or else NT (N).Nkind = N_Procedure_Specification);
773 end Defining_Unit_Name;
775 function Delay_Alternative
776 (N : Node_Id) return Node_Id is
779 or else NT (N).Nkind = N_Timed_Entry_Call);
781 end Delay_Alternative;
783 function Delay_Statement
784 (N : Node_Id) return Node_Id is
787 or else NT (N).Nkind = N_Delay_Alternative);
791 function Delta_Expression
792 (N : Node_Id) return Node_Id is
795 or else NT (N).Nkind = N_Decimal_Fixed_Point_Definition
796 or else NT (N).Nkind = N_Delta_Constraint
797 or else NT (N).Nkind = N_Ordinary_Fixed_Point_Definition);
799 end Delta_Expression;
801 function Digits_Expression
802 (N : Node_Id) return Node_Id is
805 or else NT (N).Nkind = N_Decimal_Fixed_Point_Definition
806 or else NT (N).Nkind = N_Digits_Constraint
807 or else NT (N).Nkind = N_Floating_Point_Definition);
809 end Digits_Expression;
811 function Discr_Check_Funcs_Built
812 (N : Node_Id) return Boolean is
815 or else NT (N).Nkind = N_Full_Type_Declaration);
817 end Discr_Check_Funcs_Built;
819 function Discrete_Choices
820 (N : Node_Id) return List_Id is
823 or else NT (N).Nkind = N_Case_Expression_Alternative
824 or else NT (N).Nkind = N_Case_Statement_Alternative
825 or else NT (N).Nkind = N_Variant);
827 end Discrete_Choices;
829 function Discrete_Range
830 (N : Node_Id) return Node_Id is
833 or else NT (N).Nkind = N_Slice);
837 function Discrete_Subtype_Definition
838 (N : Node_Id) return Node_Id is
841 or else NT (N).Nkind = N_Entry_Declaration
842 or else NT (N).Nkind = N_Entry_Index_Specification
843 or else NT (N).Nkind = N_Loop_Parameter_Specification);
845 end Discrete_Subtype_Definition;
847 function Discrete_Subtype_Definitions
848 (N : Node_Id) return List_Id is
851 or else NT (N).Nkind = N_Constrained_Array_Definition);
853 end Discrete_Subtype_Definitions;
855 function Discriminant_Specifications
856 (N : Node_Id) return List_Id is
859 or else NT (N).Nkind = N_Formal_Type_Declaration
860 or else NT (N).Nkind = N_Full_Type_Declaration
861 or else NT (N).Nkind = N_Incomplete_Type_Declaration
862 or else NT (N).Nkind = N_Private_Extension_Declaration
863 or else NT (N).Nkind = N_Private_Type_Declaration
864 or else NT (N).Nkind = N_Protected_Type_Declaration
865 or else NT (N).Nkind = N_Task_Type_Declaration);
867 end Discriminant_Specifications;
869 function Discriminant_Type
870 (N : Node_Id) return Node_Id is
873 or else NT (N).Nkind = N_Discriminant_Specification);
875 end Discriminant_Type;
877 function Do_Accessibility_Check
878 (N : Node_Id) return Boolean is
881 or else NT (N).Nkind = N_Parameter_Specification);
883 end Do_Accessibility_Check;
885 function Do_Discriminant_Check
886 (N : Node_Id) return Boolean is
889 or else NT (N).Nkind = N_Selected_Component);
891 end Do_Discriminant_Check;
893 function Do_Division_Check
894 (N : Node_Id) return Boolean is
897 or else NT (N).Nkind = N_Op_Divide
898 or else NT (N).Nkind = N_Op_Mod
899 or else NT (N).Nkind = N_Op_Rem);
901 end Do_Division_Check;
903 function Do_Length_Check
904 (N : Node_Id) return Boolean is
907 or else NT (N).Nkind = N_Assignment_Statement
908 or else NT (N).Nkind = N_Op_And
909 or else NT (N).Nkind = N_Op_Or
910 or else NT (N).Nkind = N_Op_Xor
911 or else NT (N).Nkind = N_Type_Conversion);
915 function Do_Overflow_Check
916 (N : Node_Id) return Boolean is
919 or else NT (N).Nkind in N_Op
920 or else NT (N).Nkind = N_Attribute_Reference
921 or else NT (N).Nkind = N_Type_Conversion);
923 end Do_Overflow_Check;
925 function Do_Range_Check
926 (N : Node_Id) return Boolean is
929 or else NT (N).Nkind in N_Subexpr);
933 function Do_Storage_Check
934 (N : Node_Id) return Boolean is
937 or else NT (N).Nkind = N_Allocator
938 or else NT (N).Nkind = N_Subprogram_Body);
940 end Do_Storage_Check;
942 function Do_Tag_Check
943 (N : Node_Id) return Boolean is
946 or else NT (N).Nkind = N_Assignment_Statement
947 or else NT (N).Nkind = N_Extended_Return_Statement
948 or else NT (N).Nkind = N_Function_Call
949 or else NT (N).Nkind = N_Procedure_Call_Statement
950 or else NT (N).Nkind = N_Return_Statement
951 or else NT (N).Nkind = N_Type_Conversion);
955 function Elaborate_All_Desirable
956 (N : Node_Id) return Boolean is
959 or else NT (N).Nkind = N_With_Clause);
961 end Elaborate_All_Desirable;
963 function Elaborate_All_Present
964 (N : Node_Id) return Boolean is
967 or else NT (N).Nkind = N_With_Clause);
969 end Elaborate_All_Present;
971 function Elaborate_Desirable
972 (N : Node_Id) return Boolean is
975 or else NT (N).Nkind = N_With_Clause);
977 end Elaborate_Desirable;
979 function Elaborate_Present
980 (N : Node_Id) return Boolean is
983 or else NT (N).Nkind = N_With_Clause);
985 end Elaborate_Present;
987 function Elaboration_Boolean
988 (N : Node_Id) return Node_Id is
991 or else NT (N).Nkind = N_Function_Specification
992 or else NT (N).Nkind = N_Procedure_Specification);
994 end Elaboration_Boolean;
996 function Else_Actions
997 (N : Node_Id) return List_Id is
1000 or else NT (N).Nkind = N_Conditional_Expression);
1004 function Else_Statements
1005 (N : Node_Id) return List_Id is
1007 pragma Assert (False
1008 or else NT (N).Nkind = N_Conditional_Entry_Call
1009 or else NT (N).Nkind = N_If_Statement
1010 or else NT (N).Nkind = N_Selective_Accept);
1012 end Else_Statements;
1014 function Elsif_Parts
1015 (N : Node_Id) return List_Id is
1017 pragma Assert (False
1018 or else NT (N).Nkind = N_If_Statement);
1022 function Enclosing_Variant
1023 (N : Node_Id) return Node_Id is
1025 pragma Assert (False
1026 or else NT (N).Nkind = N_Variant);
1028 end Enclosing_Variant;
1031 (N : Node_Id) return Node_Id is
1033 pragma Assert (False
1034 or else NT (N).Nkind = N_Enumeration_Type_Definition
1035 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements
1036 or else NT (N).Nkind = N_Loop_Statement
1037 or else NT (N).Nkind = N_Package_Specification
1038 or else NT (N).Nkind = N_Protected_Body
1039 or else NT (N).Nkind = N_Protected_Definition
1040 or else NT (N).Nkind = N_Record_Definition
1041 or else NT (N).Nkind = N_Task_Definition);
1046 (N : Node_Id) return Uint is
1048 pragma Assert (False
1049 or else NT (N).Nkind = N_Case_Statement
1050 or else NT (N).Nkind = N_If_Statement);
1055 (N : Node_Id) return Node_Id is
1057 pragma Assert (False
1058 or else NT (N).Nkind in N_Has_Entity
1059 or else NT (N).Nkind = N_Aspect_Specification
1060 or else NT (N).Nkind = N_Attribute_Definition_Clause
1061 or else NT (N).Nkind = N_Freeze_Entity);
1065 function Entity_Or_Associated_Node
1066 (N : Node_Id) return Node_Id is
1068 pragma Assert (False
1069 or else NT (N).Nkind in N_Has_Entity
1070 or else NT (N).Nkind = N_Freeze_Entity);
1072 end Entity_Or_Associated_Node;
1074 function Entry_Body_Formal_Part
1075 (N : Node_Id) return Node_Id is
1077 pragma Assert (False
1078 or else NT (N).Nkind = N_Entry_Body);
1080 end Entry_Body_Formal_Part;
1082 function Entry_Call_Alternative
1083 (N : Node_Id) return Node_Id is
1085 pragma Assert (False
1086 or else NT (N).Nkind = N_Conditional_Entry_Call
1087 or else NT (N).Nkind = N_Timed_Entry_Call);
1089 end Entry_Call_Alternative;
1091 function Entry_Call_Statement
1092 (N : Node_Id) return Node_Id is
1094 pragma Assert (False
1095 or else NT (N).Nkind = N_Entry_Call_Alternative);
1097 end Entry_Call_Statement;
1099 function Entry_Direct_Name
1100 (N : Node_Id) return Node_Id is
1102 pragma Assert (False
1103 or else NT (N).Nkind = N_Accept_Statement);
1105 end Entry_Direct_Name;
1107 function Entry_Index
1108 (N : Node_Id) return Node_Id is
1110 pragma Assert (False
1111 or else NT (N).Nkind = N_Accept_Statement);
1115 function Entry_Index_Specification
1116 (N : Node_Id) return Node_Id is
1118 pragma Assert (False
1119 or else NT (N).Nkind = N_Entry_Body_Formal_Part);
1121 end Entry_Index_Specification;
1124 (N : Node_Id) return Node_Id is
1126 pragma Assert (False
1127 or else NT (N).Nkind in N_Has_Etype);
1131 function Exception_Choices
1132 (N : Node_Id) return List_Id is
1134 pragma Assert (False
1135 or else NT (N).Nkind = N_Exception_Handler);
1137 end Exception_Choices;
1139 function Exception_Handlers
1140 (N : Node_Id) return List_Id is
1142 pragma Assert (False
1143 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements);
1145 end Exception_Handlers;
1147 function Exception_Junk
1148 (N : Node_Id) return Boolean is
1150 pragma Assert (False
1151 or else NT (N).Nkind = N_Block_Statement
1152 or else NT (N).Nkind = N_Goto_Statement
1153 or else NT (N).Nkind = N_Label
1154 or else NT (N).Nkind = N_Object_Declaration
1155 or else NT (N).Nkind = N_Subtype_Declaration);
1159 function Exception_Label
1160 (N : Node_Id) return Node_Id is
1162 pragma Assert (False
1163 or else NT (N).Nkind = N_Exception_Handler
1164 or else NT (N).Nkind = N_Push_Constraint_Error_Label
1165 or else NT (N).Nkind = N_Push_Program_Error_Label
1166 or else NT (N).Nkind = N_Push_Storage_Error_Label);
1168 end Exception_Label;
1170 function Expansion_Delayed
1171 (N : Node_Id) return Boolean is
1173 pragma Assert (False
1174 or else NT (N).Nkind = N_Aggregate
1175 or else NT (N).Nkind = N_Extension_Aggregate);
1177 end Expansion_Delayed;
1179 function Explicit_Actual_Parameter
1180 (N : Node_Id) return Node_Id is
1182 pragma Assert (False
1183 or else NT (N).Nkind = N_Parameter_Association);
1185 end Explicit_Actual_Parameter;
1187 function Explicit_Generic_Actual_Parameter
1188 (N : Node_Id) return Node_Id is
1190 pragma Assert (False
1191 or else NT (N).Nkind = N_Generic_Association);
1193 end Explicit_Generic_Actual_Parameter;
1196 (N : Node_Id) return Node_Id is
1198 pragma Assert (False
1199 or else NT (N).Nkind = N_Allocator
1200 or else NT (N).Nkind = N_Aspect_Specification
1201 or else NT (N).Nkind = N_Assignment_Statement
1202 or else NT (N).Nkind = N_At_Clause
1203 or else NT (N).Nkind = N_Attribute_Definition_Clause
1204 or else NT (N).Nkind = N_Case_Expression
1205 or else NT (N).Nkind = N_Case_Expression_Alternative
1206 or else NT (N).Nkind = N_Case_Statement
1207 or else NT (N).Nkind = N_Code_Statement
1208 or else NT (N).Nkind = N_Component_Association
1209 or else NT (N).Nkind = N_Component_Declaration
1210 or else NT (N).Nkind = N_Delay_Relative_Statement
1211 or else NT (N).Nkind = N_Delay_Until_Statement
1212 or else NT (N).Nkind = N_Discriminant_Association
1213 or else NT (N).Nkind = N_Discriminant_Specification
1214 or else NT (N).Nkind = N_Exception_Declaration
1215 or else NT (N).Nkind = N_Expression_With_Actions
1216 or else NT (N).Nkind = N_Free_Statement
1217 or else NT (N).Nkind = N_Mod_Clause
1218 or else NT (N).Nkind = N_Modular_Type_Definition
1219 or else NT (N).Nkind = N_Number_Declaration
1220 or else NT (N).Nkind = N_Object_Declaration
1221 or else NT (N).Nkind = N_Parameter_Specification
1222 or else NT (N).Nkind = N_Parameterized_Expression
1223 or else NT (N).Nkind = N_Pragma_Argument_Association
1224 or else NT (N).Nkind = N_Qualified_Expression
1225 or else NT (N).Nkind = N_Raise_Statement
1226 or else NT (N).Nkind = N_Return_Statement
1227 or else NT (N).Nkind = N_Type_Conversion
1228 or else NT (N).Nkind = N_Unchecked_Expression
1229 or else NT (N).Nkind = N_Unchecked_Type_Conversion);
1233 function Expressions
1234 (N : Node_Id) return List_Id is
1236 pragma Assert (False
1237 or else NT (N).Nkind = N_Aggregate
1238 or else NT (N).Nkind = N_Attribute_Reference
1239 or else NT (N).Nkind = N_Conditional_Expression
1240 or else NT (N).Nkind = N_Extension_Aggregate
1241 or else NT (N).Nkind = N_Indexed_Component);
1246 (N : Node_Id) return Node_Id is
1248 pragma Assert (False
1249 or else NT (N).Nkind = N_Component_Clause);
1253 function First_Inlined_Subprogram
1254 (N : Node_Id) return Entity_Id is
1256 pragma Assert (False
1257 or else NT (N).Nkind = N_Compilation_Unit);
1259 end First_Inlined_Subprogram;
1262 (N : Node_Id) return Boolean is
1264 pragma Assert (False
1265 or else NT (N).Nkind = N_With_Clause);
1269 function First_Named_Actual
1270 (N : Node_Id) return Node_Id is
1272 pragma Assert (False
1273 or else NT (N).Nkind = N_Entry_Call_Statement
1274 or else NT (N).Nkind = N_Function_Call
1275 or else NT (N).Nkind = N_Procedure_Call_Statement);
1277 end First_Named_Actual;
1279 function First_Real_Statement
1280 (N : Node_Id) return Node_Id is
1282 pragma Assert (False
1283 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements);
1285 end First_Real_Statement;
1287 function First_Subtype_Link
1288 (N : Node_Id) return Entity_Id is
1290 pragma Assert (False
1291 or else NT (N).Nkind = N_Freeze_Entity);
1293 end First_Subtype_Link;
1295 function Float_Truncate
1296 (N : Node_Id) return Boolean is
1298 pragma Assert (False
1299 or else NT (N).Nkind = N_Type_Conversion);
1303 function Formal_Type_Definition
1304 (N : Node_Id) return Node_Id is
1306 pragma Assert (False
1307 or else NT (N).Nkind = N_Formal_Type_Declaration);
1309 end Formal_Type_Definition;
1311 function Forwards_OK
1312 (N : Node_Id) return Boolean is
1314 pragma Assert (False
1315 or else NT (N).Nkind = N_Assignment_Statement);
1319 function From_Aspect_Specification
1320 (N : Node_Id) return Boolean is
1322 pragma Assert (False
1323 or else NT (N).Nkind = N_Attribute_Definition_Clause
1324 or else NT (N).Nkind = N_Pragma);
1326 end From_Aspect_Specification;
1328 function From_At_End
1329 (N : Node_Id) return Boolean is
1331 pragma Assert (False
1332 or else NT (N).Nkind = N_Raise_Statement);
1336 function From_At_Mod
1337 (N : Node_Id) return Boolean is
1339 pragma Assert (False
1340 or else NT (N).Nkind = N_Attribute_Definition_Clause);
1344 function From_Default
1345 (N : Node_Id) return Boolean is
1347 pragma Assert (False
1348 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration);
1352 function Generic_Associations
1353 (N : Node_Id) return List_Id is
1355 pragma Assert (False
1356 or else NT (N).Nkind = N_Formal_Package_Declaration
1357 or else NT (N).Nkind = N_Function_Instantiation
1358 or else NT (N).Nkind = N_Package_Instantiation
1359 or else NT (N).Nkind = N_Procedure_Instantiation);
1361 end Generic_Associations;
1363 function Generic_Formal_Declarations
1364 (N : Node_Id) return List_Id is
1366 pragma Assert (False
1367 or else NT (N).Nkind = N_Generic_Package_Declaration
1368 or else NT (N).Nkind = N_Generic_Subprogram_Declaration);
1370 end Generic_Formal_Declarations;
1372 function Generic_Parent
1373 (N : Node_Id) return Node_Id is
1375 pragma Assert (False
1376 or else NT (N).Nkind = N_Function_Specification
1377 or else NT (N).Nkind = N_Package_Specification
1378 or else NT (N).Nkind = N_Procedure_Specification);
1382 function Generic_Parent_Type
1383 (N : Node_Id) return Node_Id is
1385 pragma Assert (False
1386 or else NT (N).Nkind = N_Subtype_Declaration);
1388 end Generic_Parent_Type;
1390 function Handled_Statement_Sequence
1391 (N : Node_Id) return Node_Id is
1393 pragma Assert (False
1394 or else NT (N).Nkind = N_Accept_Statement
1395 or else NT (N).Nkind = N_Block_Statement
1396 or else NT (N).Nkind = N_Entry_Body
1397 or else NT (N).Nkind = N_Extended_Return_Statement
1398 or else NT (N).Nkind = N_Package_Body
1399 or else NT (N).Nkind = N_Subprogram_Body
1400 or else NT (N).Nkind = N_Task_Body);
1402 end Handled_Statement_Sequence;
1404 function Handler_List_Entry
1405 (N : Node_Id) return Node_Id is
1407 pragma Assert (False
1408 or else NT (N).Nkind = N_Object_Declaration);
1410 end Handler_List_Entry;
1412 function Has_Created_Identifier
1413 (N : Node_Id) return Boolean is
1415 pragma Assert (False
1416 or else NT (N).Nkind = N_Block_Statement
1417 or else NT (N).Nkind = N_Loop_Statement);
1419 end Has_Created_Identifier;
1421 function Has_Dynamic_Length_Check
1422 (N : Node_Id) return Boolean is
1425 end Has_Dynamic_Length_Check;
1426 function Has_Dynamic_Range_Check
1427 (N : Node_Id) return Boolean is
1430 end Has_Dynamic_Range_Check;
1432 function Has_Init_Expression
1433 (N : Node_Id) return Boolean is
1435 pragma Assert (False
1436 or else NT (N).Nkind = N_Object_Declaration);
1438 end Has_Init_Expression;
1440 function Has_Local_Raise
1441 (N : Node_Id) return Boolean is
1443 pragma Assert (False
1444 or else NT (N).Nkind = N_Exception_Handler);
1446 end Has_Local_Raise;
1448 function Has_No_Elaboration_Code
1449 (N : Node_Id) return Boolean is
1451 pragma Assert (False
1452 or else NT (N).Nkind = N_Compilation_Unit);
1454 end Has_No_Elaboration_Code;
1456 function Has_Pragma_CPU
1457 (N : Node_Id) return Boolean is
1459 pragma Assert (False
1460 or else NT (N).Nkind = N_Subprogram_Body
1461 or else NT (N).Nkind = N_Task_Definition);
1465 function Has_Pragma_Priority
1466 (N : Node_Id) return Boolean is
1468 pragma Assert (False
1469 or else NT (N).Nkind = N_Protected_Definition
1470 or else NT (N).Nkind = N_Subprogram_Body
1471 or else NT (N).Nkind = N_Task_Definition);
1473 end Has_Pragma_Priority;
1475 function Has_Pragma_Suppress_All
1476 (N : Node_Id) return Boolean is
1478 pragma Assert (False
1479 or else NT (N).Nkind = N_Compilation_Unit);
1481 end Has_Pragma_Suppress_All;
1483 function Has_Private_View
1484 (N : Node_Id) return Boolean is
1486 pragma Assert (False
1487 or else NT (N).Nkind in N_Op
1488 or else NT (N).Nkind = N_Character_Literal
1489 or else NT (N).Nkind = N_Expanded_Name
1490 or else NT (N).Nkind = N_Identifier
1491 or else NT (N).Nkind = N_Operator_Symbol);
1493 end Has_Private_View;
1495 function Has_Relative_Deadline_Pragma
1496 (N : Node_Id) return Boolean is
1498 pragma Assert (False
1499 or else NT (N).Nkind = N_Subprogram_Body
1500 or else NT (N).Nkind = N_Task_Definition);
1502 end Has_Relative_Deadline_Pragma;
1504 function Has_Self_Reference
1505 (N : Node_Id) return Boolean is
1507 pragma Assert (False
1508 or else NT (N).Nkind = N_Aggregate
1509 or else NT (N).Nkind = N_Extension_Aggregate);
1511 end Has_Self_Reference;
1513 function Has_Storage_Size_Pragma
1514 (N : Node_Id) return Boolean is
1516 pragma Assert (False
1517 or else NT (N).Nkind = N_Task_Definition);
1519 end Has_Storage_Size_Pragma;
1521 function Has_Task_Info_Pragma
1522 (N : Node_Id) return Boolean is
1524 pragma Assert (False
1525 or else NT (N).Nkind = N_Task_Definition);
1527 end Has_Task_Info_Pragma;
1529 function Has_Task_Name_Pragma
1530 (N : Node_Id) return Boolean is
1532 pragma Assert (False
1533 or else NT (N).Nkind = N_Task_Definition);
1535 end Has_Task_Name_Pragma;
1537 function Has_Wide_Character
1538 (N : Node_Id) return Boolean is
1540 pragma Assert (False
1541 or else NT (N).Nkind = N_String_Literal);
1543 end Has_Wide_Character;
1545 function Has_Wide_Wide_Character
1546 (N : Node_Id) return Boolean is
1548 pragma Assert (False
1549 or else NT (N).Nkind = N_String_Literal);
1551 end Has_Wide_Wide_Character;
1553 function Hidden_By_Use_Clause
1554 (N : Node_Id) return Elist_Id is
1556 pragma Assert (False
1557 or else NT (N).Nkind = N_Use_Package_Clause
1558 or else NT (N).Nkind = N_Use_Type_Clause);
1560 end Hidden_By_Use_Clause;
1563 (N : Node_Id) return Node_Id is
1565 pragma Assert (False
1566 or else NT (N).Nkind = N_Range
1567 or else NT (N).Nkind = N_Real_Range_Specification
1568 or else NT (N).Nkind = N_Signed_Integer_Type_Definition);
1573 (N : Node_Id) return Node_Id is
1575 pragma Assert (False
1576 or else NT (N).Nkind = N_Aspect_Specification
1577 or else NT (N).Nkind = N_At_Clause
1578 or else NT (N).Nkind = N_Block_Statement
1579 or else NT (N).Nkind = N_Designator
1580 or else NT (N).Nkind = N_Enumeration_Representation_Clause
1581 or else NT (N).Nkind = N_Label
1582 or else NT (N).Nkind = N_Loop_Statement
1583 or else NT (N).Nkind = N_Record_Representation_Clause
1584 or else NT (N).Nkind = N_Subprogram_Info);
1588 function Implicit_With
1589 (N : Node_Id) return Boolean is
1591 pragma Assert (False
1592 or else NT (N).Nkind = N_With_Clause);
1596 function Interface_List
1597 (N : Node_Id) return List_Id is
1599 pragma Assert (False
1600 or else NT (N).Nkind = N_Derived_Type_Definition
1601 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
1602 or else NT (N).Nkind = N_Private_Extension_Declaration
1603 or else NT (N).Nkind = N_Protected_Type_Declaration
1604 or else NT (N).Nkind = N_Record_Definition
1605 or else NT (N).Nkind = N_Single_Protected_Declaration
1606 or else NT (N).Nkind = N_Single_Task_Declaration
1607 or else NT (N).Nkind = N_Task_Type_Declaration);
1611 function Interface_Present
1612 (N : Node_Id) return Boolean is
1614 pragma Assert (False
1615 or else NT (N).Nkind = N_Derived_Type_Definition
1616 or else NT (N).Nkind = N_Record_Definition);
1618 end Interface_Present;
1620 function Import_Interface_Present
1621 (N : Node_Id) return Boolean is
1623 pragma Assert (False
1624 or else NT (N).Nkind = N_Pragma);
1626 end Import_Interface_Present;
1629 (N : Node_Id) return Boolean is
1631 pragma Assert (False
1632 or else NT (N).Nkind = N_Formal_Object_Declaration
1633 or else NT (N).Nkind = N_Parameter_Specification);
1637 function Includes_Infinities
1638 (N : Node_Id) return Boolean is
1640 pragma Assert (False
1641 or else NT (N).Nkind = N_Range);
1643 end Includes_Infinities;
1645 function Inherited_Discriminant
1646 (N : Node_Id) return Boolean is
1648 pragma Assert (False
1649 or else NT (N).Nkind = N_Component_Association);
1651 end Inherited_Discriminant;
1653 function Instance_Spec
1654 (N : Node_Id) return Node_Id is
1656 pragma Assert (False
1657 or else NT (N).Nkind = N_Formal_Package_Declaration
1658 or else NT (N).Nkind = N_Function_Instantiation
1659 or else NT (N).Nkind = N_Package_Instantiation
1660 or else NT (N).Nkind = N_Procedure_Instantiation);
1665 (N : Node_Id) return Uint is
1667 pragma Assert (False
1668 or else NT (N).Nkind = N_Integer_Literal);
1672 function Is_Accessibility_Actual
1673 (N : Node_Id) return Boolean is
1675 pragma Assert (False
1676 or else NT (N).Nkind = N_Parameter_Association);
1678 end Is_Accessibility_Actual;
1680 function Is_Asynchronous_Call_Block
1681 (N : Node_Id) return Boolean is
1683 pragma Assert (False
1684 or else NT (N).Nkind = N_Block_Statement);
1686 end Is_Asynchronous_Call_Block;
1688 function Is_Component_Left_Opnd
1689 (N : Node_Id) return Boolean is
1691 pragma Assert (False
1692 or else NT (N).Nkind = N_Op_Concat);
1694 end Is_Component_Left_Opnd;
1696 function Is_Component_Right_Opnd
1697 (N : Node_Id) return Boolean is
1699 pragma Assert (False
1700 or else NT (N).Nkind = N_Op_Concat);
1702 end Is_Component_Right_Opnd;
1704 function Is_Controlling_Actual
1705 (N : Node_Id) return Boolean is
1707 pragma Assert (False
1708 or else NT (N).Nkind in N_Subexpr);
1710 end Is_Controlling_Actual;
1712 function Is_Delayed_Aspect
1713 (N : Node_Id) return Boolean is
1715 pragma Assert (False
1716 or else NT (N).Nkind = N_Attribute_Definition_Clause
1717 or else NT (N).Nkind = N_Pragma);
1719 end Is_Delayed_Aspect;
1721 function Is_Dynamic_Coextension
1722 (N : Node_Id) return Boolean is
1724 pragma Assert (False
1725 or else NT (N).Nkind = N_Allocator);
1727 end Is_Dynamic_Coextension;
1730 (N : Node_Id) return Boolean is
1732 pragma Assert (False
1733 or else NT (N).Nkind = N_Conditional_Expression);
1737 function Is_Entry_Barrier_Function
1738 (N : Node_Id) return Boolean is
1740 pragma Assert (False
1741 or else NT (N).Nkind = N_Subprogram_Body);
1743 end Is_Entry_Barrier_Function;
1745 function Is_Expanded_Build_In_Place_Call
1746 (N : Node_Id) return Boolean is
1748 pragma Assert (False
1749 or else NT (N).Nkind = N_Function_Call);
1751 end Is_Expanded_Build_In_Place_Call;
1753 function Is_Folded_In_Parser
1754 (N : Node_Id) return Boolean is
1756 pragma Assert (False
1757 or else NT (N).Nkind = N_String_Literal);
1759 end Is_Folded_In_Parser;
1761 function Is_In_Discriminant_Check
1762 (N : Node_Id) return Boolean is
1764 pragma Assert (False
1765 or else NT (N).Nkind = N_Selected_Component);
1767 end Is_In_Discriminant_Check;
1769 function Is_Machine_Number
1770 (N : Node_Id) return Boolean is
1772 pragma Assert (False
1773 or else NT (N).Nkind = N_Real_Literal);
1775 end Is_Machine_Number;
1777 function Is_Null_Loop
1778 (N : Node_Id) return Boolean is
1780 pragma Assert (False
1781 or else NT (N).Nkind = N_Loop_Statement);
1785 function Is_Overloaded
1786 (N : Node_Id) return Boolean is
1788 pragma Assert (False
1789 or else NT (N).Nkind in N_Subexpr);
1793 function Is_Power_Of_2_For_Shift
1794 (N : Node_Id) return Boolean is
1796 pragma Assert (False
1797 or else NT (N).Nkind = N_Op_Expon);
1799 end Is_Power_Of_2_For_Shift;
1801 function Is_Protected_Subprogram_Body
1802 (N : Node_Id) return Boolean is
1804 pragma Assert (False
1805 or else NT (N).Nkind = N_Subprogram_Body);
1807 end Is_Protected_Subprogram_Body;
1809 function Is_Static_Coextension
1810 (N : Node_Id) return Boolean is
1812 pragma Assert (False
1813 or else NT (N).Nkind = N_Allocator);
1815 end Is_Static_Coextension;
1817 function Is_Static_Expression
1818 (N : Node_Id) return Boolean is
1820 pragma Assert (False
1821 or else NT (N).Nkind in N_Subexpr);
1823 end Is_Static_Expression;
1825 function Is_Subprogram_Descriptor
1826 (N : Node_Id) return Boolean is
1828 pragma Assert (False
1829 or else NT (N).Nkind = N_Object_Declaration);
1831 end Is_Subprogram_Descriptor;
1833 function Is_Task_Allocation_Block
1834 (N : Node_Id) return Boolean is
1836 pragma Assert (False
1837 or else NT (N).Nkind = N_Block_Statement);
1839 end Is_Task_Allocation_Block;
1841 function Is_Task_Master
1842 (N : Node_Id) return Boolean is
1844 pragma Assert (False
1845 or else NT (N).Nkind = N_Block_Statement
1846 or else NT (N).Nkind = N_Subprogram_Body
1847 or else NT (N).Nkind = N_Task_Body);
1851 function Iteration_Scheme
1852 (N : Node_Id) return Node_Id is
1854 pragma Assert (False
1855 or else NT (N).Nkind = N_Loop_Statement);
1857 end Iteration_Scheme;
1860 (N : Node_Id) return Node_Id is
1862 pragma Assert (False
1863 or else NT (N).Nkind = N_Itype_Reference);
1867 function Kill_Range_Check
1868 (N : Node_Id) return Boolean is
1870 pragma Assert (False
1871 or else NT (N).Nkind = N_Unchecked_Type_Conversion);
1873 end Kill_Range_Check;
1875 function Label_Construct
1876 (N : Node_Id) return Node_Id is
1878 pragma Assert (False
1879 or else NT (N).Nkind = N_Implicit_Label_Declaration);
1881 end Label_Construct;
1884 (N : Node_Id) return Node_Id is
1886 pragma Assert (False
1887 or else NT (N).Nkind = N_Component_Clause);
1892 (N : Node_Id) return Boolean is
1894 pragma Assert (False
1895 or else NT (N).Nkind = N_With_Clause);
1900 (N : Node_Id) return Node_Id is
1902 pragma Assert (False
1903 or else NT (N).Nkind = N_And_Then
1904 or else NT (N).Nkind = N_In
1905 or else NT (N).Nkind = N_Not_In
1906 or else NT (N).Nkind = N_Or_Else
1907 or else NT (N).Nkind in N_Binary_Op);
1911 function Library_Unit
1912 (N : Node_Id) return Node_Id is
1914 pragma Assert (False
1915 or else NT (N).Nkind = N_Compilation_Unit
1916 or else NT (N).Nkind = N_Package_Body_Stub
1917 or else NT (N).Nkind = N_Protected_Body_Stub
1918 or else NT (N).Nkind = N_Subprogram_Body_Stub
1919 or else NT (N).Nkind = N_Task_Body_Stub
1920 or else NT (N).Nkind = N_With_Clause);
1924 function Limited_View_Installed
1925 (N : Node_Id) return Boolean is
1927 pragma Assert (False
1928 or else NT (N).Nkind = N_Package_Specification
1929 or else NT (N).Nkind = N_With_Clause);
1931 end Limited_View_Installed;
1933 function Limited_Present
1934 (N : Node_Id) return Boolean is
1936 pragma Assert (False
1937 or else NT (N).Nkind = N_Derived_Type_Definition
1938 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
1939 or else NT (N).Nkind = N_Formal_Private_Type_Definition
1940 or else NT (N).Nkind = N_Private_Extension_Declaration
1941 or else NT (N).Nkind = N_Private_Type_Declaration
1942 or else NT (N).Nkind = N_Record_Definition
1943 or else NT (N).Nkind = N_With_Clause);
1945 end Limited_Present;
1948 (N : Node_Id) return List_Id is
1950 pragma Assert (False
1951 or else NT (N).Nkind = N_Enumeration_Type_Definition);
1955 function Local_Raise_Not_OK
1956 (N : Node_Id) return Boolean is
1958 pragma Assert (False
1959 or else NT (N).Nkind = N_Exception_Handler);
1961 end Local_Raise_Not_OK;
1963 function Local_Raise_Statements
1964 (N : Node_Id) return Elist_Id is
1966 pragma Assert (False
1967 or else NT (N).Nkind = N_Exception_Handler);
1969 end Local_Raise_Statements;
1971 function Loop_Actions
1972 (N : Node_Id) return List_Id is
1974 pragma Assert (False
1975 or else NT (N).Nkind = N_Component_Association);
1979 function Loop_Parameter_Specification
1980 (N : Node_Id) return Node_Id is
1982 pragma Assert (False
1983 or else NT (N).Nkind = N_Iteration_Scheme);
1985 end Loop_Parameter_Specification;
1988 (N : Node_Id) return Node_Id is
1990 pragma Assert (False
1991 or else NT (N).Nkind = N_Range
1992 or else NT (N).Nkind = N_Real_Range_Specification
1993 or else NT (N).Nkind = N_Signed_Integer_Type_Definition);
1998 (N : Node_Id) return Node_Id is
2000 pragma Assert (False
2001 or else NT (N).Nkind = N_Record_Representation_Clause);
2006 (N : Node_Id) return Boolean is
2008 pragma Assert (False
2009 or else NT (N).Nkind = N_Component_Declaration
2010 or else NT (N).Nkind = N_Discriminant_Specification
2011 or else NT (N).Nkind = N_Exception_Declaration
2012 or else NT (N).Nkind = N_Formal_Object_Declaration
2013 or else NT (N).Nkind = N_Number_Declaration
2014 or else NT (N).Nkind = N_Object_Declaration
2015 or else NT (N).Nkind = N_Parameter_Specification);
2019 function Must_Be_Byte_Aligned
2020 (N : Node_Id) return Boolean is
2022 pragma Assert (False
2023 or else NT (N).Nkind = N_Attribute_Reference);
2025 end Must_Be_Byte_Aligned;
2027 function Must_Not_Freeze
2028 (N : Node_Id) return Boolean is
2030 pragma Assert (False
2031 or else NT (N).Nkind = N_Subtype_Indication
2032 or else NT (N).Nkind in N_Subexpr);
2034 end Must_Not_Freeze;
2036 function Must_Not_Override
2037 (N : Node_Id) return Boolean is
2039 pragma Assert (False
2040 or else NT (N).Nkind = N_Entry_Declaration
2041 or else NT (N).Nkind = N_Function_Instantiation
2042 or else NT (N).Nkind = N_Function_Specification
2043 or else NT (N).Nkind = N_Procedure_Instantiation
2044 or else NT (N).Nkind = N_Procedure_Specification);
2046 end Must_Not_Override;
2048 function Must_Override
2049 (N : Node_Id) return Boolean is
2051 pragma Assert (False
2052 or else NT (N).Nkind = N_Entry_Declaration
2053 or else NT (N).Nkind = N_Function_Instantiation
2054 or else NT (N).Nkind = N_Function_Specification
2055 or else NT (N).Nkind = N_Procedure_Instantiation
2056 or else NT (N).Nkind = N_Procedure_Specification);
2061 (N : Node_Id) return Node_Id is
2063 pragma Assert (False
2064 or else NT (N).Nkind = N_Assignment_Statement
2065 or else NT (N).Nkind = N_Attribute_Definition_Clause
2066 or else NT (N).Nkind = N_Defining_Program_Unit_Name
2067 or else NT (N).Nkind = N_Designator
2068 or else NT (N).Nkind = N_Entry_Call_Statement
2069 or else NT (N).Nkind = N_Exception_Renaming_Declaration
2070 or else NT (N).Nkind = N_Exit_Statement
2071 or else NT (N).Nkind = N_Formal_Package_Declaration
2072 or else NT (N).Nkind = N_Function_Call
2073 or else NT (N).Nkind = N_Function_Instantiation
2074 or else NT (N).Nkind = N_Generic_Function_Renaming_Declaration
2075 or else NT (N).Nkind = N_Generic_Package_Renaming_Declaration
2076 or else NT (N).Nkind = N_Generic_Procedure_Renaming_Declaration
2077 or else NT (N).Nkind = N_Goto_Statement
2078 or else NT (N).Nkind = N_Object_Renaming_Declaration
2079 or else NT (N).Nkind = N_Package_Instantiation
2080 or else NT (N).Nkind = N_Package_Renaming_Declaration
2081 or else NT (N).Nkind = N_Procedure_Call_Statement
2082 or else NT (N).Nkind = N_Procedure_Instantiation
2083 or else NT (N).Nkind = N_Raise_Statement
2084 or else NT (N).Nkind = N_Requeue_Statement
2085 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration
2086 or else NT (N).Nkind = N_Subunit
2087 or else NT (N).Nkind = N_Variant_Part
2088 or else NT (N).Nkind = N_With_Clause);
2093 (N : Node_Id) return List_Id is
2095 pragma Assert (False
2096 or else NT (N).Nkind = N_Abort_Statement
2097 or else NT (N).Nkind = N_Use_Package_Clause);
2101 function Next_Entity
2102 (N : Node_Id) return Node_Id is
2104 pragma Assert (False
2105 or else NT (N).Nkind = N_Defining_Character_Literal
2106 or else NT (N).Nkind = N_Defining_Identifier
2107 or else NT (N).Nkind = N_Defining_Operator_Symbol);
2111 function Next_Exit_Statement
2112 (N : Node_Id) return Node_Id is
2114 pragma Assert (False
2115 or else NT (N).Nkind = N_Exit_Statement);
2117 end Next_Exit_Statement;
2119 function Next_Implicit_With
2120 (N : Node_Id) return Node_Id is
2122 pragma Assert (False
2123 or else NT (N).Nkind = N_With_Clause);
2125 end Next_Implicit_With;
2127 function Next_Named_Actual
2128 (N : Node_Id) return Node_Id is
2130 pragma Assert (False
2131 or else NT (N).Nkind = N_Parameter_Association);
2133 end Next_Named_Actual;
2135 function Next_Pragma
2136 (N : Node_Id) return Node_Id is
2138 pragma Assert (False
2139 or else NT (N).Nkind = N_Pragma);
2143 function Next_Rep_Item
2144 (N : Node_Id) return Node_Id is
2146 pragma Assert (False
2147 or else NT (N).Nkind = N_Aspect_Specification
2148 or else NT (N).Nkind = N_Attribute_Definition_Clause
2149 or else NT (N).Nkind = N_Enumeration_Representation_Clause
2150 or else NT (N).Nkind = N_Pragma
2151 or else NT (N).Nkind = N_Record_Representation_Clause);
2155 function Next_Use_Clause
2156 (N : Node_Id) return Node_Id is
2158 pragma Assert (False
2159 or else NT (N).Nkind = N_Use_Package_Clause
2160 or else NT (N).Nkind = N_Use_Type_Clause);
2162 end Next_Use_Clause;
2164 function No_Ctrl_Actions
2165 (N : Node_Id) return Boolean is
2167 pragma Assert (False
2168 or else NT (N).Nkind = N_Assignment_Statement);
2170 end No_Ctrl_Actions;
2172 function No_Elaboration_Check
2173 (N : Node_Id) return Boolean is
2175 pragma Assert (False
2176 or else NT (N).Nkind = N_Function_Call
2177 or else NT (N).Nkind = N_Procedure_Call_Statement);
2179 end No_Elaboration_Check;
2181 function No_Entities_Ref_In_Spec
2182 (N : Node_Id) return Boolean is
2184 pragma Assert (False
2185 or else NT (N).Nkind = N_With_Clause);
2187 end No_Entities_Ref_In_Spec;
2189 function No_Initialization
2190 (N : Node_Id) return Boolean is
2192 pragma Assert (False
2193 or else NT (N).Nkind = N_Allocator
2194 or else NT (N).Nkind = N_Object_Declaration);
2196 end No_Initialization;
2198 function No_Truncation
2199 (N : Node_Id) return Boolean is
2201 pragma Assert (False
2202 or else NT (N).Nkind = N_Unchecked_Type_Conversion);
2206 function Null_Present
2207 (N : Node_Id) return Boolean is
2209 pragma Assert (False
2210 or else NT (N).Nkind = N_Component_List
2211 or else NT (N).Nkind = N_Procedure_Specification
2212 or else NT (N).Nkind = N_Record_Definition);
2216 function Null_Exclusion_Present
2217 (N : Node_Id) return Boolean is
2219 pragma Assert (False
2220 or else NT (N).Nkind = N_Access_Definition
2221 or else NT (N).Nkind = N_Access_Function_Definition
2222 or else NT (N).Nkind = N_Access_Procedure_Definition
2223 or else NT (N).Nkind = N_Access_To_Object_Definition
2224 or else NT (N).Nkind = N_Allocator
2225 or else NT (N).Nkind = N_Component_Definition
2226 or else NT (N).Nkind = N_Derived_Type_Definition
2227 or else NT (N).Nkind = N_Discriminant_Specification
2228 or else NT (N).Nkind = N_Formal_Object_Declaration
2229 or else NT (N).Nkind = N_Function_Specification
2230 or else NT (N).Nkind = N_Object_Declaration
2231 or else NT (N).Nkind = N_Object_Renaming_Declaration
2232 or else NT (N).Nkind = N_Parameter_Specification
2233 or else NT (N).Nkind = N_Subtype_Declaration);
2235 end Null_Exclusion_Present;
2237 function Null_Exclusion_In_Return_Present
2238 (N : Node_Id) return Boolean is
2240 pragma Assert (False
2241 or else NT (N).Nkind = N_Access_Function_Definition);
2243 end Null_Exclusion_In_Return_Present;
2245 function Null_Record_Present
2246 (N : Node_Id) return Boolean is
2248 pragma Assert (False
2249 or else NT (N).Nkind = N_Aggregate
2250 or else NT (N).Nkind = N_Extension_Aggregate);
2252 end Null_Record_Present;
2254 function Object_Definition
2255 (N : Node_Id) return Node_Id is
2257 pragma Assert (False
2258 or else NT (N).Nkind = N_Object_Declaration);
2260 end Object_Definition;
2262 function Original_Discriminant
2263 (N : Node_Id) return Node_Id is
2265 pragma Assert (False
2266 or else NT (N).Nkind = N_Identifier);
2268 end Original_Discriminant;
2270 function Original_Entity
2271 (N : Node_Id) return Entity_Id is
2273 pragma Assert (False
2274 or else NT (N).Nkind = N_Integer_Literal
2275 or else NT (N).Nkind = N_Real_Literal);
2277 end Original_Entity;
2279 function Others_Discrete_Choices
2280 (N : Node_Id) return List_Id is
2282 pragma Assert (False
2283 or else NT (N).Nkind = N_Others_Choice);
2285 end Others_Discrete_Choices;
2287 function Out_Present
2288 (N : Node_Id) return Boolean is
2290 pragma Assert (False
2291 or else NT (N).Nkind = N_Formal_Object_Declaration
2292 or else NT (N).Nkind = N_Parameter_Specification);
2296 function Parameter_Associations
2297 (N : Node_Id) return List_Id is
2299 pragma Assert (False
2300 or else NT (N).Nkind = N_Entry_Call_Statement
2301 or else NT (N).Nkind = N_Function_Call
2302 or else NT (N).Nkind = N_Procedure_Call_Statement);
2304 end Parameter_Associations;
2306 function Parameter_List_Truncated
2307 (N : Node_Id) return Boolean is
2309 pragma Assert (False
2310 or else NT (N).Nkind = N_Function_Call
2311 or else NT (N).Nkind = N_Procedure_Call_Statement);
2313 end Parameter_List_Truncated;
2315 function Parameter_Specifications
2316 (N : Node_Id) return List_Id is
2318 pragma Assert (False
2319 or else NT (N).Nkind = N_Accept_Statement
2320 or else NT (N).Nkind = N_Access_Function_Definition
2321 or else NT (N).Nkind = N_Access_Procedure_Definition
2322 or else NT (N).Nkind = N_Entry_Body_Formal_Part
2323 or else NT (N).Nkind = N_Entry_Declaration
2324 or else NT (N).Nkind = N_Function_Specification
2325 or else NT (N).Nkind = N_Procedure_Specification);
2327 end Parameter_Specifications;
2329 function Parameter_Type
2330 (N : Node_Id) return Node_Id is
2332 pragma Assert (False
2333 or else NT (N).Nkind = N_Parameter_Specification);
2337 function Parent_Spec
2338 (N : Node_Id) return Node_Id is
2340 pragma Assert (False
2341 or else NT (N).Nkind = N_Function_Instantiation
2342 or else NT (N).Nkind = N_Generic_Function_Renaming_Declaration
2343 or else NT (N).Nkind = N_Generic_Package_Declaration
2344 or else NT (N).Nkind = N_Generic_Package_Renaming_Declaration
2345 or else NT (N).Nkind = N_Generic_Procedure_Renaming_Declaration
2346 or else NT (N).Nkind = N_Generic_Subprogram_Declaration
2347 or else NT (N).Nkind = N_Package_Declaration
2348 or else NT (N).Nkind = N_Package_Instantiation
2349 or else NT (N).Nkind = N_Package_Renaming_Declaration
2350 or else NT (N).Nkind = N_Procedure_Instantiation
2351 or else NT (N).Nkind = N_Subprogram_Declaration
2352 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration);
2357 (N : Node_Id) return Node_Id is
2359 pragma Assert (False
2360 or else NT (N).Nkind = N_Component_Clause);
2364 function Pragma_Argument_Associations
2365 (N : Node_Id) return List_Id is
2367 pragma Assert (False
2368 or else NT (N).Nkind = N_Pragma);
2370 end Pragma_Argument_Associations;
2372 function Pragma_Enabled
2373 (N : Node_Id) return Boolean is
2375 pragma Assert (False
2376 or else NT (N).Nkind = N_Pragma);
2380 function Pragma_Identifier
2381 (N : Node_Id) return Node_Id is
2383 pragma Assert (False
2384 or else NT (N).Nkind = N_Pragma);
2386 end Pragma_Identifier;
2388 function Pragmas_After
2389 (N : Node_Id) return List_Id is
2391 pragma Assert (False
2392 or else NT (N).Nkind = N_Compilation_Unit_Aux
2393 or else NT (N).Nkind = N_Terminate_Alternative);
2397 function Pragmas_Before
2398 (N : Node_Id) return List_Id is
2400 pragma Assert (False
2401 or else NT (N).Nkind = N_Accept_Alternative
2402 or else NT (N).Nkind = N_Delay_Alternative
2403 or else NT (N).Nkind = N_Entry_Call_Alternative
2404 or else NT (N).Nkind = N_Mod_Clause
2405 or else NT (N).Nkind = N_Terminate_Alternative
2406 or else NT (N).Nkind = N_Triggering_Alternative);
2411 (N : Node_Id) return Node_Id is
2413 pragma Assert (False
2414 or else NT (N).Nkind = N_Attribute_Reference
2415 or else NT (N).Nkind = N_Expanded_Name
2416 or else NT (N).Nkind = N_Explicit_Dereference
2417 or else NT (N).Nkind = N_Indexed_Component
2418 or else NT (N).Nkind = N_Reference
2419 or else NT (N).Nkind = N_Selected_Component
2420 or else NT (N).Nkind = N_Slice);
2424 function Present_Expr
2425 (N : Node_Id) return Uint is
2427 pragma Assert (False
2428 or else NT (N).Nkind = N_Variant);
2433 (N : Node_Id) return Boolean is
2435 pragma Assert (False
2436 or else NT (N).Nkind = N_Component_Declaration
2437 or else NT (N).Nkind = N_Discriminant_Specification
2438 or else NT (N).Nkind = N_Exception_Declaration
2439 or else NT (N).Nkind = N_Formal_Object_Declaration
2440 or else NT (N).Nkind = N_Number_Declaration
2441 or else NT (N).Nkind = N_Object_Declaration
2442 or else NT (N).Nkind = N_Parameter_Specification);
2446 function Print_In_Hex
2447 (N : Node_Id) return Boolean is
2449 pragma Assert (False
2450 or else NT (N).Nkind = N_Integer_Literal);
2454 function Private_Declarations
2455 (N : Node_Id) return List_Id is
2457 pragma Assert (False
2458 or else NT (N).Nkind = N_Package_Specification
2459 or else NT (N).Nkind = N_Protected_Definition
2460 or else NT (N).Nkind = N_Task_Definition);
2462 end Private_Declarations;
2464 function Private_Present
2465 (N : Node_Id) return Boolean is
2467 pragma Assert (False
2468 or else NT (N).Nkind = N_Compilation_Unit
2469 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
2470 or else NT (N).Nkind = N_With_Clause);
2472 end Private_Present;
2474 function Procedure_To_Call
2475 (N : Node_Id) return Node_Id is
2477 pragma Assert (False
2478 or else NT (N).Nkind = N_Allocator
2479 or else NT (N).Nkind = N_Extended_Return_Statement
2480 or else NT (N).Nkind = N_Free_Statement
2481 or else NT (N).Nkind = N_Return_Statement);
2483 end Procedure_To_Call;
2485 function Proper_Body
2486 (N : Node_Id) return Node_Id is
2488 pragma Assert (False
2489 or else NT (N).Nkind = N_Subunit);
2493 function Protected_Definition
2494 (N : Node_Id) return Node_Id is
2496 pragma Assert (False
2497 or else NT (N).Nkind = N_Protected_Type_Declaration
2498 or else NT (N).Nkind = N_Single_Protected_Declaration);
2500 end Protected_Definition;
2502 function Protected_Present
2503 (N : Node_Id) return Boolean is
2505 pragma Assert (False
2506 or else NT (N).Nkind = N_Access_Function_Definition
2507 or else NT (N).Nkind = N_Access_Procedure_Definition
2508 or else NT (N).Nkind = N_Derived_Type_Definition
2509 or else NT (N).Nkind = N_Record_Definition);
2511 end Protected_Present;
2513 function Raises_Constraint_Error
2514 (N : Node_Id) return Boolean is
2516 pragma Assert (False
2517 or else NT (N).Nkind in N_Subexpr);
2519 end Raises_Constraint_Error;
2521 function Range_Constraint
2522 (N : Node_Id) return Node_Id is
2524 pragma Assert (False
2525 or else NT (N).Nkind = N_Delta_Constraint
2526 or else NT (N).Nkind = N_Digits_Constraint);
2528 end Range_Constraint;
2530 function Range_Expression
2531 (N : Node_Id) return Node_Id is
2533 pragma Assert (False
2534 or else NT (N).Nkind = N_Range_Constraint);
2536 end Range_Expression;
2538 function Real_Range_Specification
2539 (N : Node_Id) return Node_Id is
2541 pragma Assert (False
2542 or else NT (N).Nkind = N_Decimal_Fixed_Point_Definition
2543 or else NT (N).Nkind = N_Floating_Point_Definition
2544 or else NT (N).Nkind = N_Ordinary_Fixed_Point_Definition);
2546 end Real_Range_Specification;
2549 (N : Node_Id) return Ureal is
2551 pragma Assert (False
2552 or else NT (N).Nkind = N_Real_Literal);
2557 (N : Node_Id) return Uint is
2559 pragma Assert (False
2560 or else NT (N).Nkind = N_Raise_Constraint_Error
2561 or else NT (N).Nkind = N_Raise_Program_Error
2562 or else NT (N).Nkind = N_Raise_Storage_Error);
2566 function Record_Extension_Part
2567 (N : Node_Id) return Node_Id is
2569 pragma Assert (False
2570 or else NT (N).Nkind = N_Derived_Type_Definition);
2572 end Record_Extension_Part;
2574 function Redundant_Use
2575 (N : Node_Id) return Boolean is
2577 pragma Assert (False
2578 or else NT (N).Nkind = N_Attribute_Reference
2579 or else NT (N).Nkind = N_Expanded_Name
2580 or else NT (N).Nkind = N_Identifier);
2584 function Renaming_Exception
2585 (N : Node_Id) return Node_Id is
2587 pragma Assert (False
2588 or else NT (N).Nkind = N_Exception_Declaration);
2590 end Renaming_Exception;
2592 function Result_Definition
2593 (N : Node_Id) return Node_Id is
2595 pragma Assert (False
2596 or else NT (N).Nkind = N_Access_Function_Definition
2597 or else NT (N).Nkind = N_Function_Specification);
2599 end Result_Definition;
2601 function Return_Object_Declarations
2602 (N : Node_Id) return List_Id is
2604 pragma Assert (False
2605 or else NT (N).Nkind = N_Extended_Return_Statement);
2607 end Return_Object_Declarations;
2609 function Return_Statement_Entity
2610 (N : Node_Id) return Node_Id is
2612 pragma Assert (False
2613 or else NT (N).Nkind = N_Extended_Return_Statement
2614 or else NT (N).Nkind = N_Return_Statement);
2616 end Return_Statement_Entity;
2618 function Reverse_Present
2619 (N : Node_Id) return Boolean is
2621 pragma Assert (False
2622 or else NT (N).Nkind = N_Loop_Parameter_Specification);
2624 end Reverse_Present;
2627 (N : Node_Id) return Node_Id is
2629 pragma Assert (False
2630 or else NT (N).Nkind in N_Op
2631 or else NT (N).Nkind = N_And_Then
2632 or else NT (N).Nkind = N_In
2633 or else NT (N).Nkind = N_Not_In
2634 or else NT (N).Nkind = N_Or_Else);
2638 function Rounded_Result
2639 (N : Node_Id) return Boolean is
2641 pragma Assert (False
2642 or else NT (N).Nkind = N_Op_Divide
2643 or else NT (N).Nkind = N_Op_Multiply
2644 or else NT (N).Nkind = N_Type_Conversion);
2648 function SCIL_Controlling_Tag
2649 (N : Node_Id) return Node_Id is
2651 pragma Assert (False
2652 or else NT (N).Nkind = N_SCIL_Dispatching_Call);
2654 end SCIL_Controlling_Tag;
2656 function SCIL_Entity
2657 (N : Node_Id) return Node_Id is
2659 pragma Assert (False
2660 or else NT (N).Nkind = N_SCIL_Dispatch_Table_Tag_Init
2661 or else NT (N).Nkind = N_SCIL_Dispatching_Call
2662 or else NT (N).Nkind = N_SCIL_Membership_Test);
2666 function SCIL_Tag_Value
2667 (N : Node_Id) return Node_Id is
2669 pragma Assert (False
2670 or else NT (N).Nkind = N_SCIL_Membership_Test);
2674 function SCIL_Target_Prim
2675 (N : Node_Id) return Node_Id is
2677 pragma Assert (False
2678 or else NT (N).Nkind = N_SCIL_Dispatching_Call);
2680 end SCIL_Target_Prim;
2683 (N : Node_Id) return Node_Id is
2685 pragma Assert (False
2686 or else NT (N).Nkind = N_Defining_Character_Literal
2687 or else NT (N).Nkind = N_Defining_Identifier
2688 or else NT (N).Nkind = N_Defining_Operator_Symbol);
2692 function Select_Alternatives
2693 (N : Node_Id) return List_Id is
2695 pragma Assert (False
2696 or else NT (N).Nkind = N_Selective_Accept);
2698 end Select_Alternatives;
2700 function Selector_Name
2701 (N : Node_Id) return Node_Id is
2703 pragma Assert (False
2704 or else NT (N).Nkind = N_Expanded_Name
2705 or else NT (N).Nkind = N_Generic_Association
2706 or else NT (N).Nkind = N_Parameter_Association
2707 or else NT (N).Nkind = N_Selected_Component);
2711 function Selector_Names
2712 (N : Node_Id) return List_Id is
2714 pragma Assert (False
2715 or else NT (N).Nkind = N_Discriminant_Association);
2719 function Shift_Count_OK
2720 (N : Node_Id) return Boolean is
2722 pragma Assert (False
2723 or else NT (N).Nkind = N_Op_Rotate_Left
2724 or else NT (N).Nkind = N_Op_Rotate_Right
2725 or else NT (N).Nkind = N_Op_Shift_Left
2726 or else NT (N).Nkind = N_Op_Shift_Right
2727 or else NT (N).Nkind = N_Op_Shift_Right_Arithmetic);
2731 function Source_Type
2732 (N : Node_Id) return Entity_Id is
2734 pragma Assert (False
2735 or else NT (N).Nkind = N_Validate_Unchecked_Conversion);
2739 function Specification
2740 (N : Node_Id) return Node_Id is
2742 pragma Assert (False
2743 or else NT (N).Nkind = N_Abstract_Subprogram_Declaration
2744 or else NT (N).Nkind = N_Formal_Abstract_Subprogram_Declaration
2745 or else NT (N).Nkind = N_Formal_Concrete_Subprogram_Declaration
2746 or else NT (N).Nkind = N_Generic_Package_Declaration
2747 or else NT (N).Nkind = N_Generic_Subprogram_Declaration
2748 or else NT (N).Nkind = N_Package_Declaration
2749 or else NT (N).Nkind = N_Parameterized_Expression
2750 or else NT (N).Nkind = N_Subprogram_Body
2751 or else NT (N).Nkind = N_Subprogram_Body_Stub
2752 or else NT (N).Nkind = N_Subprogram_Declaration
2753 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration);
2758 (N : Node_Id) return Boolean is
2760 pragma Assert (False
2761 or else NT (N).Nkind = N_Aspect_Specification
2762 or else NT (N).Nkind = N_Pragma);
2767 (N : Node_Id) return List_Id is
2769 pragma Assert (False
2770 or else NT (N).Nkind = N_Abortable_Part
2771 or else NT (N).Nkind = N_Accept_Alternative
2772 or else NT (N).Nkind = N_Case_Statement_Alternative
2773 or else NT (N).Nkind = N_Delay_Alternative
2774 or else NT (N).Nkind = N_Entry_Call_Alternative
2775 or else NT (N).Nkind = N_Exception_Handler
2776 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements
2777 or else NT (N).Nkind = N_Loop_Statement
2778 or else NT (N).Nkind = N_Triggering_Alternative);
2782 function Static_Processing_OK
2783 (N : Node_Id) return Boolean is
2785 pragma Assert (False
2786 or else NT (N).Nkind = N_Aggregate);
2788 end Static_Processing_OK;
2790 function Storage_Pool
2791 (N : Node_Id) return Node_Id is
2793 pragma Assert (False
2794 or else NT (N).Nkind = N_Allocator
2795 or else NT (N).Nkind = N_Extended_Return_Statement
2796 or else NT (N).Nkind = N_Free_Statement
2797 or else NT (N).Nkind = N_Return_Statement);
2802 (N : Node_Id) return String_Id is
2804 pragma Assert (False
2805 or else NT (N).Nkind = N_Operator_Symbol
2806 or else NT (N).Nkind = N_String_Literal);
2810 function Subtype_Indication
2811 (N : Node_Id) return Node_Id is
2813 pragma Assert (False
2814 or else NT (N).Nkind = N_Access_To_Object_Definition
2815 or else NT (N).Nkind = N_Component_Definition
2816 or else NT (N).Nkind = N_Derived_Type_Definition
2817 or else NT (N).Nkind = N_Private_Extension_Declaration
2818 or else NT (N).Nkind = N_Subtype_Declaration);
2820 end Subtype_Indication;
2822 function Suppress_Loop_Warnings
2823 (N : Node_Id) return Boolean is
2825 pragma Assert (False
2826 or else NT (N).Nkind = N_Loop_Statement);
2828 end Suppress_Loop_Warnings;
2830 function Subtype_Mark
2831 (N : Node_Id) return Node_Id is
2833 pragma Assert (False
2834 or else NT (N).Nkind = N_Access_Definition
2835 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
2836 or else NT (N).Nkind = N_Formal_Object_Declaration
2837 or else NT (N).Nkind = N_Object_Renaming_Declaration
2838 or else NT (N).Nkind = N_Qualified_Expression
2839 or else NT (N).Nkind = N_Subtype_Indication
2840 or else NT (N).Nkind = N_Type_Conversion
2841 or else NT (N).Nkind = N_Unchecked_Type_Conversion);
2845 function Subtype_Marks
2846 (N : Node_Id) return List_Id is
2848 pragma Assert (False
2849 or else NT (N).Nkind = N_Unconstrained_Array_Definition
2850 or else NT (N).Nkind = N_Use_Type_Clause);
2854 function Synchronized_Present
2855 (N : Node_Id) return Boolean is
2857 pragma Assert (False
2858 or else NT (N).Nkind = N_Derived_Type_Definition
2859 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
2860 or else NT (N).Nkind = N_Private_Extension_Declaration
2861 or else NT (N).Nkind = N_Record_Definition);
2863 end Synchronized_Present;
2865 function Tagged_Present
2866 (N : Node_Id) return Boolean is
2868 pragma Assert (False
2869 or else NT (N).Nkind = N_Formal_Private_Type_Definition
2870 or else NT (N).Nkind = N_Incomplete_Type_Declaration
2871 or else NT (N).Nkind = N_Private_Type_Declaration
2872 or else NT (N).Nkind = N_Record_Definition);
2876 function Target_Type
2877 (N : Node_Id) return Entity_Id is
2879 pragma Assert (False
2880 or else NT (N).Nkind = N_Validate_Unchecked_Conversion);
2884 function Task_Definition
2885 (N : Node_Id) return Node_Id is
2887 pragma Assert (False
2888 or else NT (N).Nkind = N_Single_Task_Declaration
2889 or else NT (N).Nkind = N_Task_Type_Declaration);
2891 end Task_Definition;
2893 function Task_Present
2894 (N : Node_Id) return Boolean is
2896 pragma Assert (False
2897 or else NT (N).Nkind = N_Derived_Type_Definition
2898 or else NT (N).Nkind = N_Record_Definition);
2902 function Then_Actions
2903 (N : Node_Id) return List_Id is
2905 pragma Assert (False
2906 or else NT (N).Nkind = N_Conditional_Expression);
2910 function Then_Statements
2911 (N : Node_Id) return List_Id is
2913 pragma Assert (False
2914 or else NT (N).Nkind = N_Elsif_Part
2915 or else NT (N).Nkind = N_If_Statement);
2917 end Then_Statements;
2919 function Treat_Fixed_As_Integer
2920 (N : Node_Id) return Boolean is
2922 pragma Assert (False
2923 or else NT (N).Nkind = N_Op_Divide
2924 or else NT (N).Nkind = N_Op_Mod
2925 or else NT (N).Nkind = N_Op_Multiply
2926 or else NT (N).Nkind = N_Op_Rem);
2928 end Treat_Fixed_As_Integer;
2930 function Triggering_Alternative
2931 (N : Node_Id) return Node_Id is
2933 pragma Assert (False
2934 or else NT (N).Nkind = N_Asynchronous_Select);
2936 end Triggering_Alternative;
2938 function Triggering_Statement
2939 (N : Node_Id) return Node_Id is
2941 pragma Assert (False
2942 or else NT (N).Nkind = N_Triggering_Alternative);
2944 end Triggering_Statement;
2947 (N : Node_Id) return Elist_Id is
2949 pragma Assert (False
2950 or else NT (N).Nkind = N_Freeze_Entity);
2954 function Type_Definition
2955 (N : Node_Id) return Node_Id is
2957 pragma Assert (False
2958 or else NT (N).Nkind = N_Full_Type_Declaration);
2960 end Type_Definition;
2963 (N : Node_Id) return Node_Id is
2965 pragma Assert (False
2966 or else NT (N).Nkind = N_Compilation_Unit);
2970 function Unknown_Discriminants_Present
2971 (N : Node_Id) return Boolean is
2973 pragma Assert (False
2974 or else NT (N).Nkind = N_Formal_Type_Declaration
2975 or else NT (N).Nkind = N_Incomplete_Type_Declaration
2976 or else NT (N).Nkind = N_Private_Extension_Declaration
2977 or else NT (N).Nkind = N_Private_Type_Declaration);
2979 end Unknown_Discriminants_Present;
2981 function Unreferenced_In_Spec
2982 (N : Node_Id) return Boolean is
2984 pragma Assert (False
2985 or else NT (N).Nkind = N_With_Clause);
2987 end Unreferenced_In_Spec;
2989 function Variant_Part
2990 (N : Node_Id) return Node_Id is
2992 pragma Assert (False
2993 or else NT (N).Nkind = N_Component_List);
2998 (N : Node_Id) return List_Id is
3000 pragma Assert (False
3001 or else NT (N).Nkind = N_Variant_Part);
3005 function Visible_Declarations
3006 (N : Node_Id) return List_Id is
3008 pragma Assert (False
3009 or else NT (N).Nkind = N_Package_Specification
3010 or else NT (N).Nkind = N_Protected_Definition
3011 or else NT (N).Nkind = N_Task_Definition);
3013 end Visible_Declarations;
3015 function Was_Originally_Stub
3016 (N : Node_Id) return Boolean is
3018 pragma Assert (False
3019 or else NT (N).Nkind = N_Package_Body
3020 or else NT (N).Nkind = N_Protected_Body
3021 or else NT (N).Nkind = N_Subprogram_Body
3022 or else NT (N).Nkind = N_Task_Body);
3024 end Was_Originally_Stub;
3026 function Withed_Body
3027 (N : Node_Id) return Node_Id is
3029 pragma Assert (False
3030 or else NT (N).Nkind = N_With_Clause);
3034 function Zero_Cost_Handling
3035 (N : Node_Id) return Boolean is
3037 pragma Assert (False
3038 or else NT (N).Nkind = N_Exception_Handler
3039 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements);
3041 end Zero_Cost_Handling;
3043 --------------------------
3044 -- Field Set Procedures --
3045 --------------------------
3047 procedure Set_ABE_Is_Certain
3048 (N : Node_Id; Val : Boolean := True) is
3050 pragma Assert (False
3051 or else NT (N).Nkind = N_Formal_Package_Declaration
3052 or else NT (N).Nkind = N_Function_Call
3053 or else NT (N).Nkind = N_Function_Instantiation
3054 or else NT (N).Nkind = N_Package_Instantiation
3055 or else NT (N).Nkind = N_Procedure_Call_Statement
3056 or else NT (N).Nkind = N_Procedure_Instantiation);
3057 Set_Flag18 (N, Val);
3058 end Set_ABE_Is_Certain;
3060 procedure Set_Abort_Present
3061 (N : Node_Id; Val : Boolean := True) is
3063 pragma Assert (False
3064 or else NT (N).Nkind = N_Requeue_Statement);
3065 Set_Flag15 (N, Val);
3066 end Set_Abort_Present;
3068 procedure Set_Abortable_Part
3069 (N : Node_Id; Val : Node_Id) is
3071 pragma Assert (False
3072 or else NT (N).Nkind = N_Asynchronous_Select);
3073 Set_Node2_With_Parent (N, Val);
3074 end Set_Abortable_Part;
3076 procedure Set_Abstract_Present
3077 (N : Node_Id; Val : Boolean := True) is
3079 pragma Assert (False
3080 or else NT (N).Nkind = N_Derived_Type_Definition
3081 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
3082 or else NT (N).Nkind = N_Formal_Private_Type_Definition
3083 or else NT (N).Nkind = N_Private_Extension_Declaration
3084 or else NT (N).Nkind = N_Private_Type_Declaration
3085 or else NT (N).Nkind = N_Record_Definition);
3087 end Set_Abstract_Present;
3089 procedure Set_Accept_Handler_Records
3090 (N : Node_Id; Val : List_Id) is
3092 pragma Assert (False
3093 or else NT (N).Nkind = N_Accept_Alternative);
3094 Set_List5 (N, Val); -- semantic field, no parent set
3095 end Set_Accept_Handler_Records;
3097 procedure Set_Accept_Statement
3098 (N : Node_Id; Val : Node_Id) is
3100 pragma Assert (False
3101 or else NT (N).Nkind = N_Accept_Alternative);
3102 Set_Node2_With_Parent (N, Val);
3103 end Set_Accept_Statement;
3105 procedure Set_Access_Definition
3106 (N : Node_Id; Val : Node_Id) is
3108 pragma Assert (False
3109 or else NT (N).Nkind = N_Component_Definition
3110 or else NT (N).Nkind = N_Formal_Object_Declaration
3111 or else NT (N).Nkind = N_Object_Renaming_Declaration);
3112 Set_Node3_With_Parent (N, Val);
3113 end Set_Access_Definition;
3115 procedure Set_Access_To_Subprogram_Definition
3116 (N : Node_Id; Val : Node_Id) is
3118 pragma Assert (False
3119 or else NT (N).Nkind = N_Access_Definition);
3120 Set_Node3_With_Parent (N, Val);
3121 end Set_Access_To_Subprogram_Definition;
3123 procedure Set_Access_Types_To_Process
3124 (N : Node_Id; Val : Elist_Id) is
3126 pragma Assert (False
3127 or else NT (N).Nkind = N_Freeze_Entity);
3128 Set_Elist2 (N, Val); -- semantic field, no parent set
3129 end Set_Access_Types_To_Process;
3131 procedure Set_Actions
3132 (N : Node_Id; Val : List_Id) is
3134 pragma Assert (False
3135 or else NT (N).Nkind = N_And_Then
3136 or else NT (N).Nkind = N_Case_Expression_Alternative
3137 or else NT (N).Nkind = N_Compilation_Unit_Aux
3138 or else NT (N).Nkind = N_Expression_With_Actions
3139 or else NT (N).Nkind = N_Freeze_Entity
3140 or else NT (N).Nkind = N_Or_Else);
3141 Set_List1_With_Parent (N, Val);
3144 procedure Set_Activation_Chain_Entity
3145 (N : Node_Id; Val : Node_Id) is
3147 pragma Assert (False
3148 or else NT (N).Nkind = N_Block_Statement
3149 or else NT (N).Nkind = N_Entry_Body
3150 or else NT (N).Nkind = N_Generic_Package_Declaration
3151 or else NT (N).Nkind = N_Package_Declaration
3152 or else NT (N).Nkind = N_Subprogram_Body
3153 or else NT (N).Nkind = N_Task_Body);
3154 Set_Node3 (N, Val); -- semantic field, no parent set
3155 end Set_Activation_Chain_Entity;
3157 procedure Set_Acts_As_Spec
3158 (N : Node_Id; Val : Boolean := True) is
3160 pragma Assert (False
3161 or else NT (N).Nkind = N_Compilation_Unit
3162 or else NT (N).Nkind = N_Subprogram_Body);
3164 end Set_Acts_As_Spec;
3166 procedure Set_Actual_Designated_Subtype
3167 (N : Node_Id; Val : Node_Id) is
3169 pragma Assert (False
3170 or else NT (N).Nkind = N_Explicit_Dereference
3171 or else NT (N).Nkind = N_Free_Statement);
3173 end Set_Actual_Designated_Subtype;
3175 procedure Set_Address_Warning_Posted
3176 (N : Node_Id; Val : Boolean := True) is
3178 pragma Assert (False
3179 or else NT (N).Nkind = N_Attribute_Definition_Clause);
3180 Set_Flag18 (N, Val);
3181 end Set_Address_Warning_Posted;
3183 procedure Set_Aggregate_Bounds
3184 (N : Node_Id; Val : Node_Id) is
3186 pragma Assert (False
3187 or else NT (N).Nkind = N_Aggregate);
3188 Set_Node3 (N, Val); -- semantic field, no parent set
3189 end Set_Aggregate_Bounds;
3191 procedure Set_Aliased_Present
3192 (N : Node_Id; Val : Boolean := True) is
3194 pragma Assert (False
3195 or else NT (N).Nkind = N_Component_Definition
3196 or else NT (N).Nkind = N_Object_Declaration);
3198 end Set_Aliased_Present;
3200 procedure Set_All_Others
3201 (N : Node_Id; Val : Boolean := True) is
3203 pragma Assert (False
3204 or else NT (N).Nkind = N_Others_Choice);
3205 Set_Flag11 (N, Val);
3208 procedure Set_All_Present
3209 (N : Node_Id; Val : Boolean := True) is
3211 pragma Assert (False
3212 or else NT (N).Nkind = N_Access_Definition
3213 or else NT (N).Nkind = N_Access_To_Object_Definition
3214 or else NT (N).Nkind = N_Use_Type_Clause);
3215 Set_Flag15 (N, Val);
3216 end Set_All_Present;
3218 procedure Set_Alternatives
3219 (N : Node_Id; Val : List_Id) is
3221 pragma Assert (False
3222 or else NT (N).Nkind = N_Case_Expression
3223 or else NT (N).Nkind = N_Case_Statement
3224 or else NT (N).Nkind = N_In
3225 or else NT (N).Nkind = N_Not_In);
3226 Set_List4_With_Parent (N, Val);
3227 end Set_Alternatives;
3229 procedure Set_Ancestor_Part
3230 (N : Node_Id; Val : Node_Id) is
3232 pragma Assert (False
3233 or else NT (N).Nkind = N_Extension_Aggregate);
3234 Set_Node3_With_Parent (N, Val);
3235 end Set_Ancestor_Part;
3237 procedure Set_Array_Aggregate
3238 (N : Node_Id; Val : Node_Id) is
3240 pragma Assert (False
3241 or else NT (N).Nkind = N_Enumeration_Representation_Clause);
3242 Set_Node3_With_Parent (N, Val);
3243 end Set_Array_Aggregate;
3245 procedure Set_Aspect_Cancel
3246 (N : Node_Id; Val : Boolean := True) is
3248 pragma Assert (False
3249 or else NT (N).Nkind = N_Pragma);
3250 Set_Flag11 (N, Val);
3251 end Set_Aspect_Cancel;
3253 procedure Set_Aspect_Rep_Item
3254 (N : Node_Id; Val : Node_Id) is
3256 pragma Assert (False
3257 or else NT (N).Nkind = N_Aspect_Specification);
3259 end Set_Aspect_Rep_Item;
3261 procedure Set_Assignment_OK
3262 (N : Node_Id; Val : Boolean := True) is
3264 pragma Assert (False
3265 or else NT (N).Nkind = N_Object_Declaration
3266 or else NT (N).Nkind in N_Subexpr);
3267 Set_Flag15 (N, Val);
3268 end Set_Assignment_OK;
3270 procedure Set_Associated_Node
3271 (N : Node_Id; Val : Node_Id) is
3273 pragma Assert (False
3274 or else NT (N).Nkind in N_Has_Entity
3275 or else NT (N).Nkind = N_Aggregate
3276 or else NT (N).Nkind = N_Extension_Aggregate
3277 or else NT (N).Nkind = N_Selected_Component);
3278 Set_Node4 (N, Val); -- semantic field, no parent set
3279 end Set_Associated_Node;
3281 procedure Set_At_End_Proc
3282 (N : Node_Id; Val : Node_Id) is
3284 pragma Assert (False
3285 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements);
3287 end Set_At_End_Proc;
3289 procedure Set_Attribute_Name
3290 (N : Node_Id; Val : Name_Id) is
3292 pragma Assert (False
3293 or else NT (N).Nkind = N_Attribute_Reference);
3295 end Set_Attribute_Name;
3297 procedure Set_Aux_Decls_Node
3298 (N : Node_Id; Val : Node_Id) is
3300 pragma Assert (False
3301 or else NT (N).Nkind = N_Compilation_Unit);
3302 Set_Node5_With_Parent (N, Val);
3303 end Set_Aux_Decls_Node;
3305 procedure Set_Backwards_OK
3306 (N : Node_Id; Val : Boolean := True) is
3308 pragma Assert (False
3309 or else NT (N).Nkind = N_Assignment_Statement);
3311 end Set_Backwards_OK;
3313 procedure Set_Bad_Is_Detected
3314 (N : Node_Id; Val : Boolean := True) is
3316 pragma Assert (False
3317 or else NT (N).Nkind = N_Subprogram_Body);
3318 Set_Flag15 (N, Val);
3319 end Set_Bad_Is_Detected;
3321 procedure Set_Body_Required
3322 (N : Node_Id; Val : Boolean := True) is
3324 pragma Assert (False
3325 or else NT (N).Nkind = N_Compilation_Unit);
3326 Set_Flag13 (N, Val);
3327 end Set_Body_Required;
3329 procedure Set_Body_To_Inline
3330 (N : Node_Id; Val : Node_Id) is
3332 pragma Assert (False
3333 or else NT (N).Nkind = N_Subprogram_Declaration);
3335 end Set_Body_To_Inline;
3337 procedure Set_Box_Present
3338 (N : Node_Id; Val : Boolean := True) is
3340 pragma Assert (False
3341 or else NT (N).Nkind = N_Component_Association
3342 or else NT (N).Nkind = N_Formal_Abstract_Subprogram_Declaration
3343 or else NT (N).Nkind = N_Formal_Concrete_Subprogram_Declaration
3344 or else NT (N).Nkind = N_Formal_Package_Declaration
3345 or else NT (N).Nkind = N_Generic_Association);
3346 Set_Flag15 (N, Val);
3347 end Set_Box_Present;
3349 procedure Set_By_Ref
3350 (N : Node_Id; Val : Boolean := True) is
3352 pragma Assert (False
3353 or else NT (N).Nkind = N_Extended_Return_Statement
3354 or else NT (N).Nkind = N_Return_Statement);
3358 procedure Set_Char_Literal_Value
3359 (N : Node_Id; Val : Uint) is
3361 pragma Assert (False
3362 or else NT (N).Nkind = N_Character_Literal);
3364 end Set_Char_Literal_Value;
3367 (N : Node_Id; Val : Name_Id) is
3369 pragma Assert (False
3370 or else NT (N).Nkind in N_Has_Chars);
3374 procedure Set_Check_Address_Alignment
3375 (N : Node_Id; Val : Boolean := True) is
3377 pragma Assert (False
3378 or else NT (N).Nkind = N_Attribute_Definition_Clause);
3379 Set_Flag11 (N, Val);
3380 end Set_Check_Address_Alignment;
3382 procedure Set_Choice_Parameter
3383 (N : Node_Id; Val : Node_Id) is
3385 pragma Assert (False
3386 or else NT (N).Nkind = N_Exception_Handler);
3387 Set_Node2_With_Parent (N, Val);
3388 end Set_Choice_Parameter;
3390 procedure Set_Choices
3391 (N : Node_Id; Val : List_Id) is
3393 pragma Assert (False
3394 or else NT (N).Nkind = N_Component_Association);
3395 Set_List1_With_Parent (N, Val);
3398 procedure Set_Class_Present
3399 (N : Node_Id; Val : Boolean := True) is
3401 pragma Assert (False
3402 or else NT (N).Nkind = N_Aspect_Specification
3403 or else NT (N).Nkind = N_Pragma);
3405 end Set_Class_Present;
3407 procedure Set_Coextensions
3408 (N : Node_Id; Val : Elist_Id) is
3410 pragma Assert (False
3411 or else NT (N).Nkind = N_Allocator);
3412 Set_Elist4 (N, Val);
3413 end Set_Coextensions;
3415 procedure Set_Comes_From_Extended_Return_Statement
3416 (N : Node_Id; Val : Boolean := True) is
3418 pragma Assert (False
3419 or else NT (N).Nkind = N_Return_Statement);
3420 Set_Flag18 (N, Val);
3421 end Set_Comes_From_Extended_Return_Statement;
3423 procedure Set_Compile_Time_Known_Aggregate
3424 (N : Node_Id; Val : Boolean := True) is
3426 pragma Assert (False
3427 or else NT (N).Nkind = N_Aggregate);
3428 Set_Flag18 (N, Val);
3429 end Set_Compile_Time_Known_Aggregate;
3431 procedure Set_Component_Associations
3432 (N : Node_Id; Val : List_Id) is
3434 pragma Assert (False
3435 or else NT (N).Nkind = N_Aggregate
3436 or else NT (N).Nkind = N_Extension_Aggregate);
3437 Set_List2_With_Parent (N, Val);
3438 end Set_Component_Associations;
3440 procedure Set_Component_Clauses
3441 (N : Node_Id; Val : List_Id) is
3443 pragma Assert (False
3444 or else NT (N).Nkind = N_Record_Representation_Clause);
3445 Set_List3_With_Parent (N, Val);
3446 end Set_Component_Clauses;
3448 procedure Set_Component_Definition
3449 (N : Node_Id; Val : Node_Id) is
3451 pragma Assert (False
3452 or else NT (N).Nkind = N_Component_Declaration
3453 or else NT (N).Nkind = N_Constrained_Array_Definition
3454 or else NT (N).Nkind = N_Unconstrained_Array_Definition);
3455 Set_Node4_With_Parent (N, Val);
3456 end Set_Component_Definition;
3458 procedure Set_Component_Items
3459 (N : Node_Id; Val : List_Id) is
3461 pragma Assert (False
3462 or else NT (N).Nkind = N_Component_List);
3463 Set_List3_With_Parent (N, Val);
3464 end Set_Component_Items;
3466 procedure Set_Component_List
3467 (N : Node_Id; Val : Node_Id) is
3469 pragma Assert (False
3470 or else NT (N).Nkind = N_Record_Definition
3471 or else NT (N).Nkind = N_Variant);
3472 Set_Node1_With_Parent (N, Val);
3473 end Set_Component_List;
3475 procedure Set_Component_Name
3476 (N : Node_Id; Val : Node_Id) is
3478 pragma Assert (False
3479 or else NT (N).Nkind = N_Component_Clause);
3480 Set_Node1_With_Parent (N, Val);
3481 end Set_Component_Name;
3483 procedure Set_Componentwise_Assignment
3484 (N : Node_Id; Val : Boolean := True) is
3486 pragma Assert (False
3487 or else NT (N).Nkind = N_Assignment_Statement);
3488 Set_Flag14 (N, Val);
3489 end Set_Componentwise_Assignment;
3491 procedure Set_Condition
3492 (N : Node_Id; Val : Node_Id) is
3494 pragma Assert (False
3495 or else NT (N).Nkind = N_Accept_Alternative
3496 or else NT (N).Nkind = N_Delay_Alternative
3497 or else NT (N).Nkind = N_Elsif_Part
3498 or else NT (N).Nkind = N_Entry_Body_Formal_Part
3499 or else NT (N).Nkind = N_Exit_Statement
3500 or else NT (N).Nkind = N_If_Statement
3501 or else NT (N).Nkind = N_Iteration_Scheme
3502 or else NT (N).Nkind = N_Raise_Constraint_Error
3503 or else NT (N).Nkind = N_Raise_Program_Error
3504 or else NT (N).Nkind = N_Raise_Storage_Error
3505 or else NT (N).Nkind = N_Terminate_Alternative);
3506 Set_Node1_With_Parent (N, Val);
3509 procedure Set_Condition_Actions
3510 (N : Node_Id; Val : List_Id) is
3512 pragma Assert (False
3513 or else NT (N).Nkind = N_Elsif_Part
3514 or else NT (N).Nkind = N_Iteration_Scheme);
3515 Set_List3 (N, Val); -- semantic field, no parent set
3516 end Set_Condition_Actions;
3518 procedure Set_Config_Pragmas
3519 (N : Node_Id; Val : List_Id) is
3521 pragma Assert (False
3522 or else NT (N).Nkind = N_Compilation_Unit_Aux);
3523 Set_List4_With_Parent (N, Val);
3524 end Set_Config_Pragmas;
3526 procedure Set_Constant_Present
3527 (N : Node_Id; Val : Boolean := True) is
3529 pragma Assert (False
3530 or else NT (N).Nkind = N_Access_Definition
3531 or else NT (N).Nkind = N_Access_To_Object_Definition
3532 or else NT (N).Nkind = N_Object_Declaration);
3533 Set_Flag17 (N, Val);
3534 end Set_Constant_Present;
3536 procedure Set_Constraint
3537 (N : Node_Id; Val : Node_Id) is
3539 pragma Assert (False
3540 or else NT (N).Nkind = N_Subtype_Indication);
3541 Set_Node3_With_Parent (N, Val);
3544 procedure Set_Constraints
3545 (N : Node_Id; Val : List_Id) is
3547 pragma Assert (False
3548 or else NT (N).Nkind = N_Index_Or_Discriminant_Constraint);
3549 Set_List1_With_Parent (N, Val);
3550 end Set_Constraints;
3552 procedure Set_Context_Installed
3553 (N : Node_Id; Val : Boolean := True) is
3555 pragma Assert (False
3556 or else NT (N).Nkind = N_With_Clause);
3557 Set_Flag13 (N, Val);
3558 end Set_Context_Installed;
3560 procedure Set_Context_Items
3561 (N : Node_Id; Val : List_Id) is
3563 pragma Assert (False
3564 or else NT (N).Nkind = N_Compilation_Unit);
3565 Set_List1_With_Parent (N, Val);
3566 end Set_Context_Items;
3568 procedure Set_Context_Pending
3569 (N : Node_Id; Val : Boolean := True) is
3571 pragma Assert (False
3572 or else NT (N).Nkind = N_Compilation_Unit);
3573 Set_Flag16 (N, Val);
3574 end Set_Context_Pending;
3576 procedure Set_Controlling_Argument
3577 (N : Node_Id; Val : Node_Id) is
3579 pragma Assert (False
3580 or else NT (N).Nkind = N_Function_Call
3581 or else NT (N).Nkind = N_Procedure_Call_Statement);
3582 Set_Node1 (N, Val); -- semantic field, no parent set
3583 end Set_Controlling_Argument;
3585 procedure Set_Conversion_OK
3586 (N : Node_Id; Val : Boolean := True) is
3588 pragma Assert (False
3589 or else NT (N).Nkind = N_Type_Conversion);
3590 Set_Flag14 (N, Val);
3591 end Set_Conversion_OK;
3593 procedure Set_Corresponding_Body
3594 (N : Node_Id; Val : Node_Id) is
3596 pragma Assert (False
3597 or else NT (N).Nkind = N_Entry_Declaration
3598 or else NT (N).Nkind = N_Generic_Package_Declaration
3599 or else NT (N).Nkind = N_Generic_Subprogram_Declaration
3600 or else NT (N).Nkind = N_Package_Body_Stub
3601 or else NT (N).Nkind = N_Package_Declaration
3602 or else NT (N).Nkind = N_Protected_Body_Stub
3603 or else NT (N).Nkind = N_Protected_Type_Declaration
3604 or else NT (N).Nkind = N_Subprogram_Body_Stub
3605 or else NT (N).Nkind = N_Subprogram_Declaration
3606 or else NT (N).Nkind = N_Task_Body_Stub
3607 or else NT (N).Nkind = N_Task_Type_Declaration);
3608 Set_Node5 (N, Val); -- semantic field, no parent set
3609 end Set_Corresponding_Body;
3611 procedure Set_Corresponding_Formal_Spec
3612 (N : Node_Id; Val : Node_Id) is
3614 pragma Assert (False
3615 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration);
3616 Set_Node3 (N, Val); -- semantic field, no parent set
3617 end Set_Corresponding_Formal_Spec;
3619 procedure Set_Corresponding_Generic_Association
3620 (N : Node_Id; Val : Node_Id) is
3622 pragma Assert (False
3623 or else NT (N).Nkind = N_Object_Declaration
3624 or else NT (N).Nkind = N_Object_Renaming_Declaration);
3625 Set_Node5 (N, Val); -- semantic field, no parent set
3626 end Set_Corresponding_Generic_Association;
3628 procedure Set_Corresponding_Integer_Value
3629 (N : Node_Id; Val : Uint) is
3631 pragma Assert (False
3632 or else NT (N).Nkind = N_Real_Literal);
3633 Set_Uint4 (N, Val); -- semantic field, no parent set
3634 end Set_Corresponding_Integer_Value;
3636 procedure Set_Corresponding_Spec
3637 (N : Node_Id; Val : Node_Id) is
3639 pragma Assert (False
3640 or else NT (N).Nkind = N_Package_Body
3641 or else NT (N).Nkind = N_Protected_Body
3642 or else NT (N).Nkind = N_Subprogram_Body
3643 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration
3644 or else NT (N).Nkind = N_Task_Body
3645 or else NT (N).Nkind = N_With_Clause);
3646 Set_Node5 (N, Val); -- semantic field, no parent set
3647 end Set_Corresponding_Spec;
3649 procedure Set_Corresponding_Stub
3650 (N : Node_Id; Val : Node_Id) is
3652 pragma Assert (False
3653 or else NT (N).Nkind = N_Subunit);
3655 end Set_Corresponding_Stub;
3657 procedure Set_Dcheck_Function
3658 (N : Node_Id; Val : Entity_Id) is
3660 pragma Assert (False
3661 or else NT (N).Nkind = N_Variant);
3662 Set_Node5 (N, Val); -- semantic field, no parent set
3663 end Set_Dcheck_Function;
3665 procedure Set_Debug_Statement
3666 (N : Node_Id; Val : Node_Id) is
3668 pragma Assert (False
3669 or else NT (N).Nkind = N_Pragma);
3670 Set_Node3_With_Parent (N, Val);
3671 end Set_Debug_Statement;
3673 procedure Set_Declarations
3674 (N : Node_Id; Val : List_Id) is
3676 pragma Assert (False
3677 or else NT (N).Nkind = N_Accept_Statement
3678 or else NT (N).Nkind = N_Block_Statement
3679 or else NT (N).Nkind = N_Compilation_Unit_Aux
3680 or else NT (N).Nkind = N_Entry_Body
3681 or else NT (N).Nkind = N_Package_Body
3682 or else NT (N).Nkind = N_Protected_Body
3683 or else NT (N).Nkind = N_Subprogram_Body
3684 or else NT (N).Nkind = N_Task_Body);
3685 Set_List2_With_Parent (N, Val);
3686 end Set_Declarations;
3688 procedure Set_Default_Expression
3689 (N : Node_Id; Val : Node_Id) is
3691 pragma Assert (False
3692 or else NT (N).Nkind = N_Formal_Object_Declaration
3693 or else NT (N).Nkind = N_Parameter_Specification);
3694 Set_Node5 (N, Val); -- semantic field, no parent set
3695 end Set_Default_Expression;
3697 procedure Set_Default_Name
3698 (N : Node_Id; Val : Node_Id) is
3700 pragma Assert (False
3701 or else NT (N).Nkind = N_Formal_Abstract_Subprogram_Declaration
3702 or else NT (N).Nkind = N_Formal_Concrete_Subprogram_Declaration);
3703 Set_Node2_With_Parent (N, Val);
3704 end Set_Default_Name;
3706 procedure Set_Defining_Identifier
3707 (N : Node_Id; Val : Entity_Id) is
3709 pragma Assert (False
3710 or else NT (N).Nkind = N_Component_Declaration
3711 or else NT (N).Nkind = N_Defining_Program_Unit_Name
3712 or else NT (N).Nkind = N_Discriminant_Specification
3713 or else NT (N).Nkind = N_Entry_Body
3714 or else NT (N).Nkind = N_Entry_Declaration
3715 or else NT (N).Nkind = N_Entry_Index_Specification
3716 or else NT (N).Nkind = N_Exception_Declaration
3717 or else NT (N).Nkind = N_Exception_Renaming_Declaration
3718 or else NT (N).Nkind = N_Formal_Object_Declaration
3719 or else NT (N).Nkind = N_Formal_Package_Declaration
3720 or else NT (N).Nkind = N_Formal_Type_Declaration
3721 or else NT (N).Nkind = N_Full_Type_Declaration
3722 or else NT (N).Nkind = N_Implicit_Label_Declaration
3723 or else NT (N).Nkind = N_Incomplete_Type_Declaration
3724 or else NT (N).Nkind = N_Loop_Parameter_Specification
3725 or else NT (N).Nkind = N_Number_Declaration
3726 or else NT (N).Nkind = N_Object_Declaration
3727 or else NT (N).Nkind = N_Object_Renaming_Declaration
3728 or else NT (N).Nkind = N_Package_Body_Stub
3729 or else NT (N).Nkind = N_Parameter_Specification
3730 or else NT (N).Nkind = N_Private_Extension_Declaration
3731 or else NT (N).Nkind = N_Private_Type_Declaration
3732 or else NT (N).Nkind = N_Protected_Body
3733 or else NT (N).Nkind = N_Protected_Body_Stub
3734 or else NT (N).Nkind = N_Protected_Type_Declaration
3735 or else NT (N).Nkind = N_Single_Protected_Declaration
3736 or else NT (N).Nkind = N_Single_Task_Declaration
3737 or else NT (N).Nkind = N_Subtype_Declaration
3738 or else NT (N).Nkind = N_Task_Body
3739 or else NT (N).Nkind = N_Task_Body_Stub
3740 or else NT (N).Nkind = N_Task_Type_Declaration);
3741 Set_Node1_With_Parent (N, Val);
3742 end Set_Defining_Identifier;
3744 procedure Set_Defining_Unit_Name
3745 (N : Node_Id; Val : Node_Id) is
3747 pragma Assert (False
3748 or else NT (N).Nkind = N_Function_Instantiation
3749 or else NT (N).Nkind = N_Function_Specification
3750 or else NT (N).Nkind = N_Generic_Function_Renaming_Declaration
3751 or else NT (N).Nkind = N_Generic_Package_Renaming_Declaration
3752 or else NT (N).Nkind = N_Generic_Procedure_Renaming_Declaration
3753 or else NT (N).Nkind = N_Package_Body
3754 or else NT (N).Nkind = N_Package_Instantiation
3755 or else NT (N).Nkind = N_Package_Renaming_Declaration
3756 or else NT (N).Nkind = N_Package_Specification
3757 or else NT (N).Nkind = N_Procedure_Instantiation
3758 or else NT (N).Nkind = N_Procedure_Specification);
3759 Set_Node1_With_Parent (N, Val);
3760 end Set_Defining_Unit_Name;
3762 procedure Set_Delay_Alternative
3763 (N : Node_Id; Val : Node_Id) is
3765 pragma Assert (False
3766 or else NT (N).Nkind = N_Timed_Entry_Call);
3767 Set_Node4_With_Parent (N, Val);
3768 end Set_Delay_Alternative;
3770 procedure Set_Delay_Statement
3771 (N : Node_Id; Val : Node_Id) is
3773 pragma Assert (False
3774 or else NT (N).Nkind = N_Delay_Alternative);
3775 Set_Node2_With_Parent (N, Val);
3776 end Set_Delay_Statement;
3778 procedure Set_Delta_Expression
3779 (N : Node_Id; Val : Node_Id) is
3781 pragma Assert (False
3782 or else NT (N).Nkind = N_Decimal_Fixed_Point_Definition
3783 or else NT (N).Nkind = N_Delta_Constraint
3784 or else NT (N).Nkind = N_Ordinary_Fixed_Point_Definition);
3785 Set_Node3_With_Parent (N, Val);
3786 end Set_Delta_Expression;
3788 procedure Set_Digits_Expression
3789 (N : Node_Id; Val : Node_Id) is
3791 pragma Assert (False
3792 or else NT (N).Nkind = N_Decimal_Fixed_Point_Definition
3793 or else NT (N).Nkind = N_Digits_Constraint
3794 or else NT (N).Nkind = N_Floating_Point_Definition);
3795 Set_Node2_With_Parent (N, Val);
3796 end Set_Digits_Expression;
3798 procedure Set_Discr_Check_Funcs_Built
3799 (N : Node_Id; Val : Boolean := True) is
3801 pragma Assert (False
3802 or else NT (N).Nkind = N_Full_Type_Declaration);
3803 Set_Flag11 (N, Val);
3804 end Set_Discr_Check_Funcs_Built;
3806 procedure Set_Discrete_Choices
3807 (N : Node_Id; Val : List_Id) is
3809 pragma Assert (False
3810 or else NT (N).Nkind = N_Case_Expression_Alternative
3811 or else NT (N).Nkind = N_Case_Statement_Alternative
3812 or else NT (N).Nkind = N_Variant);
3813 Set_List4_With_Parent (N, Val);
3814 end Set_Discrete_Choices;
3816 procedure Set_Discrete_Range
3817 (N : Node_Id; Val : Node_Id) is
3819 pragma Assert (False
3820 or else NT (N).Nkind = N_Slice);
3821 Set_Node4_With_Parent (N, Val);
3822 end Set_Discrete_Range;
3824 procedure Set_Discrete_Subtype_Definition
3825 (N : Node_Id; Val : Node_Id) is
3827 pragma Assert (False
3828 or else NT (N).Nkind = N_Entry_Declaration
3829 or else NT (N).Nkind = N_Entry_Index_Specification
3830 or else NT (N).Nkind = N_Loop_Parameter_Specification);
3831 Set_Node4_With_Parent (N, Val);
3832 end Set_Discrete_Subtype_Definition;
3834 procedure Set_Discrete_Subtype_Definitions
3835 (N : Node_Id; Val : List_Id) is
3837 pragma Assert (False
3838 or else NT (N).Nkind = N_Constrained_Array_Definition);
3839 Set_List2_With_Parent (N, Val);
3840 end Set_Discrete_Subtype_Definitions;
3842 procedure Set_Discriminant_Specifications
3843 (N : Node_Id; Val : List_Id) is
3845 pragma Assert (False
3846 or else NT (N).Nkind = N_Formal_Type_Declaration
3847 or else NT (N).Nkind = N_Full_Type_Declaration
3848 or else NT (N).Nkind = N_Incomplete_Type_Declaration
3849 or else NT (N).Nkind = N_Private_Extension_Declaration
3850 or else NT (N).Nkind = N_Private_Type_Declaration
3851 or else NT (N).Nkind = N_Protected_Type_Declaration
3852 or else NT (N).Nkind = N_Task_Type_Declaration);
3853 Set_List4_With_Parent (N, Val);
3854 end Set_Discriminant_Specifications;
3856 procedure Set_Discriminant_Type
3857 (N : Node_Id; Val : Node_Id) is
3859 pragma Assert (False
3860 or else NT (N).Nkind = N_Discriminant_Specification);
3861 Set_Node5_With_Parent (N, Val);
3862 end Set_Discriminant_Type;
3864 procedure Set_Do_Accessibility_Check
3865 (N : Node_Id; Val : Boolean := True) is
3867 pragma Assert (False
3868 or else NT (N).Nkind = N_Parameter_Specification);
3869 Set_Flag13 (N, Val);
3870 end Set_Do_Accessibility_Check;
3872 procedure Set_Do_Discriminant_Check
3873 (N : Node_Id; Val : Boolean := True) is
3875 pragma Assert (False
3876 or else NT (N).Nkind = N_Selected_Component);
3877 Set_Flag13 (N, Val);
3878 end Set_Do_Discriminant_Check;
3880 procedure Set_Do_Division_Check
3881 (N : Node_Id; Val : Boolean := True) is
3883 pragma Assert (False
3884 or else NT (N).Nkind = N_Op_Divide
3885 or else NT (N).Nkind = N_Op_Mod
3886 or else NT (N).Nkind = N_Op_Rem);
3887 Set_Flag13 (N, Val);
3888 end Set_Do_Division_Check;
3890 procedure Set_Do_Length_Check
3891 (N : Node_Id; Val : Boolean := True) is
3893 pragma Assert (False
3894 or else NT (N).Nkind = N_Assignment_Statement
3895 or else NT (N).Nkind = N_Op_And
3896 or else NT (N).Nkind = N_Op_Or
3897 or else NT (N).Nkind = N_Op_Xor
3898 or else NT (N).Nkind = N_Type_Conversion);
3900 end Set_Do_Length_Check;
3902 procedure Set_Do_Overflow_Check
3903 (N : Node_Id; Val : Boolean := True) is
3905 pragma Assert (False
3906 or else NT (N).Nkind in N_Op
3907 or else NT (N).Nkind = N_Attribute_Reference
3908 or else NT (N).Nkind = N_Type_Conversion);
3909 Set_Flag17 (N, Val);
3910 end Set_Do_Overflow_Check;
3912 procedure Set_Do_Range_Check
3913 (N : Node_Id; Val : Boolean := True) is
3915 pragma Assert (False
3916 or else NT (N).Nkind in N_Subexpr);
3918 end Set_Do_Range_Check;
3920 procedure Set_Do_Storage_Check
3921 (N : Node_Id; Val : Boolean := True) is
3923 pragma Assert (False
3924 or else NT (N).Nkind = N_Allocator
3925 or else NT (N).Nkind = N_Subprogram_Body);
3926 Set_Flag17 (N, Val);
3927 end Set_Do_Storage_Check;
3929 procedure Set_Do_Tag_Check
3930 (N : Node_Id; Val : Boolean := True) is
3932 pragma Assert (False
3933 or else NT (N).Nkind = N_Assignment_Statement
3934 or else NT (N).Nkind = N_Extended_Return_Statement
3935 or else NT (N).Nkind = N_Function_Call
3936 or else NT (N).Nkind = N_Procedure_Call_Statement
3937 or else NT (N).Nkind = N_Return_Statement
3938 or else NT (N).Nkind = N_Type_Conversion);
3939 Set_Flag13 (N, Val);
3940 end Set_Do_Tag_Check;
3942 procedure Set_Elaborate_All_Desirable
3943 (N : Node_Id; Val : Boolean := True) is
3945 pragma Assert (False
3946 or else NT (N).Nkind = N_With_Clause);
3948 end Set_Elaborate_All_Desirable;
3950 procedure Set_Elaborate_All_Present
3951 (N : Node_Id; Val : Boolean := True) is
3953 pragma Assert (False
3954 or else NT (N).Nkind = N_With_Clause);
3955 Set_Flag14 (N, Val);
3956 end Set_Elaborate_All_Present;
3958 procedure Set_Elaborate_Desirable
3959 (N : Node_Id; Val : Boolean := True) is
3961 pragma Assert (False
3962 or else NT (N).Nkind = N_With_Clause);
3963 Set_Flag11 (N, Val);
3964 end Set_Elaborate_Desirable;
3966 procedure Set_Elaborate_Present
3967 (N : Node_Id; Val : Boolean := True) is
3969 pragma Assert (False
3970 or else NT (N).Nkind = N_With_Clause);
3972 end Set_Elaborate_Present;
3974 procedure Set_Elaboration_Boolean
3975 (N : Node_Id; Val : Node_Id) is
3977 pragma Assert (False
3978 or else NT (N).Nkind = N_Function_Specification
3979 or else NT (N).Nkind = N_Procedure_Specification);
3981 end Set_Elaboration_Boolean;
3983 procedure Set_Else_Actions
3984 (N : Node_Id; Val : List_Id) is
3986 pragma Assert (False
3987 or else NT (N).Nkind = N_Conditional_Expression);
3988 Set_List3 (N, Val); -- semantic field, no parent set
3989 end Set_Else_Actions;
3991 procedure Set_Else_Statements
3992 (N : Node_Id; Val : List_Id) is
3994 pragma Assert (False
3995 or else NT (N).Nkind = N_Conditional_Entry_Call
3996 or else NT (N).Nkind = N_If_Statement
3997 or else NT (N).Nkind = N_Selective_Accept);
3998 Set_List4_With_Parent (N, Val);
3999 end Set_Else_Statements;
4001 procedure Set_Elsif_Parts
4002 (N : Node_Id; Val : List_Id) is
4004 pragma Assert (False
4005 or else NT (N).Nkind = N_If_Statement);
4006 Set_List3_With_Parent (N, Val);
4007 end Set_Elsif_Parts;
4009 procedure Set_Enclosing_Variant
4010 (N : Node_Id; Val : Node_Id) is
4012 pragma Assert (False
4013 or else NT (N).Nkind = N_Variant);
4014 Set_Node2 (N, Val); -- semantic field, no parent set
4015 end Set_Enclosing_Variant;
4017 procedure Set_End_Label
4018 (N : Node_Id; Val : Node_Id) is
4020 pragma Assert (False
4021 or else NT (N).Nkind = N_Enumeration_Type_Definition
4022 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements
4023 or else NT (N).Nkind = N_Loop_Statement
4024 or else NT (N).Nkind = N_Package_Specification
4025 or else NT (N).Nkind = N_Protected_Body
4026 or else NT (N).Nkind = N_Protected_Definition
4027 or else NT (N).Nkind = N_Record_Definition
4028 or else NT (N).Nkind = N_Task_Definition);
4029 Set_Node4_With_Parent (N, Val);
4032 procedure Set_End_Span
4033 (N : Node_Id; Val : Uint) is
4035 pragma Assert (False
4036 or else NT (N).Nkind = N_Case_Statement
4037 or else NT (N).Nkind = N_If_Statement);
4041 procedure Set_Entity
4042 (N : Node_Id; Val : Node_Id) is
4044 pragma Assert (False
4045 or else NT (N).Nkind in N_Has_Entity
4046 or else NT (N).Nkind = N_Aspect_Specification
4047 or else NT (N).Nkind = N_Attribute_Definition_Clause
4048 or else NT (N).Nkind = N_Freeze_Entity);
4049 Set_Node4 (N, Val); -- semantic field, no parent set
4052 procedure Set_Entry_Body_Formal_Part
4053 (N : Node_Id; Val : Node_Id) is
4055 pragma Assert (False
4056 or else NT (N).Nkind = N_Entry_Body);
4057 Set_Node5_With_Parent (N, Val);
4058 end Set_Entry_Body_Formal_Part;
4060 procedure Set_Entry_Call_Alternative
4061 (N : Node_Id; Val : Node_Id) is
4063 pragma Assert (False
4064 or else NT (N).Nkind = N_Conditional_Entry_Call
4065 or else NT (N).Nkind = N_Timed_Entry_Call);
4066 Set_Node1_With_Parent (N, Val);
4067 end Set_Entry_Call_Alternative;
4069 procedure Set_Entry_Call_Statement
4070 (N : Node_Id; Val : Node_Id) is
4072 pragma Assert (False
4073 or else NT (N).Nkind = N_Entry_Call_Alternative);
4074 Set_Node1_With_Parent (N, Val);
4075 end Set_Entry_Call_Statement;
4077 procedure Set_Entry_Direct_Name
4078 (N : Node_Id; Val : Node_Id) is
4080 pragma Assert (False
4081 or else NT (N).Nkind = N_Accept_Statement);
4082 Set_Node1_With_Parent (N, Val);
4083 end Set_Entry_Direct_Name;
4085 procedure Set_Entry_Index
4086 (N : Node_Id; Val : Node_Id) is
4088 pragma Assert (False
4089 or else NT (N).Nkind = N_Accept_Statement);
4090 Set_Node5_With_Parent (N, Val);
4091 end Set_Entry_Index;
4093 procedure Set_Entry_Index_Specification
4094 (N : Node_Id; Val : Node_Id) is
4096 pragma Assert (False
4097 or else NT (N).Nkind = N_Entry_Body_Formal_Part);
4098 Set_Node4_With_Parent (N, Val);
4099 end Set_Entry_Index_Specification;
4102 (N : Node_Id; Val : Node_Id) is
4104 pragma Assert (False
4105 or else NT (N).Nkind in N_Has_Etype);
4106 Set_Node5 (N, Val); -- semantic field, no parent set
4109 procedure Set_Exception_Choices
4110 (N : Node_Id; Val : List_Id) is
4112 pragma Assert (False
4113 or else NT (N).Nkind = N_Exception_Handler);
4114 Set_List4_With_Parent (N, Val);
4115 end Set_Exception_Choices;
4117 procedure Set_Exception_Handlers
4118 (N : Node_Id; Val : List_Id) is
4120 pragma Assert (False
4121 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements);
4122 Set_List5_With_Parent (N, Val);
4123 end Set_Exception_Handlers;
4125 procedure Set_Exception_Junk
4126 (N : Node_Id; Val : Boolean := True) is
4128 pragma Assert (False
4129 or else NT (N).Nkind = N_Block_Statement
4130 or else NT (N).Nkind = N_Goto_Statement
4131 or else NT (N).Nkind = N_Label
4132 or else NT (N).Nkind = N_Object_Declaration
4133 or else NT (N).Nkind = N_Subtype_Declaration);
4135 end Set_Exception_Junk;
4137 procedure Set_Exception_Label
4138 (N : Node_Id; Val : Node_Id) is
4140 pragma Assert (False
4141 or else NT (N).Nkind = N_Exception_Handler
4142 or else NT (N).Nkind = N_Push_Constraint_Error_Label
4143 or else NT (N).Nkind = N_Push_Program_Error_Label
4144 or else NT (N).Nkind = N_Push_Storage_Error_Label);
4145 Set_Node5 (N, Val); -- semantic field, no parent set
4146 end Set_Exception_Label;
4148 procedure Set_Expansion_Delayed
4149 (N : Node_Id; Val : Boolean := True) is
4151 pragma Assert (False
4152 or else NT (N).Nkind = N_Aggregate
4153 or else NT (N).Nkind = N_Extension_Aggregate);
4154 Set_Flag11 (N, Val);
4155 end Set_Expansion_Delayed;
4157 procedure Set_Explicit_Actual_Parameter
4158 (N : Node_Id; Val : Node_Id) is
4160 pragma Assert (False
4161 or else NT (N).Nkind = N_Parameter_Association);
4162 Set_Node3_With_Parent (N, Val);
4163 end Set_Explicit_Actual_Parameter;
4165 procedure Set_Explicit_Generic_Actual_Parameter
4166 (N : Node_Id; Val : Node_Id) is
4168 pragma Assert (False
4169 or else NT (N).Nkind = N_Generic_Association);
4170 Set_Node1_With_Parent (N, Val);
4171 end Set_Explicit_Generic_Actual_Parameter;
4173 procedure Set_Expression
4174 (N : Node_Id; Val : Node_Id) is
4176 pragma Assert (False
4177 or else NT (N).Nkind = N_Allocator
4178 or else NT (N).Nkind = N_Aspect_Specification
4179 or else NT (N).Nkind = N_Assignment_Statement
4180 or else NT (N).Nkind = N_At_Clause
4181 or else NT (N).Nkind = N_Attribute_Definition_Clause
4182 or else NT (N).Nkind = N_Case_Expression
4183 or else NT (N).Nkind = N_Case_Expression_Alternative
4184 or else NT (N).Nkind = N_Case_Statement
4185 or else NT (N).Nkind = N_Code_Statement
4186 or else NT (N).Nkind = N_Component_Association
4187 or else NT (N).Nkind = N_Component_Declaration
4188 or else NT (N).Nkind = N_Delay_Relative_Statement
4189 or else NT (N).Nkind = N_Delay_Until_Statement
4190 or else NT (N).Nkind = N_Discriminant_Association
4191 or else NT (N).Nkind = N_Discriminant_Specification
4192 or else NT (N).Nkind = N_Exception_Declaration
4193 or else NT (N).Nkind = N_Expression_With_Actions
4194 or else NT (N).Nkind = N_Free_Statement
4195 or else NT (N).Nkind = N_Mod_Clause
4196 or else NT (N).Nkind = N_Modular_Type_Definition
4197 or else NT (N).Nkind = N_Number_Declaration
4198 or else NT (N).Nkind = N_Object_Declaration
4199 or else NT (N).Nkind = N_Parameter_Specification
4200 or else NT (N).Nkind = N_Parameterized_Expression
4201 or else NT (N).Nkind = N_Pragma_Argument_Association
4202 or else NT (N).Nkind = N_Qualified_Expression
4203 or else NT (N).Nkind = N_Raise_Statement
4204 or else NT (N).Nkind = N_Return_Statement
4205 or else NT (N).Nkind = N_Type_Conversion
4206 or else NT (N).Nkind = N_Unchecked_Expression
4207 or else NT (N).Nkind = N_Unchecked_Type_Conversion);
4208 Set_Node3_With_Parent (N, Val);
4211 procedure Set_Expressions
4212 (N : Node_Id; Val : List_Id) is
4214 pragma Assert (False
4215 or else NT (N).Nkind = N_Aggregate
4216 or else NT (N).Nkind = N_Attribute_Reference
4217 or else NT (N).Nkind = N_Conditional_Expression
4218 or else NT (N).Nkind = N_Extension_Aggregate
4219 or else NT (N).Nkind = N_Indexed_Component);
4220 Set_List1_With_Parent (N, Val);
4221 end Set_Expressions;
4223 procedure Set_First_Bit
4224 (N : Node_Id; Val : Node_Id) is
4226 pragma Assert (False
4227 or else NT (N).Nkind = N_Component_Clause);
4228 Set_Node3_With_Parent (N, Val);
4231 procedure Set_First_Inlined_Subprogram
4232 (N : Node_Id; Val : Entity_Id) is
4234 pragma Assert (False
4235 or else NT (N).Nkind = N_Compilation_Unit);
4236 Set_Node3 (N, Val); -- semantic field, no parent set
4237 end Set_First_Inlined_Subprogram;
4239 procedure Set_First_Name
4240 (N : Node_Id; Val : Boolean := True) is
4242 pragma Assert (False
4243 or else NT (N).Nkind = N_With_Clause);
4247 procedure Set_First_Named_Actual
4248 (N : Node_Id; Val : Node_Id) is
4250 pragma Assert (False
4251 or else NT (N).Nkind = N_Entry_Call_Statement
4252 or else NT (N).Nkind = N_Function_Call
4253 or else NT (N).Nkind = N_Procedure_Call_Statement);
4254 Set_Node4 (N, Val); -- semantic field, no parent set
4255 end Set_First_Named_Actual;
4257 procedure Set_First_Real_Statement
4258 (N : Node_Id; Val : Node_Id) is
4260 pragma Assert (False
4261 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements);
4262 Set_Node2 (N, Val); -- semantic field, no parent set
4263 end Set_First_Real_Statement;
4265 procedure Set_First_Subtype_Link
4266 (N : Node_Id; Val : Entity_Id) is
4268 pragma Assert (False
4269 or else NT (N).Nkind = N_Freeze_Entity);
4270 Set_Node5 (N, Val); -- semantic field, no parent set
4271 end Set_First_Subtype_Link;
4273 procedure Set_Float_Truncate
4274 (N : Node_Id; Val : Boolean := True) is
4276 pragma Assert (False
4277 or else NT (N).Nkind = N_Type_Conversion);
4278 Set_Flag11 (N, Val);
4279 end Set_Float_Truncate;
4281 procedure Set_Formal_Type_Definition
4282 (N : Node_Id; Val : Node_Id) is
4284 pragma Assert (False
4285 or else NT (N).Nkind = N_Formal_Type_Declaration);
4286 Set_Node3_With_Parent (N, Val);
4287 end Set_Formal_Type_Definition;
4289 procedure Set_Forwards_OK
4290 (N : Node_Id; Val : Boolean := True) is
4292 pragma Assert (False
4293 or else NT (N).Nkind = N_Assignment_Statement);
4295 end Set_Forwards_OK;
4297 procedure Set_From_Aspect_Specification
4298 (N : Node_Id; Val : Boolean := True) is
4300 pragma Assert (False
4301 or else NT (N).Nkind = N_Attribute_Definition_Clause
4302 or else NT (N).Nkind = N_Pragma);
4303 Set_Flag13 (N, Val);
4304 end Set_From_Aspect_Specification;
4306 procedure Set_From_At_End
4307 (N : Node_Id; Val : Boolean := True) is
4309 pragma Assert (False
4310 or else NT (N).Nkind = N_Raise_Statement);
4312 end Set_From_At_End;
4314 procedure Set_From_At_Mod
4315 (N : Node_Id; Val : Boolean := True) is
4317 pragma Assert (False
4318 or else NT (N).Nkind = N_Attribute_Definition_Clause);
4320 end Set_From_At_Mod;
4322 procedure Set_From_Default
4323 (N : Node_Id; Val : Boolean := True) is
4325 pragma Assert (False
4326 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration);
4328 end Set_From_Default;
4330 procedure Set_Generic_Associations
4331 (N : Node_Id; Val : List_Id) is
4333 pragma Assert (False
4334 or else NT (N).Nkind = N_Formal_Package_Declaration
4335 or else NT (N).Nkind = N_Function_Instantiation
4336 or else NT (N).Nkind = N_Package_Instantiation
4337 or else NT (N).Nkind = N_Procedure_Instantiation);
4338 Set_List3_With_Parent (N, Val);
4339 end Set_Generic_Associations;
4341 procedure Set_Generic_Formal_Declarations
4342 (N : Node_Id; Val : List_Id) is
4344 pragma Assert (False
4345 or else NT (N).Nkind = N_Generic_Package_Declaration
4346 or else NT (N).Nkind = N_Generic_Subprogram_Declaration);
4347 Set_List2_With_Parent (N, Val);
4348 end Set_Generic_Formal_Declarations;
4350 procedure Set_Generic_Parent
4351 (N : Node_Id; Val : Node_Id) is
4353 pragma Assert (False
4354 or else NT (N).Nkind = N_Function_Specification
4355 or else NT (N).Nkind = N_Package_Specification
4356 or else NT (N).Nkind = N_Procedure_Specification);
4358 end Set_Generic_Parent;
4360 procedure Set_Generic_Parent_Type
4361 (N : Node_Id; Val : Node_Id) is
4363 pragma Assert (False
4364 or else NT (N).Nkind = N_Subtype_Declaration);
4366 end Set_Generic_Parent_Type;
4368 procedure Set_Handled_Statement_Sequence
4369 (N : Node_Id; Val : Node_Id) is
4371 pragma Assert (False
4372 or else NT (N).Nkind = N_Accept_Statement
4373 or else NT (N).Nkind = N_Block_Statement
4374 or else NT (N).Nkind = N_Entry_Body
4375 or else NT (N).Nkind = N_Extended_Return_Statement
4376 or else NT (N).Nkind = N_Package_Body
4377 or else NT (N).Nkind = N_Subprogram_Body
4378 or else NT (N).Nkind = N_Task_Body);
4379 Set_Node4_With_Parent (N, Val);
4380 end Set_Handled_Statement_Sequence;
4382 procedure Set_Handler_List_Entry
4383 (N : Node_Id; Val : Node_Id) is
4385 pragma Assert (False
4386 or else NT (N).Nkind = N_Object_Declaration);
4388 end Set_Handler_List_Entry;
4390 procedure Set_Has_Created_Identifier
4391 (N : Node_Id; Val : Boolean := True) is
4393 pragma Assert (False
4394 or else NT (N).Nkind = N_Block_Statement
4395 or else NT (N).Nkind = N_Loop_Statement);
4396 Set_Flag15 (N, Val);
4397 end Set_Has_Created_Identifier;
4399 procedure Set_Has_Dynamic_Length_Check
4400 (N : Node_Id; Val : Boolean := True) is
4402 Set_Flag10 (N, Val);
4403 end Set_Has_Dynamic_Length_Check;
4405 procedure Set_Has_Dynamic_Range_Check
4406 (N : Node_Id; Val : Boolean := True) is
4408 Set_Flag12 (N, Val);
4409 end Set_Has_Dynamic_Range_Check;
4411 procedure Set_Has_Init_Expression
4412 (N : Node_Id; Val : Boolean := True) is
4414 pragma Assert (False
4415 or else NT (N).Nkind = N_Object_Declaration);
4416 Set_Flag14 (N, Val);
4417 end Set_Has_Init_Expression;
4419 procedure Set_Has_Local_Raise
4420 (N : Node_Id; Val : Boolean := True) is
4422 pragma Assert (False
4423 or else NT (N).Nkind = N_Exception_Handler);
4425 end Set_Has_Local_Raise;
4427 procedure Set_Has_No_Elaboration_Code
4428 (N : Node_Id; Val : Boolean := True) is
4430 pragma Assert (False
4431 or else NT (N).Nkind = N_Compilation_Unit);
4432 Set_Flag17 (N, Val);
4433 end Set_Has_No_Elaboration_Code;
4435 procedure Set_Has_Pragma_CPU
4436 (N : Node_Id; Val : Boolean := True) is
4438 pragma Assert (False
4439 or else NT (N).Nkind = N_Subprogram_Body
4440 or else NT (N).Nkind = N_Task_Definition);
4441 Set_Flag14 (N, Val);
4442 end Set_Has_Pragma_CPU;
4444 procedure Set_Has_Pragma_Priority
4445 (N : Node_Id; Val : Boolean := True) is
4447 pragma Assert (False
4448 or else NT (N).Nkind = N_Protected_Definition
4449 or else NT (N).Nkind = N_Subprogram_Body
4450 or else NT (N).Nkind = N_Task_Definition);
4452 end Set_Has_Pragma_Priority;
4454 procedure Set_Has_Pragma_Suppress_All
4455 (N : Node_Id; Val : Boolean := True) is
4457 pragma Assert (False
4458 or else NT (N).Nkind = N_Compilation_Unit);
4459 Set_Flag14 (N, Val);
4460 end Set_Has_Pragma_Suppress_All;
4462 procedure Set_Has_Private_View
4463 (N : Node_Id; Val : Boolean := True) is
4465 pragma Assert (False
4466 or else NT (N).Nkind in N_Op
4467 or else NT (N).Nkind = N_Character_Literal
4468 or else NT (N).Nkind = N_Expanded_Name
4469 or else NT (N).Nkind = N_Identifier
4470 or else NT (N).Nkind = N_Operator_Symbol);
4471 Set_Flag11 (N, Val);
4472 end Set_Has_Private_View;
4474 procedure Set_Has_Relative_Deadline_Pragma
4475 (N : Node_Id; Val : Boolean := True) is
4477 pragma Assert (False
4478 or else NT (N).Nkind = N_Subprogram_Body
4479 or else NT (N).Nkind = N_Task_Definition);
4481 end Set_Has_Relative_Deadline_Pragma;
4483 procedure Set_Has_Self_Reference
4484 (N : Node_Id; Val : Boolean := True) is
4486 pragma Assert (False
4487 or else NT (N).Nkind = N_Aggregate
4488 or else NT (N).Nkind = N_Extension_Aggregate);
4489 Set_Flag13 (N, Val);
4490 end Set_Has_Self_Reference;
4492 procedure Set_Has_Storage_Size_Pragma
4493 (N : Node_Id; Val : Boolean := True) is
4495 pragma Assert (False
4496 or else NT (N).Nkind = N_Task_Definition);
4498 end Set_Has_Storage_Size_Pragma;
4500 procedure Set_Has_Task_Info_Pragma
4501 (N : Node_Id; Val : Boolean := True) is
4503 pragma Assert (False
4504 or else NT (N).Nkind = N_Task_Definition);
4506 end Set_Has_Task_Info_Pragma;
4508 procedure Set_Has_Task_Name_Pragma
4509 (N : Node_Id; Val : Boolean := True) is
4511 pragma Assert (False
4512 or else NT (N).Nkind = N_Task_Definition);
4514 end Set_Has_Task_Name_Pragma;
4516 procedure Set_Has_Wide_Character
4517 (N : Node_Id; Val : Boolean := True) is
4519 pragma Assert (False
4520 or else NT (N).Nkind = N_String_Literal);
4521 Set_Flag11 (N, Val);
4522 end Set_Has_Wide_Character;
4524 procedure Set_Has_Wide_Wide_Character
4525 (N : Node_Id; Val : Boolean := True) is
4527 pragma Assert (False
4528 or else NT (N).Nkind = N_String_Literal);
4529 Set_Flag13 (N, Val);
4530 end Set_Has_Wide_Wide_Character;
4532 procedure Set_Hidden_By_Use_Clause
4533 (N : Node_Id; Val : Elist_Id) is
4535 pragma Assert (False
4536 or else NT (N).Nkind = N_Use_Package_Clause
4537 or else NT (N).Nkind = N_Use_Type_Clause);
4538 Set_Elist4 (N, Val);
4539 end Set_Hidden_By_Use_Clause;
4541 procedure Set_High_Bound
4542 (N : Node_Id; Val : Node_Id) is
4544 pragma Assert (False
4545 or else NT (N).Nkind = N_Range
4546 or else NT (N).Nkind = N_Real_Range_Specification
4547 or else NT (N).Nkind = N_Signed_Integer_Type_Definition);
4548 Set_Node2_With_Parent (N, Val);
4551 procedure Set_Identifier
4552 (N : Node_Id; Val : Node_Id) is
4554 pragma Assert (False
4555 or else NT (N).Nkind = N_Aspect_Specification
4556 or else NT (N).Nkind = N_At_Clause
4557 or else NT (N).Nkind = N_Block_Statement
4558 or else NT (N).Nkind = N_Designator
4559 or else NT (N).Nkind = N_Enumeration_Representation_Clause
4560 or else NT (N).Nkind = N_Label
4561 or else NT (N).Nkind = N_Loop_Statement
4562 or else NT (N).Nkind = N_Record_Representation_Clause
4563 or else NT (N).Nkind = N_Subprogram_Info);
4564 Set_Node1_With_Parent (N, Val);
4567 procedure Set_Implicit_With
4568 (N : Node_Id; Val : Boolean := True) is
4570 pragma Assert (False
4571 or else NT (N).Nkind = N_With_Clause);
4572 Set_Flag16 (N, Val);
4573 end Set_Implicit_With;
4575 procedure Set_Interface_List
4576 (N : Node_Id; Val : List_Id) is
4578 pragma Assert (False
4579 or else NT (N).Nkind = N_Derived_Type_Definition
4580 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
4581 or else NT (N).Nkind = N_Private_Extension_Declaration
4582 or else NT (N).Nkind = N_Protected_Type_Declaration
4583 or else NT (N).Nkind = N_Record_Definition
4584 or else NT (N).Nkind = N_Single_Protected_Declaration
4585 or else NT (N).Nkind = N_Single_Task_Declaration
4586 or else NT (N).Nkind = N_Task_Type_Declaration);
4587 Set_List2_With_Parent (N, Val);
4588 end Set_Interface_List;
4590 procedure Set_Interface_Present
4591 (N : Node_Id; Val : Boolean := True) is
4593 pragma Assert (False
4594 or else NT (N).Nkind = N_Derived_Type_Definition
4595 or else NT (N).Nkind = N_Record_Definition);
4596 Set_Flag16 (N, Val);
4597 end Set_Interface_Present;
4599 procedure Set_Import_Interface_Present
4600 (N : Node_Id; Val : Boolean := True) is
4602 pragma Assert (False
4603 or else NT (N).Nkind = N_Pragma);
4604 Set_Flag16 (N, Val);
4605 end Set_Import_Interface_Present;
4607 procedure Set_In_Present
4608 (N : Node_Id; Val : Boolean := True) is
4610 pragma Assert (False
4611 or else NT (N).Nkind = N_Formal_Object_Declaration
4612 or else NT (N).Nkind = N_Parameter_Specification);
4613 Set_Flag15 (N, Val);
4616 procedure Set_Includes_Infinities
4617 (N : Node_Id; Val : Boolean := True) is
4619 pragma Assert (False
4620 or else NT (N).Nkind = N_Range);
4621 Set_Flag11 (N, Val);
4622 end Set_Includes_Infinities;
4624 procedure Set_Inherited_Discriminant
4625 (N : Node_Id; Val : Boolean := True) is
4627 pragma Assert (False
4628 or else NT (N).Nkind = N_Component_Association);
4629 Set_Flag13 (N, Val);
4630 end Set_Inherited_Discriminant;
4632 procedure Set_Instance_Spec
4633 (N : Node_Id; Val : Node_Id) is
4635 pragma Assert (False
4636 or else NT (N).Nkind = N_Formal_Package_Declaration
4637 or else NT (N).Nkind = N_Function_Instantiation
4638 or else NT (N).Nkind = N_Package_Instantiation
4639 or else NT (N).Nkind = N_Procedure_Instantiation);
4640 Set_Node5 (N, Val); -- semantic field, no Parent set
4641 end Set_Instance_Spec;
4643 procedure Set_Intval
4644 (N : Node_Id; Val : Uint) is
4646 pragma Assert (False
4647 or else NT (N).Nkind = N_Integer_Literal);
4651 procedure Set_Is_Accessibility_Actual
4652 (N : Node_Id; Val : Boolean := True) is
4654 pragma Assert (False
4655 or else NT (N).Nkind = N_Parameter_Association);
4656 Set_Flag13 (N, Val);
4657 end Set_Is_Accessibility_Actual;
4659 procedure Set_Is_Asynchronous_Call_Block
4660 (N : Node_Id; Val : Boolean := True) is
4662 pragma Assert (False
4663 or else NT (N).Nkind = N_Block_Statement);
4665 end Set_Is_Asynchronous_Call_Block;
4667 procedure Set_Is_Component_Left_Opnd
4668 (N : Node_Id; Val : Boolean := True) is
4670 pragma Assert (False
4671 or else NT (N).Nkind = N_Op_Concat);
4672 Set_Flag13 (N, Val);
4673 end Set_Is_Component_Left_Opnd;
4675 procedure Set_Is_Component_Right_Opnd
4676 (N : Node_Id; Val : Boolean := True) is
4678 pragma Assert (False
4679 or else NT (N).Nkind = N_Op_Concat);
4680 Set_Flag14 (N, Val);
4681 end Set_Is_Component_Right_Opnd;
4683 procedure Set_Is_Controlling_Actual
4684 (N : Node_Id; Val : Boolean := True) is
4686 pragma Assert (False
4687 or else NT (N).Nkind in N_Subexpr);
4688 Set_Flag16 (N, Val);
4689 end Set_Is_Controlling_Actual;
4691 procedure Set_Is_Delayed_Aspect
4692 (N : Node_Id; Val : Boolean := True) is
4694 pragma Assert (False
4695 or else NT (N).Nkind = N_Attribute_Definition_Clause
4696 or else NT (N).Nkind = N_Pragma);
4697 Set_Flag14 (N, Val);
4698 end Set_Is_Delayed_Aspect;
4700 procedure Set_Is_Dynamic_Coextension
4701 (N : Node_Id; Val : Boolean := True) is
4703 pragma Assert (False
4704 or else NT (N).Nkind = N_Allocator);
4705 Set_Flag18 (N, Val);
4706 end Set_Is_Dynamic_Coextension;
4708 procedure Set_Is_Elsif
4709 (N : Node_Id; Val : Boolean := True) is
4711 pragma Assert (False
4712 or else NT (N).Nkind = N_Conditional_Expression);
4713 Set_Flag13 (N, Val);
4716 procedure Set_Is_Entry_Barrier_Function
4717 (N : Node_Id; Val : Boolean := True) is
4719 pragma Assert (False
4720 or else NT (N).Nkind = N_Subprogram_Body);
4722 end Set_Is_Entry_Barrier_Function;
4724 procedure Set_Is_Expanded_Build_In_Place_Call
4725 (N : Node_Id; Val : Boolean := True) is
4727 pragma Assert (False
4728 or else NT (N).Nkind = N_Function_Call);
4729 Set_Flag11 (N, Val);
4730 end Set_Is_Expanded_Build_In_Place_Call;
4732 procedure Set_Is_Folded_In_Parser
4733 (N : Node_Id; Val : Boolean := True) is
4735 pragma Assert (False
4736 or else NT (N).Nkind = N_String_Literal);
4738 end Set_Is_Folded_In_Parser;
4740 procedure Set_Is_In_Discriminant_Check
4741 (N : Node_Id; Val : Boolean := True) is
4743 pragma Assert (False
4744 or else NT (N).Nkind = N_Selected_Component);
4745 Set_Flag11 (N, Val);
4746 end Set_Is_In_Discriminant_Check;
4748 procedure Set_Is_Machine_Number
4749 (N : Node_Id; Val : Boolean := True) is
4751 pragma Assert (False
4752 or else NT (N).Nkind = N_Real_Literal);
4753 Set_Flag11 (N, Val);
4754 end Set_Is_Machine_Number;
4756 procedure Set_Is_Null_Loop
4757 (N : Node_Id; Val : Boolean := True) is
4759 pragma Assert (False
4760 or else NT (N).Nkind = N_Loop_Statement);
4761 Set_Flag16 (N, Val);
4762 end Set_Is_Null_Loop;
4764 procedure Set_Is_Overloaded
4765 (N : Node_Id; Val : Boolean := True) is
4767 pragma Assert (False
4768 or else NT (N).Nkind in N_Subexpr);
4770 end Set_Is_Overloaded;
4772 procedure Set_Is_Power_Of_2_For_Shift
4773 (N : Node_Id; Val : Boolean := True) is
4775 pragma Assert (False
4776 or else NT (N).Nkind = N_Op_Expon);
4777 Set_Flag13 (N, Val);
4778 end Set_Is_Power_Of_2_For_Shift;
4780 procedure Set_Is_Protected_Subprogram_Body
4781 (N : Node_Id; Val : Boolean := True) is
4783 pragma Assert (False
4784 or else NT (N).Nkind = N_Subprogram_Body);
4786 end Set_Is_Protected_Subprogram_Body;
4788 procedure Set_Is_Static_Coextension
4789 (N : Node_Id; Val : Boolean := True) is
4791 pragma Assert (False
4792 or else NT (N).Nkind = N_Allocator);
4793 Set_Flag14 (N, Val);
4794 end Set_Is_Static_Coextension;
4796 procedure Set_Is_Static_Expression
4797 (N : Node_Id; Val : Boolean := True) is
4799 pragma Assert (False
4800 or else NT (N).Nkind in N_Subexpr);
4802 end Set_Is_Static_Expression;
4804 procedure Set_Is_Subprogram_Descriptor
4805 (N : Node_Id; Val : Boolean := True) is
4807 pragma Assert (False
4808 or else NT (N).Nkind = N_Object_Declaration);
4809 Set_Flag16 (N, Val);
4810 end Set_Is_Subprogram_Descriptor;
4812 procedure Set_Is_Task_Allocation_Block
4813 (N : Node_Id; Val : Boolean := True) is
4815 pragma Assert (False
4816 or else NT (N).Nkind = N_Block_Statement);
4818 end Set_Is_Task_Allocation_Block;
4820 procedure Set_Is_Task_Master
4821 (N : Node_Id; Val : Boolean := True) is
4823 pragma Assert (False
4824 or else NT (N).Nkind = N_Block_Statement
4825 or else NT (N).Nkind = N_Subprogram_Body
4826 or else NT (N).Nkind = N_Task_Body);
4828 end Set_Is_Task_Master;
4830 procedure Set_Iteration_Scheme
4831 (N : Node_Id; Val : Node_Id) is
4833 pragma Assert (False
4834 or else NT (N).Nkind = N_Loop_Statement);
4835 Set_Node2_With_Parent (N, Val);
4836 end Set_Iteration_Scheme;
4839 (N : Node_Id; Val : Entity_Id) is
4841 pragma Assert (False
4842 or else NT (N).Nkind = N_Itype_Reference);
4843 Set_Node1 (N, Val); -- no parent, semantic field
4846 procedure Set_Kill_Range_Check
4847 (N : Node_Id; Val : Boolean := True) is
4849 pragma Assert (False
4850 or else NT (N).Nkind = N_Unchecked_Type_Conversion);
4851 Set_Flag11 (N, Val);
4852 end Set_Kill_Range_Check;
4854 procedure Set_Label_Construct
4855 (N : Node_Id; Val : Node_Id) is
4857 pragma Assert (False
4858 or else NT (N).Nkind = N_Implicit_Label_Declaration);
4859 Set_Node2 (N, Val); -- semantic field, no parent set
4860 end Set_Label_Construct;
4862 procedure Set_Last_Bit
4863 (N : Node_Id; Val : Node_Id) is
4865 pragma Assert (False
4866 or else NT (N).Nkind = N_Component_Clause);
4867 Set_Node4_With_Parent (N, Val);
4870 procedure Set_Last_Name
4871 (N : Node_Id; Val : Boolean := True) is
4873 pragma Assert (False
4874 or else NT (N).Nkind = N_With_Clause);
4878 procedure Set_Left_Opnd
4879 (N : Node_Id; Val : Node_Id) is
4881 pragma Assert (False
4882 or else NT (N).Nkind = N_And_Then
4883 or else NT (N).Nkind = N_In
4884 or else NT (N).Nkind = N_Not_In
4885 or else NT (N).Nkind = N_Or_Else
4886 or else NT (N).Nkind in N_Binary_Op);
4887 Set_Node2_With_Parent (N, Val);
4890 procedure Set_Library_Unit
4891 (N : Node_Id; Val : Node_Id) is
4893 pragma Assert (False
4894 or else NT (N).Nkind = N_Compilation_Unit
4895 or else NT (N).Nkind = N_Package_Body_Stub
4896 or else NT (N).Nkind = N_Protected_Body_Stub
4897 or else NT (N).Nkind = N_Subprogram_Body_Stub
4898 or else NT (N).Nkind = N_Task_Body_Stub
4899 or else NT (N).Nkind = N_With_Clause);
4900 Set_Node4 (N, Val); -- semantic field, no parent set
4901 end Set_Library_Unit;
4903 procedure Set_Limited_View_Installed
4904 (N : Node_Id; Val : Boolean := True) is
4906 pragma Assert (False
4907 or else NT (N).Nkind = N_Package_Specification
4908 or else NT (N).Nkind = N_With_Clause);
4909 Set_Flag18 (N, Val);
4910 end Set_Limited_View_Installed;
4912 procedure Set_Limited_Present
4913 (N : Node_Id; Val : Boolean := True) is
4915 pragma Assert (False
4916 or else NT (N).Nkind = N_Derived_Type_Definition
4917 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
4918 or else NT (N).Nkind = N_Formal_Private_Type_Definition
4919 or else NT (N).Nkind = N_Private_Extension_Declaration
4920 or else NT (N).Nkind = N_Private_Type_Declaration
4921 or else NT (N).Nkind = N_Record_Definition
4922 or else NT (N).Nkind = N_With_Clause);
4923 Set_Flag17 (N, Val);
4924 end Set_Limited_Present;
4926 procedure Set_Literals
4927 (N : Node_Id; Val : List_Id) is
4929 pragma Assert (False
4930 or else NT (N).Nkind = N_Enumeration_Type_Definition);
4931 Set_List1_With_Parent (N, Val);
4934 procedure Set_Local_Raise_Not_OK
4935 (N : Node_Id; Val : Boolean := True) is
4937 pragma Assert (False
4938 or else NT (N).Nkind = N_Exception_Handler);
4940 end Set_Local_Raise_Not_OK;
4942 procedure Set_Local_Raise_Statements
4943 (N : Node_Id; Val : Elist_Id) is
4945 pragma Assert (False
4946 or else NT (N).Nkind = N_Exception_Handler);
4947 Set_Elist1 (N, Val);
4948 end Set_Local_Raise_Statements;
4950 procedure Set_Loop_Actions
4951 (N : Node_Id; Val : List_Id) is
4953 pragma Assert (False
4954 or else NT (N).Nkind = N_Component_Association);
4955 Set_List2 (N, Val); -- semantic field, no parent set
4956 end Set_Loop_Actions;
4958 procedure Set_Loop_Parameter_Specification
4959 (N : Node_Id; Val : Node_Id) is
4961 pragma Assert (False
4962 or else NT (N).Nkind = N_Iteration_Scheme);
4963 Set_Node4_With_Parent (N, Val);
4964 end Set_Loop_Parameter_Specification;
4966 procedure Set_Low_Bound
4967 (N : Node_Id; Val : Node_Id) is
4969 pragma Assert (False
4970 or else NT (N).Nkind = N_Range
4971 or else NT (N).Nkind = N_Real_Range_Specification
4972 or else NT (N).Nkind = N_Signed_Integer_Type_Definition);
4973 Set_Node1_With_Parent (N, Val);
4976 procedure Set_Mod_Clause
4977 (N : Node_Id; Val : Node_Id) is
4979 pragma Assert (False
4980 or else NT (N).Nkind = N_Record_Representation_Clause);
4981 Set_Node2_With_Parent (N, Val);
4984 procedure Set_More_Ids
4985 (N : Node_Id; Val : Boolean := True) is
4987 pragma Assert (False
4988 or else NT (N).Nkind = N_Component_Declaration
4989 or else NT (N).Nkind = N_Discriminant_Specification
4990 or else NT (N).Nkind = N_Exception_Declaration
4991 or else NT (N).Nkind = N_Formal_Object_Declaration
4992 or else NT (N).Nkind = N_Number_Declaration
4993 or else NT (N).Nkind = N_Object_Declaration
4994 or else NT (N).Nkind = N_Parameter_Specification);
4998 procedure Set_Must_Be_Byte_Aligned
4999 (N : Node_Id; Val : Boolean := True) is
5001 pragma Assert (False
5002 or else NT (N).Nkind = N_Attribute_Reference);
5003 Set_Flag14 (N, Val);
5004 end Set_Must_Be_Byte_Aligned;
5006 procedure Set_Must_Not_Freeze
5007 (N : Node_Id; Val : Boolean := True) is
5009 pragma Assert (False
5010 or else NT (N).Nkind = N_Subtype_Indication
5011 or else NT (N).Nkind in N_Subexpr);
5013 end Set_Must_Not_Freeze;
5015 procedure Set_Must_Not_Override
5016 (N : Node_Id; Val : Boolean := True) is
5018 pragma Assert (False
5019 or else NT (N).Nkind = N_Entry_Declaration
5020 or else NT (N).Nkind = N_Function_Instantiation
5021 or else NT (N).Nkind = N_Function_Specification
5022 or else NT (N).Nkind = N_Procedure_Instantiation
5023 or else NT (N).Nkind = N_Procedure_Specification);
5024 Set_Flag15 (N, Val);
5025 end Set_Must_Not_Override;
5027 procedure Set_Must_Override
5028 (N : Node_Id; Val : Boolean := True) is
5030 pragma Assert (False
5031 or else NT (N).Nkind = N_Entry_Declaration
5032 or else NT (N).Nkind = N_Function_Instantiation
5033 or else NT (N).Nkind = N_Function_Specification
5034 or else NT (N).Nkind = N_Procedure_Instantiation
5035 or else NT (N).Nkind = N_Procedure_Specification);
5036 Set_Flag14 (N, Val);
5037 end Set_Must_Override;
5040 (N : Node_Id; Val : Node_Id) is
5042 pragma Assert (False
5043 or else NT (N).Nkind = N_Assignment_Statement
5044 or else NT (N).Nkind = N_Attribute_Definition_Clause
5045 or else NT (N).Nkind = N_Defining_Program_Unit_Name
5046 or else NT (N).Nkind = N_Designator
5047 or else NT (N).Nkind = N_Entry_Call_Statement
5048 or else NT (N).Nkind = N_Exception_Renaming_Declaration
5049 or else NT (N).Nkind = N_Exit_Statement
5050 or else NT (N).Nkind = N_Formal_Package_Declaration
5051 or else NT (N).Nkind = N_Function_Call
5052 or else NT (N).Nkind = N_Function_Instantiation
5053 or else NT (N).Nkind = N_Generic_Function_Renaming_Declaration
5054 or else NT (N).Nkind = N_Generic_Package_Renaming_Declaration
5055 or else NT (N).Nkind = N_Generic_Procedure_Renaming_Declaration
5056 or else NT (N).Nkind = N_Goto_Statement
5057 or else NT (N).Nkind = N_Object_Renaming_Declaration
5058 or else NT (N).Nkind = N_Package_Instantiation
5059 or else NT (N).Nkind = N_Package_Renaming_Declaration
5060 or else NT (N).Nkind = N_Procedure_Call_Statement
5061 or else NT (N).Nkind = N_Procedure_Instantiation
5062 or else NT (N).Nkind = N_Raise_Statement
5063 or else NT (N).Nkind = N_Requeue_Statement
5064 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration
5065 or else NT (N).Nkind = N_Subunit
5066 or else NT (N).Nkind = N_Variant_Part
5067 or else NT (N).Nkind = N_With_Clause);
5068 Set_Node2_With_Parent (N, Val);
5072 (N : Node_Id; Val : List_Id) is
5074 pragma Assert (False
5075 or else NT (N).Nkind = N_Abort_Statement
5076 or else NT (N).Nkind = N_Use_Package_Clause);
5077 Set_List2_With_Parent (N, Val);
5080 procedure Set_Next_Entity
5081 (N : Node_Id; Val : Node_Id) is
5083 pragma Assert (False
5084 or else NT (N).Nkind = N_Defining_Character_Literal
5085 or else NT (N).Nkind = N_Defining_Identifier
5086 or else NT (N).Nkind = N_Defining_Operator_Symbol);
5087 Set_Node2 (N, Val); -- semantic field, no parent set
5088 end Set_Next_Entity;
5090 procedure Set_Next_Exit_Statement
5091 (N : Node_Id; Val : Node_Id) is
5093 pragma Assert (False
5094 or else NT (N).Nkind = N_Exit_Statement);
5095 Set_Node3 (N, Val); -- semantic field, no parent set
5096 end Set_Next_Exit_Statement;
5098 procedure Set_Next_Implicit_With
5099 (N : Node_Id; Val : Node_Id) is
5101 pragma Assert (False
5102 or else NT (N).Nkind = N_With_Clause);
5103 Set_Node3 (N, Val); -- semantic field, no parent set
5104 end Set_Next_Implicit_With;
5106 procedure Set_Next_Named_Actual
5107 (N : Node_Id; Val : Node_Id) is
5109 pragma Assert (False
5110 or else NT (N).Nkind = N_Parameter_Association);
5111 Set_Node4 (N, Val); -- semantic field, no parent set
5112 end Set_Next_Named_Actual;
5114 procedure Set_Next_Pragma
5115 (N : Node_Id; Val : Node_Id) is
5117 pragma Assert (False
5118 or else NT (N).Nkind = N_Pragma);
5119 Set_Node1 (N, Val); -- semantic field, no parent set
5120 end Set_Next_Pragma;
5122 procedure Set_Next_Rep_Item
5123 (N : Node_Id; Val : Node_Id) is
5125 pragma Assert (False
5126 or else NT (N).Nkind = N_Aspect_Specification
5127 or else NT (N).Nkind = N_Attribute_Definition_Clause
5128 or else NT (N).Nkind = N_Enumeration_Representation_Clause
5129 or else NT (N).Nkind = N_Pragma
5130 or else NT (N).Nkind = N_Record_Representation_Clause);
5131 Set_Node5 (N, Val); -- semantic field, no parent set
5132 end Set_Next_Rep_Item;
5134 procedure Set_Next_Use_Clause
5135 (N : Node_Id; Val : Node_Id) is
5137 pragma Assert (False
5138 or else NT (N).Nkind = N_Use_Package_Clause
5139 or else NT (N).Nkind = N_Use_Type_Clause);
5140 Set_Node3 (N, Val); -- semantic field, no parent set
5141 end Set_Next_Use_Clause;
5143 procedure Set_No_Ctrl_Actions
5144 (N : Node_Id; Val : Boolean := True) is
5146 pragma Assert (False
5147 or else NT (N).Nkind = N_Assignment_Statement);
5149 end Set_No_Ctrl_Actions;
5151 procedure Set_No_Elaboration_Check
5152 (N : Node_Id; Val : Boolean := True) is
5154 pragma Assert (False
5155 or else NT (N).Nkind = N_Function_Call
5156 or else NT (N).Nkind = N_Procedure_Call_Statement);
5157 Set_Flag14 (N, Val);
5158 end Set_No_Elaboration_Check;
5160 procedure Set_No_Entities_Ref_In_Spec
5161 (N : Node_Id; Val : Boolean := True) is
5163 pragma Assert (False
5164 or else NT (N).Nkind = N_With_Clause);
5166 end Set_No_Entities_Ref_In_Spec;
5168 procedure Set_No_Initialization
5169 (N : Node_Id; Val : Boolean := True) is
5171 pragma Assert (False
5172 or else NT (N).Nkind = N_Allocator
5173 or else NT (N).Nkind = N_Object_Declaration);
5174 Set_Flag13 (N, Val);
5175 end Set_No_Initialization;
5177 procedure Set_No_Truncation
5178 (N : Node_Id; Val : Boolean := True) is
5180 pragma Assert (False
5181 or else NT (N).Nkind = N_Unchecked_Type_Conversion);
5182 Set_Flag17 (N, Val);
5183 end Set_No_Truncation;
5185 procedure Set_Null_Present
5186 (N : Node_Id; Val : Boolean := True) is
5188 pragma Assert (False
5189 or else NT (N).Nkind = N_Component_List
5190 or else NT (N).Nkind = N_Procedure_Specification
5191 or else NT (N).Nkind = N_Record_Definition);
5192 Set_Flag13 (N, Val);
5193 end Set_Null_Present;
5195 procedure Set_Null_Exclusion_Present
5196 (N : Node_Id; Val : Boolean := True) is
5198 pragma Assert (False
5199 or else NT (N).Nkind = N_Access_Definition
5200 or else NT (N).Nkind = N_Access_Function_Definition
5201 or else NT (N).Nkind = N_Access_Procedure_Definition
5202 or else NT (N).Nkind = N_Access_To_Object_Definition
5203 or else NT (N).Nkind = N_Allocator
5204 or else NT (N).Nkind = N_Component_Definition
5205 or else NT (N).Nkind = N_Derived_Type_Definition
5206 or else NT (N).Nkind = N_Discriminant_Specification
5207 or else NT (N).Nkind = N_Formal_Object_Declaration
5208 or else NT (N).Nkind = N_Function_Specification
5209 or else NT (N).Nkind = N_Object_Declaration
5210 or else NT (N).Nkind = N_Object_Renaming_Declaration
5211 or else NT (N).Nkind = N_Parameter_Specification
5212 or else NT (N).Nkind = N_Subtype_Declaration);
5213 Set_Flag11 (N, Val);
5214 end Set_Null_Exclusion_Present;
5216 procedure Set_Null_Exclusion_In_Return_Present
5217 (N : Node_Id; Val : Boolean := True) is
5219 pragma Assert (False
5220 or else NT (N).Nkind = N_Access_Function_Definition);
5221 Set_Flag14 (N, Val);
5222 end Set_Null_Exclusion_In_Return_Present;
5224 procedure Set_Null_Record_Present
5225 (N : Node_Id; Val : Boolean := True) is
5227 pragma Assert (False
5228 or else NT (N).Nkind = N_Aggregate
5229 or else NT (N).Nkind = N_Extension_Aggregate);
5230 Set_Flag17 (N, Val);
5231 end Set_Null_Record_Present;
5233 procedure Set_Object_Definition
5234 (N : Node_Id; Val : Node_Id) is
5236 pragma Assert (False
5237 or else NT (N).Nkind = N_Object_Declaration);
5238 Set_Node4_With_Parent (N, Val);
5239 end Set_Object_Definition;
5241 procedure Set_Original_Discriminant
5242 (N : Node_Id; Val : Node_Id) is
5244 pragma Assert (False
5245 or else NT (N).Nkind = N_Identifier);
5246 Set_Node2 (N, Val); -- semantic field, no parent set
5247 end Set_Original_Discriminant;
5249 procedure Set_Original_Entity
5250 (N : Node_Id; Val : Entity_Id) is
5252 pragma Assert (False
5253 or else NT (N).Nkind = N_Integer_Literal
5254 or else NT (N).Nkind = N_Real_Literal);
5255 Set_Node2 (N, Val); -- semantic field, no parent set
5256 end Set_Original_Entity;
5258 procedure Set_Others_Discrete_Choices
5259 (N : Node_Id; Val : List_Id) is
5261 pragma Assert (False
5262 or else NT (N).Nkind = N_Others_Choice);
5263 Set_List1_With_Parent (N, Val);
5264 end Set_Others_Discrete_Choices;
5266 procedure Set_Out_Present
5267 (N : Node_Id; Val : Boolean := True) is
5269 pragma Assert (False
5270 or else NT (N).Nkind = N_Formal_Object_Declaration
5271 or else NT (N).Nkind = N_Parameter_Specification);
5272 Set_Flag17 (N, Val);
5273 end Set_Out_Present;
5275 procedure Set_Parameter_Associations
5276 (N : Node_Id; Val : List_Id) is
5278 pragma Assert (False
5279 or else NT (N).Nkind = N_Entry_Call_Statement
5280 or else NT (N).Nkind = N_Function_Call
5281 or else NT (N).Nkind = N_Procedure_Call_Statement);
5282 Set_List3_With_Parent (N, Val);
5283 end Set_Parameter_Associations;
5285 procedure Set_Parameter_List_Truncated
5286 (N : Node_Id; Val : Boolean := True) is
5288 pragma Assert (False
5289 or else NT (N).Nkind = N_Function_Call
5290 or else NT (N).Nkind = N_Procedure_Call_Statement);
5291 Set_Flag17 (N, Val);
5292 end Set_Parameter_List_Truncated;
5294 procedure Set_Parameter_Specifications
5295 (N : Node_Id; Val : List_Id) is
5297 pragma Assert (False
5298 or else NT (N).Nkind = N_Accept_Statement
5299 or else NT (N).Nkind = N_Access_Function_Definition
5300 or else NT (N).Nkind = N_Access_Procedure_Definition
5301 or else NT (N).Nkind = N_Entry_Body_Formal_Part
5302 or else NT (N).Nkind = N_Entry_Declaration
5303 or else NT (N).Nkind = N_Function_Specification
5304 or else NT (N).Nkind = N_Procedure_Specification);
5305 Set_List3_With_Parent (N, Val);
5306 end Set_Parameter_Specifications;
5308 procedure Set_Parameter_Type
5309 (N : Node_Id; Val : Node_Id) is
5311 pragma Assert (False
5312 or else NT (N).Nkind = N_Parameter_Specification);
5313 Set_Node2_With_Parent (N, Val);
5314 end Set_Parameter_Type;
5316 procedure Set_Parent_Spec
5317 (N : Node_Id; Val : Node_Id) is
5319 pragma Assert (False
5320 or else NT (N).Nkind = N_Function_Instantiation
5321 or else NT (N).Nkind = N_Generic_Function_Renaming_Declaration
5322 or else NT (N).Nkind = N_Generic_Package_Declaration
5323 or else NT (N).Nkind = N_Generic_Package_Renaming_Declaration
5324 or else NT (N).Nkind = N_Generic_Procedure_Renaming_Declaration
5325 or else NT (N).Nkind = N_Generic_Subprogram_Declaration
5326 or else NT (N).Nkind = N_Package_Declaration
5327 or else NT (N).Nkind = N_Package_Instantiation
5328 or else NT (N).Nkind = N_Package_Renaming_Declaration
5329 or else NT (N).Nkind = N_Procedure_Instantiation
5330 or else NT (N).Nkind = N_Subprogram_Declaration
5331 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration);
5332 Set_Node4 (N, Val); -- semantic field, no parent set
5333 end Set_Parent_Spec;
5335 procedure Set_Position
5336 (N : Node_Id; Val : Node_Id) is
5338 pragma Assert (False
5339 or else NT (N).Nkind = N_Component_Clause);
5340 Set_Node2_With_Parent (N, Val);
5343 procedure Set_Pragma_Argument_Associations
5344 (N : Node_Id; Val : List_Id) is
5346 pragma Assert (False
5347 or else NT (N).Nkind = N_Pragma);
5348 Set_List2_With_Parent (N, Val);
5349 end Set_Pragma_Argument_Associations;
5351 procedure Set_Pragma_Enabled
5352 (N : Node_Id; Val : Boolean := True) is
5354 pragma Assert (False
5355 or else NT (N).Nkind = N_Pragma);
5357 end Set_Pragma_Enabled;
5359 procedure Set_Pragma_Identifier
5360 (N : Node_Id; Val : Node_Id) is
5362 pragma Assert (False
5363 or else NT (N).Nkind = N_Pragma);
5364 Set_Node4_With_Parent (N, Val);
5365 end Set_Pragma_Identifier;
5367 procedure Set_Pragmas_After
5368 (N : Node_Id; Val : List_Id) is
5370 pragma Assert (False
5371 or else NT (N).Nkind = N_Compilation_Unit_Aux
5372 or else NT (N).Nkind = N_Terminate_Alternative);
5373 Set_List5_With_Parent (N, Val);
5374 end Set_Pragmas_After;
5376 procedure Set_Pragmas_Before
5377 (N : Node_Id; Val : List_Id) is
5379 pragma Assert (False
5380 or else NT (N).Nkind = N_Accept_Alternative
5381 or else NT (N).Nkind = N_Delay_Alternative
5382 or else NT (N).Nkind = N_Entry_Call_Alternative
5383 or else NT (N).Nkind = N_Mod_Clause
5384 or else NT (N).Nkind = N_Terminate_Alternative
5385 or else NT (N).Nkind = N_Triggering_Alternative);
5386 Set_List4_With_Parent (N, Val);
5387 end Set_Pragmas_Before;
5389 procedure Set_Prefix
5390 (N : Node_Id; Val : Node_Id) is
5392 pragma Assert (False
5393 or else NT (N).Nkind = N_Attribute_Reference
5394 or else NT (N).Nkind = N_Expanded_Name
5395 or else NT (N).Nkind = N_Explicit_Dereference
5396 or else NT (N).Nkind = N_Indexed_Component
5397 or else NT (N).Nkind = N_Reference
5398 or else NT (N).Nkind = N_Selected_Component
5399 or else NT (N).Nkind = N_Slice);
5400 Set_Node3_With_Parent (N, Val);
5403 procedure Set_Present_Expr
5404 (N : Node_Id; Val : Uint) is
5406 pragma Assert (False
5407 or else NT (N).Nkind = N_Variant);
5409 end Set_Present_Expr;
5411 procedure Set_Prev_Ids
5412 (N : Node_Id; Val : Boolean := True) is
5414 pragma Assert (False
5415 or else NT (N).Nkind = N_Component_Declaration
5416 or else NT (N).Nkind = N_Discriminant_Specification
5417 or else NT (N).Nkind = N_Exception_Declaration
5418 or else NT (N).Nkind = N_Formal_Object_Declaration
5419 or else NT (N).Nkind = N_Number_Declaration
5420 or else NT (N).Nkind = N_Object_Declaration
5421 or else NT (N).Nkind = N_Parameter_Specification);
5425 procedure Set_Print_In_Hex
5426 (N : Node_Id; Val : Boolean := True) is
5428 pragma Assert (False
5429 or else NT (N).Nkind = N_Integer_Literal);
5430 Set_Flag13 (N, Val);
5431 end Set_Print_In_Hex;
5433 procedure Set_Private_Declarations
5434 (N : Node_Id; Val : List_Id) is
5436 pragma Assert (False
5437 or else NT (N).Nkind = N_Package_Specification
5438 or else NT (N).Nkind = N_Protected_Definition
5439 or else NT (N).Nkind = N_Task_Definition);
5440 Set_List3_With_Parent (N, Val);
5441 end Set_Private_Declarations;
5443 procedure Set_Private_Present
5444 (N : Node_Id; Val : Boolean := True) is
5446 pragma Assert (False
5447 or else NT (N).Nkind = N_Compilation_Unit
5448 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
5449 or else NT (N).Nkind = N_With_Clause);
5450 Set_Flag15 (N, Val);
5451 end Set_Private_Present;
5453 procedure Set_Procedure_To_Call
5454 (N : Node_Id; Val : Node_Id) is
5456 pragma Assert (False
5457 or else NT (N).Nkind = N_Allocator
5458 or else NT (N).Nkind = N_Extended_Return_Statement
5459 or else NT (N).Nkind = N_Free_Statement
5460 or else NT (N).Nkind = N_Return_Statement);
5461 Set_Node2 (N, Val); -- semantic field, no parent set
5462 end Set_Procedure_To_Call;
5464 procedure Set_Proper_Body
5465 (N : Node_Id; Val : Node_Id) is
5467 pragma Assert (False
5468 or else NT (N).Nkind = N_Subunit);
5469 Set_Node1_With_Parent (N, Val);
5470 end Set_Proper_Body;
5472 procedure Set_Protected_Definition
5473 (N : Node_Id; Val : Node_Id) is
5475 pragma Assert (False
5476 or else NT (N).Nkind = N_Protected_Type_Declaration
5477 or else NT (N).Nkind = N_Single_Protected_Declaration);
5478 Set_Node3_With_Parent (N, Val);
5479 end Set_Protected_Definition;
5481 procedure Set_Protected_Present
5482 (N : Node_Id; Val : Boolean := True) is
5484 pragma Assert (False
5485 or else NT (N).Nkind = N_Access_Function_Definition
5486 or else NT (N).Nkind = N_Access_Procedure_Definition
5487 or else NT (N).Nkind = N_Derived_Type_Definition
5488 or else NT (N).Nkind = N_Record_Definition);
5490 end Set_Protected_Present;
5492 procedure Set_Raises_Constraint_Error
5493 (N : Node_Id; Val : Boolean := True) is
5495 pragma Assert (False
5496 or else NT (N).Nkind in N_Subexpr);
5498 end Set_Raises_Constraint_Error;
5500 procedure Set_Range_Constraint
5501 (N : Node_Id; Val : Node_Id) is
5503 pragma Assert (False
5504 or else NT (N).Nkind = N_Delta_Constraint
5505 or else NT (N).Nkind = N_Digits_Constraint);
5506 Set_Node4_With_Parent (N, Val);
5507 end Set_Range_Constraint;
5509 procedure Set_Range_Expression
5510 (N : Node_Id; Val : Node_Id) is
5512 pragma Assert (False
5513 or else NT (N).Nkind = N_Range_Constraint);
5514 Set_Node4_With_Parent (N, Val);
5515 end Set_Range_Expression;
5517 procedure Set_Real_Range_Specification
5518 (N : Node_Id; Val : Node_Id) is
5520 pragma Assert (False
5521 or else NT (N).Nkind = N_Decimal_Fixed_Point_Definition
5522 or else NT (N).Nkind = N_Floating_Point_Definition
5523 or else NT (N).Nkind = N_Ordinary_Fixed_Point_Definition);
5524 Set_Node4_With_Parent (N, Val);
5525 end Set_Real_Range_Specification;
5527 procedure Set_Realval
5528 (N : Node_Id; Val : Ureal) is
5530 pragma Assert (False
5531 or else NT (N).Nkind = N_Real_Literal);
5532 Set_Ureal3 (N, Val);
5535 procedure Set_Reason
5536 (N : Node_Id; Val : Uint) is
5538 pragma Assert (False
5539 or else NT (N).Nkind = N_Raise_Constraint_Error
5540 or else NT (N).Nkind = N_Raise_Program_Error
5541 or else NT (N).Nkind = N_Raise_Storage_Error);
5545 procedure Set_Record_Extension_Part
5546 (N : Node_Id; Val : Node_Id) is
5548 pragma Assert (False
5549 or else NT (N).Nkind = N_Derived_Type_Definition);
5550 Set_Node3_With_Parent (N, Val);
5551 end Set_Record_Extension_Part;
5553 procedure Set_Redundant_Use
5554 (N : Node_Id; Val : Boolean := True) is
5556 pragma Assert (False
5557 or else NT (N).Nkind = N_Attribute_Reference
5558 or else NT (N).Nkind = N_Expanded_Name
5559 or else NT (N).Nkind = N_Identifier);
5560 Set_Flag13 (N, Val);
5561 end Set_Redundant_Use;
5563 procedure Set_Renaming_Exception
5564 (N : Node_Id; Val : Node_Id) is
5566 pragma Assert (False
5567 or else NT (N).Nkind = N_Exception_Declaration);
5569 end Set_Renaming_Exception;
5571 procedure Set_Result_Definition
5572 (N : Node_Id; Val : Node_Id) is
5574 pragma Assert (False
5575 or else NT (N).Nkind = N_Access_Function_Definition
5576 or else NT (N).Nkind = N_Function_Specification);
5577 Set_Node4_With_Parent (N, Val);
5578 end Set_Result_Definition;
5580 procedure Set_Return_Object_Declarations
5581 (N : Node_Id; Val : List_Id) is
5583 pragma Assert (False
5584 or else NT (N).Nkind = N_Extended_Return_Statement);
5585 Set_List3_With_Parent (N, Val);
5586 end Set_Return_Object_Declarations;
5588 procedure Set_Return_Statement_Entity
5589 (N : Node_Id; Val : Node_Id) is
5591 pragma Assert (False
5592 or else NT (N).Nkind = N_Extended_Return_Statement
5593 or else NT (N).Nkind = N_Return_Statement);
5594 Set_Node5 (N, Val); -- semantic field, no parent set
5595 end Set_Return_Statement_Entity;
5597 procedure Set_Reverse_Present
5598 (N : Node_Id; Val : Boolean := True) is
5600 pragma Assert (False
5601 or else NT (N).Nkind = N_Loop_Parameter_Specification);
5602 Set_Flag15 (N, Val);
5603 end Set_Reverse_Present;
5605 procedure Set_Right_Opnd
5606 (N : Node_Id; Val : Node_Id) is
5608 pragma Assert (False
5609 or else NT (N).Nkind in N_Op
5610 or else NT (N).Nkind = N_And_Then
5611 or else NT (N).Nkind = N_In
5612 or else NT (N).Nkind = N_Not_In
5613 or else NT (N).Nkind = N_Or_Else);
5614 Set_Node3_With_Parent (N, Val);
5617 procedure Set_Rounded_Result
5618 (N : Node_Id; Val : Boolean := True) is
5620 pragma Assert (False
5621 or else NT (N).Nkind = N_Op_Divide
5622 or else NT (N).Nkind = N_Op_Multiply
5623 or else NT (N).Nkind = N_Type_Conversion);
5624 Set_Flag18 (N, Val);
5625 end Set_Rounded_Result;
5627 procedure Set_SCIL_Controlling_Tag
5628 (N : Node_Id; Val : Node_Id) is
5630 pragma Assert (False
5631 or else NT (N).Nkind = N_SCIL_Dispatching_Call);
5632 Set_Node5 (N, Val); -- semantic field, no parent set
5633 end Set_SCIL_Controlling_Tag;
5635 procedure Set_SCIL_Entity
5636 (N : Node_Id; Val : Node_Id) is
5638 pragma Assert (False
5639 or else NT (N).Nkind = N_SCIL_Dispatch_Table_Tag_Init
5640 or else NT (N).Nkind = N_SCIL_Dispatching_Call
5641 or else NT (N).Nkind = N_SCIL_Membership_Test);
5642 Set_Node4 (N, Val); -- semantic field, no parent set
5643 end Set_SCIL_Entity;
5645 procedure Set_SCIL_Tag_Value
5646 (N : Node_Id; Val : Node_Id) is
5648 pragma Assert (False
5649 or else NT (N).Nkind = N_SCIL_Membership_Test);
5650 Set_Node5 (N, Val); -- semantic field, no parent set
5651 end Set_SCIL_Tag_Value;
5653 procedure Set_SCIL_Target_Prim
5654 (N : Node_Id; Val : Node_Id) is
5656 pragma Assert (False
5657 or else NT (N).Nkind = N_SCIL_Dispatching_Call);
5658 Set_Node2 (N, Val); -- semantic field, no parent set
5659 end Set_SCIL_Target_Prim;
5662 (N : Node_Id; Val : Node_Id) is
5664 pragma Assert (False
5665 or else NT (N).Nkind = N_Defining_Character_Literal
5666 or else NT (N).Nkind = N_Defining_Identifier
5667 or else NT (N).Nkind = N_Defining_Operator_Symbol);
5668 Set_Node3 (N, Val); -- semantic field, no parent set
5671 procedure Set_Select_Alternatives
5672 (N : Node_Id; Val : List_Id) is
5674 pragma Assert (False
5675 or else NT (N).Nkind = N_Selective_Accept);
5676 Set_List1_With_Parent (N, Val);
5677 end Set_Select_Alternatives;
5679 procedure Set_Selector_Name
5680 (N : Node_Id; Val : Node_Id) is
5682 pragma Assert (False
5683 or else NT (N).Nkind = N_Expanded_Name
5684 or else NT (N).Nkind = N_Generic_Association
5685 or else NT (N).Nkind = N_Parameter_Association
5686 or else NT (N).Nkind = N_Selected_Component);
5687 Set_Node2_With_Parent (N, Val);
5688 end Set_Selector_Name;
5690 procedure Set_Selector_Names
5691 (N : Node_Id; Val : List_Id) is
5693 pragma Assert (False
5694 or else NT (N).Nkind = N_Discriminant_Association);
5695 Set_List1_With_Parent (N, Val);
5696 end Set_Selector_Names;
5698 procedure Set_Shift_Count_OK
5699 (N : Node_Id; Val : Boolean := True) is
5701 pragma Assert (False
5702 or else NT (N).Nkind = N_Op_Rotate_Left
5703 or else NT (N).Nkind = N_Op_Rotate_Right
5704 or else NT (N).Nkind = N_Op_Shift_Left
5705 or else NT (N).Nkind = N_Op_Shift_Right
5706 or else NT (N).Nkind = N_Op_Shift_Right_Arithmetic);
5708 end Set_Shift_Count_OK;
5710 procedure Set_Source_Type
5711 (N : Node_Id; Val : Entity_Id) is
5713 pragma Assert (False
5714 or else NT (N).Nkind = N_Validate_Unchecked_Conversion);
5715 Set_Node1 (N, Val); -- semantic field, no parent set
5716 end Set_Source_Type;
5718 procedure Set_Specification
5719 (N : Node_Id; Val : Node_Id) is
5721 pragma Assert (False
5722 or else NT (N).Nkind = N_Abstract_Subprogram_Declaration
5723 or else NT (N).Nkind = N_Formal_Abstract_Subprogram_Declaration
5724 or else NT (N).Nkind = N_Formal_Concrete_Subprogram_Declaration
5725 or else NT (N).Nkind = N_Generic_Package_Declaration
5726 or else NT (N).Nkind = N_Generic_Subprogram_Declaration
5727 or else NT (N).Nkind = N_Package_Declaration
5728 or else NT (N).Nkind = N_Parameterized_Expression
5729 or else NT (N).Nkind = N_Subprogram_Body
5730 or else NT (N).Nkind = N_Subprogram_Body_Stub
5731 or else NT (N).Nkind = N_Subprogram_Declaration
5732 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration);
5733 Set_Node1_With_Parent (N, Val);
5734 end Set_Specification;
5736 procedure Set_Split_PPC
5737 (N : Node_Id; Val : Boolean) is
5739 pragma Assert (False
5740 or else NT (N).Nkind = N_Aspect_Specification
5741 or else NT (N).Nkind = N_Pragma);
5742 Set_Flag17 (N, Val);
5745 procedure Set_Statements
5746 (N : Node_Id; Val : List_Id) is
5748 pragma Assert (False
5749 or else NT (N).Nkind = N_Abortable_Part
5750 or else NT (N).Nkind = N_Accept_Alternative
5751 or else NT (N).Nkind = N_Case_Statement_Alternative
5752 or else NT (N).Nkind = N_Delay_Alternative
5753 or else NT (N).Nkind = N_Entry_Call_Alternative
5754 or else NT (N).Nkind = N_Exception_Handler
5755 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements
5756 or else NT (N).Nkind = N_Loop_Statement
5757 or else NT (N).Nkind = N_Triggering_Alternative);
5758 Set_List3_With_Parent (N, Val);
5761 procedure Set_Static_Processing_OK
5762 (N : Node_Id; Val : Boolean) is
5764 pragma Assert (False
5765 or else NT (N).Nkind = N_Aggregate);
5767 end Set_Static_Processing_OK;
5769 procedure Set_Storage_Pool
5770 (N : Node_Id; Val : Node_Id) is
5772 pragma Assert (False
5773 or else NT (N).Nkind = N_Allocator
5774 or else NT (N).Nkind = N_Extended_Return_Statement
5775 or else NT (N).Nkind = N_Free_Statement
5776 or else NT (N).Nkind = N_Return_Statement);
5777 Set_Node1 (N, Val); -- semantic field, no parent set
5778 end Set_Storage_Pool;
5780 procedure Set_Strval
5781 (N : Node_Id; Val : String_Id) is
5783 pragma Assert (False
5784 or else NT (N).Nkind = N_Operator_Symbol
5785 or else NT (N).Nkind = N_String_Literal);
5789 procedure Set_Subtype_Indication
5790 (N : Node_Id; Val : Node_Id) is
5792 pragma Assert (False
5793 or else NT (N).Nkind = N_Access_To_Object_Definition
5794 or else NT (N).Nkind = N_Component_Definition
5795 or else NT (N).Nkind = N_Derived_Type_Definition
5796 or else NT (N).Nkind = N_Private_Extension_Declaration
5797 or else NT (N).Nkind = N_Subtype_Declaration);
5798 Set_Node5_With_Parent (N, Val);
5799 end Set_Subtype_Indication;
5801 procedure Set_Subtype_Mark
5802 (N : Node_Id; Val : Node_Id) is
5804 pragma Assert (False
5805 or else NT (N).Nkind = N_Access_Definition
5806 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
5807 or else NT (N).Nkind = N_Formal_Object_Declaration
5808 or else NT (N).Nkind = N_Object_Renaming_Declaration
5809 or else NT (N).Nkind = N_Qualified_Expression
5810 or else NT (N).Nkind = N_Subtype_Indication
5811 or else NT (N).Nkind = N_Type_Conversion
5812 or else NT (N).Nkind = N_Unchecked_Type_Conversion);
5813 Set_Node4_With_Parent (N, Val);
5814 end Set_Subtype_Mark;
5816 procedure Set_Subtype_Marks
5817 (N : Node_Id; Val : List_Id) is
5819 pragma Assert (False
5820 or else NT (N).Nkind = N_Unconstrained_Array_Definition
5821 or else NT (N).Nkind = N_Use_Type_Clause);
5822 Set_List2_With_Parent (N, Val);
5823 end Set_Subtype_Marks;
5825 procedure Set_Suppress_Loop_Warnings
5826 (N : Node_Id; Val : Boolean := True) is
5828 pragma Assert (False
5829 or else NT (N).Nkind = N_Loop_Statement);
5830 Set_Flag17 (N, Val);
5831 end Set_Suppress_Loop_Warnings;
5833 procedure Set_Synchronized_Present
5834 (N : Node_Id; Val : Boolean := True) is
5836 pragma Assert (False
5837 or else NT (N).Nkind = N_Derived_Type_Definition
5838 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
5839 or else NT (N).Nkind = N_Private_Extension_Declaration
5840 or else NT (N).Nkind = N_Record_Definition);
5842 end Set_Synchronized_Present;
5844 procedure Set_Tagged_Present
5845 (N : Node_Id; Val : Boolean := True) is
5847 pragma Assert (False
5848 or else NT (N).Nkind = N_Formal_Private_Type_Definition
5849 or else NT (N).Nkind = N_Incomplete_Type_Declaration
5850 or else NT (N).Nkind = N_Private_Type_Declaration
5851 or else NT (N).Nkind = N_Record_Definition);
5852 Set_Flag15 (N, Val);
5853 end Set_Tagged_Present;
5855 procedure Set_Target_Type
5856 (N : Node_Id; Val : Entity_Id) is
5858 pragma Assert (False
5859 or else NT (N).Nkind = N_Validate_Unchecked_Conversion);
5860 Set_Node2 (N, Val); -- semantic field, no parent set
5861 end Set_Target_Type;
5863 procedure Set_Task_Definition
5864 (N : Node_Id; Val : Node_Id) is
5866 pragma Assert (False
5867 or else NT (N).Nkind = N_Single_Task_Declaration
5868 or else NT (N).Nkind = N_Task_Type_Declaration);
5869 Set_Node3_With_Parent (N, Val);
5870 end Set_Task_Definition;
5872 procedure Set_Task_Present
5873 (N : Node_Id; Val : Boolean := True) is
5875 pragma Assert (False
5876 or else NT (N).Nkind = N_Derived_Type_Definition
5877 or else NT (N).Nkind = N_Record_Definition);
5879 end Set_Task_Present;
5881 procedure Set_Then_Actions
5882 (N : Node_Id; Val : List_Id) is
5884 pragma Assert (False
5885 or else NT (N).Nkind = N_Conditional_Expression);
5886 Set_List2 (N, Val); -- semantic field, no parent set
5887 end Set_Then_Actions;
5889 procedure Set_Then_Statements
5890 (N : Node_Id; Val : List_Id) is
5892 pragma Assert (False
5893 or else NT (N).Nkind = N_Elsif_Part
5894 or else NT (N).Nkind = N_If_Statement);
5895 Set_List2_With_Parent (N, Val);
5896 end Set_Then_Statements;
5898 procedure Set_Treat_Fixed_As_Integer
5899 (N : Node_Id; Val : Boolean := True) is
5901 pragma Assert (False
5902 or else NT (N).Nkind = N_Op_Divide
5903 or else NT (N).Nkind = N_Op_Mod
5904 or else NT (N).Nkind = N_Op_Multiply
5905 or else NT (N).Nkind = N_Op_Rem);
5906 Set_Flag14 (N, Val);
5907 end Set_Treat_Fixed_As_Integer;
5909 procedure Set_Triggering_Alternative
5910 (N : Node_Id; Val : Node_Id) is
5912 pragma Assert (False
5913 or else NT (N).Nkind = N_Asynchronous_Select);
5914 Set_Node1_With_Parent (N, Val);
5915 end Set_Triggering_Alternative;
5917 procedure Set_Triggering_Statement
5918 (N : Node_Id; Val : Node_Id) is
5920 pragma Assert (False
5921 or else NT (N).Nkind = N_Triggering_Alternative);
5922 Set_Node1_With_Parent (N, Val);
5923 end Set_Triggering_Statement;
5925 procedure Set_TSS_Elist
5926 (N : Node_Id; Val : Elist_Id) is
5928 pragma Assert (False
5929 or else NT (N).Nkind = N_Freeze_Entity);
5930 Set_Elist3 (N, Val); -- semantic field, no parent set
5933 procedure Set_Type_Definition
5934 (N : Node_Id; Val : Node_Id) is
5936 pragma Assert (False
5937 or else NT (N).Nkind = N_Full_Type_Declaration);
5938 Set_Node3_With_Parent (N, Val);
5939 end Set_Type_Definition;
5942 (N : Node_Id; Val : Node_Id) is
5944 pragma Assert (False
5945 or else NT (N).Nkind = N_Compilation_Unit);
5946 Set_Node2_With_Parent (N, Val);
5949 procedure Set_Unknown_Discriminants_Present
5950 (N : Node_Id; Val : Boolean := True) is
5952 pragma Assert (False
5953 or else NT (N).Nkind = N_Formal_Type_Declaration
5954 or else NT (N).Nkind = N_Incomplete_Type_Declaration
5955 or else NT (N).Nkind = N_Private_Extension_Declaration
5956 or else NT (N).Nkind = N_Private_Type_Declaration);
5957 Set_Flag13 (N, Val);
5958 end Set_Unknown_Discriminants_Present;
5960 procedure Set_Unreferenced_In_Spec
5961 (N : Node_Id; Val : Boolean := True) is
5963 pragma Assert (False
5964 or else NT (N).Nkind = N_With_Clause);
5966 end Set_Unreferenced_In_Spec;
5968 procedure Set_Variant_Part
5969 (N : Node_Id; Val : Node_Id) is
5971 pragma Assert (False
5972 or else NT (N).Nkind = N_Component_List);
5973 Set_Node4_With_Parent (N, Val);
5974 end Set_Variant_Part;
5976 procedure Set_Variants
5977 (N : Node_Id; Val : List_Id) is
5979 pragma Assert (False
5980 or else NT (N).Nkind = N_Variant_Part);
5981 Set_List1_With_Parent (N, Val);
5984 procedure Set_Visible_Declarations
5985 (N : Node_Id; Val : List_Id) is
5987 pragma Assert (False
5988 or else NT (N).Nkind = N_Package_Specification
5989 or else NT (N).Nkind = N_Protected_Definition
5990 or else NT (N).Nkind = N_Task_Definition);
5991 Set_List2_With_Parent (N, Val);
5992 end Set_Visible_Declarations;
5994 procedure Set_Was_Originally_Stub
5995 (N : Node_Id; Val : Boolean := True) is
5997 pragma Assert (False
5998 or else NT (N).Nkind = N_Package_Body
5999 or else NT (N).Nkind = N_Protected_Body
6000 or else NT (N).Nkind = N_Subprogram_Body
6001 or else NT (N).Nkind = N_Task_Body);
6002 Set_Flag13 (N, Val);
6003 end Set_Was_Originally_Stub;
6005 procedure Set_Withed_Body
6006 (N : Node_Id; Val : Node_Id) is
6008 pragma Assert (False
6009 or else NT (N).Nkind = N_With_Clause);
6011 end Set_Withed_Body;
6013 procedure Set_Zero_Cost_Handling
6014 (N : Node_Id; Val : Boolean := True) is
6016 pragma Assert (False
6017 or else NT (N).Nkind = N_Exception_Handler
6018 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements);
6020 end Set_Zero_Cost_Handling;
6022 -------------------------
6023 -- Iterator Procedures --
6024 -------------------------
6026 procedure Next_Entity (N : in out Node_Id) is
6028 N := Next_Entity (N);
6031 procedure Next_Named_Actual (N : in out Node_Id) is
6033 N := Next_Named_Actual (N);
6034 end Next_Named_Actual;
6036 procedure Next_Rep_Item (N : in out Node_Id) is
6038 N := Next_Rep_Item (N);
6041 procedure Next_Use_Clause (N : in out Node_Id) is
6043 N := Next_Use_Clause (N);
6044 end Next_Use_Clause;
6050 function End_Location (N : Node_Id) return Source_Ptr is
6051 L : constant Uint := End_Span (N);
6056 return Source_Ptr (Int (Sloc (N)) + UI_To_Int (L));
6060 --------------------
6061 -- Get_Pragma_Arg --
6062 --------------------
6064 function Get_Pragma_Arg (Arg : Node_Id) return Node_Id is
6066 if Nkind (Arg) = N_Pragma_Argument_Association then
6067 return Expression (Arg);
6073 ----------------------
6074 -- Set_End_Location --
6075 ----------------------
6077 procedure Set_End_Location (N : Node_Id; S : Source_Ptr) is
6080 UI_From_Int (Int (S) - Int (Sloc (N))));
6081 end Set_End_Location;
6090 V2 : Node_Kind) return Boolean
6093 return T = V1 or else
6101 V3 : Node_Kind) return Boolean
6104 return T = V1 or else
6114 V4 : Node_Kind) return Boolean
6117 return T = V1 or else
6129 V5 : Node_Kind) return Boolean
6132 return T = V1 or else
6146 V6 : Node_Kind) return Boolean
6149 return T = V1 or else
6165 V7 : Node_Kind) return Boolean
6168 return T = V1 or else
6186 V8 : Node_Kind) return Boolean
6189 return T = V1 or else
6209 V9 : Node_Kind) return Boolean
6212 return T = V1 or else
6227 function Pragma_Name (N : Node_Id) return Name_Id is
6229 return Chars (Pragma_Identifier (N));