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_Quantified_Expression
228 or else NT (N).Nkind = N_Use_Type_Clause);
232 function Alternatives
233 (N : Node_Id) return List_Id is
236 or else NT (N).Nkind = N_Case_Expression
237 or else NT (N).Nkind = N_Case_Statement
238 or else NT (N).Nkind = N_In
239 or else NT (N).Nkind = N_Not_In);
243 function Ancestor_Part
244 (N : Node_Id) return Node_Id is
247 or else NT (N).Nkind = N_Extension_Aggregate);
251 function Array_Aggregate
252 (N : Node_Id) return Node_Id is
255 or else NT (N).Nkind = N_Enumeration_Representation_Clause);
259 function Aspect_Cancel
260 (N : Node_Id) return Boolean is
263 or else NT (N).Nkind = N_Pragma);
267 function Aspect_Rep_Item
268 (N : Node_Id) return Node_Id is
271 or else NT (N).Nkind = N_Aspect_Specification);
275 function Assignment_OK
276 (N : Node_Id) return Boolean is
279 or else NT (N).Nkind = N_Object_Declaration
280 or else NT (N).Nkind in N_Subexpr);
284 function Associated_Node
285 (N : Node_Id) return Node_Id is
288 or else NT (N).Nkind in N_Has_Entity
289 or else NT (N).Nkind = N_Aggregate
290 or else NT (N).Nkind = N_Extension_Aggregate
291 or else NT (N).Nkind = N_Selected_Component);
296 (N : Node_Id) return Node_Id is
299 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements);
303 function Attribute_Name
304 (N : Node_Id) return Name_Id is
307 or else NT (N).Nkind = N_Attribute_Reference);
311 function Aux_Decls_Node
312 (N : Node_Id) return Node_Id is
315 or else NT (N).Nkind = N_Compilation_Unit);
319 function Backwards_OK
320 (N : Node_Id) return Boolean is
323 or else NT (N).Nkind = N_Assignment_Statement);
327 function Bad_Is_Detected
328 (N : Node_Id) return Boolean is
331 or else NT (N).Nkind = N_Subprogram_Body);
335 function Body_Required
336 (N : Node_Id) return Boolean is
339 or else NT (N).Nkind = N_Compilation_Unit);
343 function Body_To_Inline
344 (N : Node_Id) return Node_Id is
347 or else NT (N).Nkind = N_Subprogram_Declaration);
352 (N : Node_Id) return Boolean is
355 or else NT (N).Nkind = N_Component_Association
356 or else NT (N).Nkind = N_Formal_Abstract_Subprogram_Declaration
357 or else NT (N).Nkind = N_Formal_Concrete_Subprogram_Declaration
358 or else NT (N).Nkind = N_Formal_Package_Declaration
359 or else NT (N).Nkind = N_Generic_Association);
364 (N : Node_Id) return Boolean is
367 or else NT (N).Nkind = N_Extended_Return_Statement
368 or else NT (N).Nkind = N_Return_Statement);
372 function Char_Literal_Value
373 (N : Node_Id) return Uint is
376 or else NT (N).Nkind = N_Character_Literal);
378 end Char_Literal_Value;
381 (N : Node_Id) return Name_Id is
384 or else NT (N).Nkind in N_Has_Chars);
388 function Check_Address_Alignment
389 (N : Node_Id) return Boolean is
392 or else NT (N).Nkind = N_Attribute_Definition_Clause);
394 end Check_Address_Alignment;
396 function Choice_Parameter
397 (N : Node_Id) return Node_Id is
400 or else NT (N).Nkind = N_Exception_Handler);
402 end Choice_Parameter;
405 (N : Node_Id) return List_Id is
408 or else NT (N).Nkind = N_Component_Association);
412 function Class_Present
413 (N : Node_Id) return Boolean is
416 or else NT (N).Nkind = N_Aspect_Specification
417 or else NT (N).Nkind = N_Pragma);
421 function Coextensions
422 (N : Node_Id) return Elist_Id is
425 or else NT (N).Nkind = N_Allocator);
429 function Comes_From_Extended_Return_Statement
430 (N : Node_Id) return Boolean is
433 or else NT (N).Nkind = N_Return_Statement);
435 end Comes_From_Extended_Return_Statement;
437 function Compile_Time_Known_Aggregate
438 (N : Node_Id) return Boolean is
441 or else NT (N).Nkind = N_Aggregate);
443 end Compile_Time_Known_Aggregate;
445 function Component_Associations
446 (N : Node_Id) return List_Id is
449 or else NT (N).Nkind = N_Aggregate
450 or else NT (N).Nkind = N_Extension_Aggregate);
452 end Component_Associations;
454 function Component_Clauses
455 (N : Node_Id) return List_Id is
458 or else NT (N).Nkind = N_Record_Representation_Clause);
460 end Component_Clauses;
462 function Component_Definition
463 (N : Node_Id) return Node_Id is
466 or else NT (N).Nkind = N_Component_Declaration
467 or else NT (N).Nkind = N_Constrained_Array_Definition
468 or else NT (N).Nkind = N_Unconstrained_Array_Definition);
470 end Component_Definition;
472 function Component_Items
473 (N : Node_Id) return List_Id is
476 or else NT (N).Nkind = N_Component_List);
480 function Component_List
481 (N : Node_Id) return Node_Id is
484 or else NT (N).Nkind = N_Record_Definition
485 or else NT (N).Nkind = N_Variant);
489 function Component_Name
490 (N : Node_Id) return Node_Id is
493 or else NT (N).Nkind = N_Component_Clause);
497 function Componentwise_Assignment
498 (N : Node_Id) return Boolean is
501 or else NT (N).Nkind = N_Assignment_Statement);
503 end Componentwise_Assignment;
506 (N : Node_Id) return Node_Id is
509 or else NT (N).Nkind = N_Accept_Alternative
510 or else NT (N).Nkind = N_Delay_Alternative
511 or else NT (N).Nkind = N_Elsif_Part
512 or else NT (N).Nkind = N_Entry_Body_Formal_Part
513 or else NT (N).Nkind = N_Exit_Statement
514 or else NT (N).Nkind = N_If_Statement
515 or else NT (N).Nkind = N_Iteration_Scheme
516 or else NT (N).Nkind = N_Quantified_Expression
517 or else NT (N).Nkind = N_Raise_Constraint_Error
518 or else NT (N).Nkind = N_Raise_Program_Error
519 or else NT (N).Nkind = N_Raise_Storage_Error
520 or else NT (N).Nkind = N_Terminate_Alternative);
524 function Condition_Actions
525 (N : Node_Id) return List_Id is
528 or else NT (N).Nkind = N_Elsif_Part
529 or else NT (N).Nkind = N_Iteration_Scheme);
531 end Condition_Actions;
533 function Config_Pragmas
534 (N : Node_Id) return List_Id is
537 or else NT (N).Nkind = N_Compilation_Unit_Aux);
541 function Constant_Present
542 (N : Node_Id) return Boolean is
545 or else NT (N).Nkind = N_Access_Definition
546 or else NT (N).Nkind = N_Access_To_Object_Definition
547 or else NT (N).Nkind = N_Object_Declaration);
549 end Constant_Present;
552 (N : Node_Id) return Node_Id is
555 or else NT (N).Nkind = N_Subtype_Indication);
560 (N : Node_Id) return List_Id is
563 or else NT (N).Nkind = N_Index_Or_Discriminant_Constraint);
567 function Context_Installed
568 (N : Node_Id) return Boolean is
571 or else NT (N).Nkind = N_With_Clause);
573 end Context_Installed;
575 function Context_Items
576 (N : Node_Id) return List_Id is
579 or else NT (N).Nkind = N_Compilation_Unit);
583 function Context_Pending
584 (N : Node_Id) return Boolean is
587 or else NT (N).Nkind = N_Compilation_Unit);
591 function Controlling_Argument
592 (N : Node_Id) return Node_Id is
595 or else NT (N).Nkind = N_Function_Call
596 or else NT (N).Nkind = N_Procedure_Call_Statement);
598 end Controlling_Argument;
600 function Conversion_OK
601 (N : Node_Id) return Boolean is
604 or else NT (N).Nkind = N_Type_Conversion);
608 function Corresponding_Body
609 (N : Node_Id) return Node_Id is
612 or else NT (N).Nkind = N_Entry_Declaration
613 or else NT (N).Nkind = N_Generic_Package_Declaration
614 or else NT (N).Nkind = N_Generic_Subprogram_Declaration
615 or else NT (N).Nkind = N_Package_Body_Stub
616 or else NT (N).Nkind = N_Package_Declaration
617 or else NT (N).Nkind = N_Protected_Body_Stub
618 or else NT (N).Nkind = N_Protected_Type_Declaration
619 or else NT (N).Nkind = N_Subprogram_Body_Stub
620 or else NT (N).Nkind = N_Subprogram_Declaration
621 or else NT (N).Nkind = N_Task_Body_Stub
622 or else NT (N).Nkind = N_Task_Type_Declaration);
624 end Corresponding_Body;
626 function Corresponding_Formal_Spec
627 (N : Node_Id) return Node_Id is
630 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration);
632 end Corresponding_Formal_Spec;
634 function Corresponding_Generic_Association
635 (N : Node_Id) return Node_Id is
638 or else NT (N).Nkind = N_Object_Declaration
639 or else NT (N).Nkind = N_Object_Renaming_Declaration);
641 end Corresponding_Generic_Association;
643 function Corresponding_Integer_Value
644 (N : Node_Id) return Uint is
647 or else NT (N).Nkind = N_Real_Literal);
649 end Corresponding_Integer_Value;
651 function Corresponding_Spec
652 (N : Node_Id) return Node_Id is
655 or else NT (N).Nkind = N_Package_Body
656 or else NT (N).Nkind = N_Protected_Body
657 or else NT (N).Nkind = N_Subprogram_Body
658 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration
659 or else NT (N).Nkind = N_Task_Body
660 or else NT (N).Nkind = N_With_Clause);
662 end Corresponding_Spec;
664 function Corresponding_Stub
665 (N : Node_Id) return Node_Id is
668 or else NT (N).Nkind = N_Subunit);
670 end Corresponding_Stub;
672 function Dcheck_Function
673 (N : Node_Id) return Entity_Id is
676 or else NT (N).Nkind = N_Variant);
680 function Debug_Statement
681 (N : Node_Id) return Node_Id is
684 or else NT (N).Nkind = N_Pragma);
688 function Declarations
689 (N : Node_Id) return List_Id is
692 or else NT (N).Nkind = N_Accept_Statement
693 or else NT (N).Nkind = N_Block_Statement
694 or else NT (N).Nkind = N_Compilation_Unit_Aux
695 or else NT (N).Nkind = N_Entry_Body
696 or else NT (N).Nkind = N_Package_Body
697 or else NT (N).Nkind = N_Protected_Body
698 or else NT (N).Nkind = N_Subprogram_Body
699 or else NT (N).Nkind = N_Task_Body);
703 function Default_Expression
704 (N : Node_Id) return Node_Id is
707 or else NT (N).Nkind = N_Formal_Object_Declaration
708 or else NT (N).Nkind = N_Parameter_Specification);
710 end Default_Expression;
712 function Default_Storage_Pool
713 (N : Node_Id) return Node_Id is
716 or else NT (N).Nkind = N_Compilation_Unit_Aux);
718 end Default_Storage_Pool;
720 function Default_Name
721 (N : Node_Id) return Node_Id is
724 or else NT (N).Nkind = N_Formal_Abstract_Subprogram_Declaration
725 or else NT (N).Nkind = N_Formal_Concrete_Subprogram_Declaration);
729 function Defining_Identifier
730 (N : Node_Id) return Entity_Id is
733 or else NT (N).Nkind = N_Component_Declaration
734 or else NT (N).Nkind = N_Defining_Program_Unit_Name
735 or else NT (N).Nkind = N_Discriminant_Specification
736 or else NT (N).Nkind = N_Entry_Body
737 or else NT (N).Nkind = N_Entry_Declaration
738 or else NT (N).Nkind = N_Entry_Index_Specification
739 or else NT (N).Nkind = N_Exception_Declaration
740 or else NT (N).Nkind = N_Exception_Renaming_Declaration
741 or else NT (N).Nkind = N_Formal_Object_Declaration
742 or else NT (N).Nkind = N_Formal_Package_Declaration
743 or else NT (N).Nkind = N_Formal_Type_Declaration
744 or else NT (N).Nkind = N_Full_Type_Declaration
745 or else NT (N).Nkind = N_Implicit_Label_Declaration
746 or else NT (N).Nkind = N_Incomplete_Type_Declaration
747 or else NT (N).Nkind = N_Iterator_Specification
748 or else NT (N).Nkind = N_Loop_Parameter_Specification
749 or else NT (N).Nkind = N_Number_Declaration
750 or else NT (N).Nkind = N_Object_Declaration
751 or else NT (N).Nkind = N_Object_Renaming_Declaration
752 or else NT (N).Nkind = N_Package_Body_Stub
753 or else NT (N).Nkind = N_Parameter_Specification
754 or else NT (N).Nkind = N_Private_Extension_Declaration
755 or else NT (N).Nkind = N_Private_Type_Declaration
756 or else NT (N).Nkind = N_Protected_Body
757 or else NT (N).Nkind = N_Protected_Body_Stub
758 or else NT (N).Nkind = N_Protected_Type_Declaration
759 or else NT (N).Nkind = N_Single_Protected_Declaration
760 or else NT (N).Nkind = N_Single_Task_Declaration
761 or else NT (N).Nkind = N_Subtype_Declaration
762 or else NT (N).Nkind = N_Task_Body
763 or else NT (N).Nkind = N_Task_Body_Stub
764 or else NT (N).Nkind = N_Task_Type_Declaration);
766 end Defining_Identifier;
768 function Defining_Unit_Name
769 (N : Node_Id) return Node_Id is
772 or else NT (N).Nkind = N_Function_Instantiation
773 or else NT (N).Nkind = N_Function_Specification
774 or else NT (N).Nkind = N_Generic_Function_Renaming_Declaration
775 or else NT (N).Nkind = N_Generic_Package_Renaming_Declaration
776 or else NT (N).Nkind = N_Generic_Procedure_Renaming_Declaration
777 or else NT (N).Nkind = N_Package_Body
778 or else NT (N).Nkind = N_Package_Instantiation
779 or else NT (N).Nkind = N_Package_Renaming_Declaration
780 or else NT (N).Nkind = N_Package_Specification
781 or else NT (N).Nkind = N_Procedure_Instantiation
782 or else NT (N).Nkind = N_Procedure_Specification);
784 end Defining_Unit_Name;
786 function Delay_Alternative
787 (N : Node_Id) return Node_Id is
790 or else NT (N).Nkind = N_Timed_Entry_Call);
792 end Delay_Alternative;
794 function Delay_Statement
795 (N : Node_Id) return Node_Id is
798 or else NT (N).Nkind = N_Delay_Alternative);
802 function Delta_Expression
803 (N : Node_Id) return Node_Id is
806 or else NT (N).Nkind = N_Decimal_Fixed_Point_Definition
807 or else NT (N).Nkind = N_Delta_Constraint
808 or else NT (N).Nkind = N_Ordinary_Fixed_Point_Definition);
810 end Delta_Expression;
812 function Digits_Expression
813 (N : Node_Id) return Node_Id is
816 or else NT (N).Nkind = N_Decimal_Fixed_Point_Definition
817 or else NT (N).Nkind = N_Digits_Constraint
818 or else NT (N).Nkind = N_Floating_Point_Definition);
820 end Digits_Expression;
822 function Discr_Check_Funcs_Built
823 (N : Node_Id) return Boolean is
826 or else NT (N).Nkind = N_Full_Type_Declaration);
828 end Discr_Check_Funcs_Built;
830 function Discrete_Choices
831 (N : Node_Id) return List_Id is
834 or else NT (N).Nkind = N_Case_Expression_Alternative
835 or else NT (N).Nkind = N_Case_Statement_Alternative
836 or else NT (N).Nkind = N_Variant);
838 end Discrete_Choices;
840 function Discrete_Range
841 (N : Node_Id) return Node_Id is
844 or else NT (N).Nkind = N_Slice);
848 function Discrete_Subtype_Definition
849 (N : Node_Id) return Node_Id is
852 or else NT (N).Nkind = N_Entry_Declaration
853 or else NT (N).Nkind = N_Entry_Index_Specification
854 or else NT (N).Nkind = N_Loop_Parameter_Specification);
856 end Discrete_Subtype_Definition;
858 function Discrete_Subtype_Definitions
859 (N : Node_Id) return List_Id is
862 or else NT (N).Nkind = N_Constrained_Array_Definition);
864 end Discrete_Subtype_Definitions;
866 function Discriminant_Specifications
867 (N : Node_Id) return List_Id is
870 or else NT (N).Nkind = N_Formal_Type_Declaration
871 or else NT (N).Nkind = N_Full_Type_Declaration
872 or else NT (N).Nkind = N_Incomplete_Type_Declaration
873 or else NT (N).Nkind = N_Private_Extension_Declaration
874 or else NT (N).Nkind = N_Private_Type_Declaration
875 or else NT (N).Nkind = N_Protected_Type_Declaration
876 or else NT (N).Nkind = N_Task_Type_Declaration);
878 end Discriminant_Specifications;
880 function Discriminant_Type
881 (N : Node_Id) return Node_Id is
884 or else NT (N).Nkind = N_Discriminant_Specification);
886 end Discriminant_Type;
888 function Do_Accessibility_Check
889 (N : Node_Id) return Boolean is
892 or else NT (N).Nkind = N_Parameter_Specification);
894 end Do_Accessibility_Check;
896 function Do_Discriminant_Check
897 (N : Node_Id) return Boolean is
900 or else NT (N).Nkind = N_Selected_Component);
902 end Do_Discriminant_Check;
904 function Do_Division_Check
905 (N : Node_Id) return Boolean is
908 or else NT (N).Nkind = N_Op_Divide
909 or else NT (N).Nkind = N_Op_Mod
910 or else NT (N).Nkind = N_Op_Rem);
912 end Do_Division_Check;
914 function Do_Length_Check
915 (N : Node_Id) return Boolean is
918 or else NT (N).Nkind = N_Assignment_Statement
919 or else NT (N).Nkind = N_Op_And
920 or else NT (N).Nkind = N_Op_Or
921 or else NT (N).Nkind = N_Op_Xor
922 or else NT (N).Nkind = N_Type_Conversion);
926 function Do_Overflow_Check
927 (N : Node_Id) return Boolean is
930 or else NT (N).Nkind in N_Op
931 or else NT (N).Nkind = N_Attribute_Reference
932 or else NT (N).Nkind = N_Type_Conversion);
934 end Do_Overflow_Check;
936 function Do_Range_Check
937 (N : Node_Id) return Boolean is
940 or else NT (N).Nkind in N_Subexpr);
944 function Do_Storage_Check
945 (N : Node_Id) return Boolean is
948 or else NT (N).Nkind = N_Allocator
949 or else NT (N).Nkind = N_Subprogram_Body);
951 end Do_Storage_Check;
953 function Do_Tag_Check
954 (N : Node_Id) return Boolean is
957 or else NT (N).Nkind = N_Assignment_Statement
958 or else NT (N).Nkind = N_Extended_Return_Statement
959 or else NT (N).Nkind = N_Function_Call
960 or else NT (N).Nkind = N_Procedure_Call_Statement
961 or else NT (N).Nkind = N_Return_Statement
962 or else NT (N).Nkind = N_Type_Conversion);
966 function Elaborate_All_Desirable
967 (N : Node_Id) return Boolean is
970 or else NT (N).Nkind = N_With_Clause);
972 end Elaborate_All_Desirable;
974 function Elaborate_All_Present
975 (N : Node_Id) return Boolean is
978 or else NT (N).Nkind = N_With_Clause);
980 end Elaborate_All_Present;
982 function Elaborate_Desirable
983 (N : Node_Id) return Boolean is
986 or else NT (N).Nkind = N_With_Clause);
988 end Elaborate_Desirable;
990 function Elaborate_Present
991 (N : Node_Id) return Boolean is
994 or else NT (N).Nkind = N_With_Clause);
996 end Elaborate_Present;
998 function Elaboration_Boolean
999 (N : Node_Id) return Node_Id is
1001 pragma Assert (False
1002 or else NT (N).Nkind = N_Function_Specification
1003 or else NT (N).Nkind = N_Procedure_Specification);
1005 end Elaboration_Boolean;
1007 function Else_Actions
1008 (N : Node_Id) return List_Id is
1010 pragma Assert (False
1011 or else NT (N).Nkind = N_Conditional_Expression);
1015 function Else_Statements
1016 (N : Node_Id) return List_Id is
1018 pragma Assert (False
1019 or else NT (N).Nkind = N_Conditional_Entry_Call
1020 or else NT (N).Nkind = N_If_Statement
1021 or else NT (N).Nkind = N_Selective_Accept);
1023 end Else_Statements;
1025 function Elsif_Parts
1026 (N : Node_Id) return List_Id is
1028 pragma Assert (False
1029 or else NT (N).Nkind = N_If_Statement);
1033 function Enclosing_Variant
1034 (N : Node_Id) return Node_Id is
1036 pragma Assert (False
1037 or else NT (N).Nkind = N_Variant);
1039 end Enclosing_Variant;
1042 (N : Node_Id) return Node_Id is
1044 pragma Assert (False
1045 or else NT (N).Nkind = N_Enumeration_Type_Definition
1046 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements
1047 or else NT (N).Nkind = N_Loop_Statement
1048 or else NT (N).Nkind = N_Package_Specification
1049 or else NT (N).Nkind = N_Protected_Body
1050 or else NT (N).Nkind = N_Protected_Definition
1051 or else NT (N).Nkind = N_Record_Definition
1052 or else NT (N).Nkind = N_Task_Definition);
1057 (N : Node_Id) return Uint is
1059 pragma Assert (False
1060 or else NT (N).Nkind = N_Case_Statement
1061 or else NT (N).Nkind = N_If_Statement);
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_Aspect_Specification
1071 or else NT (N).Nkind = N_Attribute_Definition_Clause
1072 or else NT (N).Nkind = N_Freeze_Entity);
1076 function Entity_Or_Associated_Node
1077 (N : Node_Id) return Node_Id is
1079 pragma Assert (False
1080 or else NT (N).Nkind in N_Has_Entity
1081 or else NT (N).Nkind = N_Freeze_Entity);
1083 end Entity_Or_Associated_Node;
1085 function Entry_Body_Formal_Part
1086 (N : Node_Id) return Node_Id is
1088 pragma Assert (False
1089 or else NT (N).Nkind = N_Entry_Body);
1091 end Entry_Body_Formal_Part;
1093 function Entry_Call_Alternative
1094 (N : Node_Id) return Node_Id is
1096 pragma Assert (False
1097 or else NT (N).Nkind = N_Conditional_Entry_Call
1098 or else NT (N).Nkind = N_Timed_Entry_Call);
1100 end Entry_Call_Alternative;
1102 function Entry_Call_Statement
1103 (N : Node_Id) return Node_Id is
1105 pragma Assert (False
1106 or else NT (N).Nkind = N_Entry_Call_Alternative);
1108 end Entry_Call_Statement;
1110 function Entry_Direct_Name
1111 (N : Node_Id) return Node_Id is
1113 pragma Assert (False
1114 or else NT (N).Nkind = N_Accept_Statement);
1116 end Entry_Direct_Name;
1118 function Entry_Index
1119 (N : Node_Id) return Node_Id is
1121 pragma Assert (False
1122 or else NT (N).Nkind = N_Accept_Statement);
1126 function Entry_Index_Specification
1127 (N : Node_Id) return Node_Id is
1129 pragma Assert (False
1130 or else NT (N).Nkind = N_Entry_Body_Formal_Part);
1132 end Entry_Index_Specification;
1135 (N : Node_Id) return Node_Id is
1137 pragma Assert (False
1138 or else NT (N).Nkind in N_Has_Etype);
1142 function Exception_Choices
1143 (N : Node_Id) return List_Id is
1145 pragma Assert (False
1146 or else NT (N).Nkind = N_Exception_Handler);
1148 end Exception_Choices;
1150 function Exception_Handlers
1151 (N : Node_Id) return List_Id is
1153 pragma Assert (False
1154 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements);
1156 end Exception_Handlers;
1158 function Exception_Junk
1159 (N : Node_Id) return Boolean is
1161 pragma Assert (False
1162 or else NT (N).Nkind = N_Block_Statement
1163 or else NT (N).Nkind = N_Goto_Statement
1164 or else NT (N).Nkind = N_Label
1165 or else NT (N).Nkind = N_Object_Declaration
1166 or else NT (N).Nkind = N_Subtype_Declaration);
1170 function Exception_Label
1171 (N : Node_Id) return Node_Id is
1173 pragma Assert (False
1174 or else NT (N).Nkind = N_Exception_Handler
1175 or else NT (N).Nkind = N_Push_Constraint_Error_Label
1176 or else NT (N).Nkind = N_Push_Program_Error_Label
1177 or else NT (N).Nkind = N_Push_Storage_Error_Label);
1179 end Exception_Label;
1181 function Expansion_Delayed
1182 (N : Node_Id) return Boolean is
1184 pragma Assert (False
1185 or else NT (N).Nkind = N_Aggregate
1186 or else NT (N).Nkind = N_Extension_Aggregate);
1188 end Expansion_Delayed;
1190 function Explicit_Actual_Parameter
1191 (N : Node_Id) return Node_Id is
1193 pragma Assert (False
1194 or else NT (N).Nkind = N_Parameter_Association);
1196 end Explicit_Actual_Parameter;
1198 function Explicit_Generic_Actual_Parameter
1199 (N : Node_Id) return Node_Id is
1201 pragma Assert (False
1202 or else NT (N).Nkind = N_Generic_Association);
1204 end Explicit_Generic_Actual_Parameter;
1207 (N : Node_Id) return Node_Id is
1209 pragma Assert (False
1210 or else NT (N).Nkind = N_Allocator
1211 or else NT (N).Nkind = N_Aspect_Specification
1212 or else NT (N).Nkind = N_Assignment_Statement
1213 or else NT (N).Nkind = N_At_Clause
1214 or else NT (N).Nkind = N_Attribute_Definition_Clause
1215 or else NT (N).Nkind = N_Case_Expression
1216 or else NT (N).Nkind = N_Case_Expression_Alternative
1217 or else NT (N).Nkind = N_Case_Statement
1218 or else NT (N).Nkind = N_Code_Statement
1219 or else NT (N).Nkind = N_Component_Association
1220 or else NT (N).Nkind = N_Component_Declaration
1221 or else NT (N).Nkind = N_Delay_Relative_Statement
1222 or else NT (N).Nkind = N_Delay_Until_Statement
1223 or else NT (N).Nkind = N_Discriminant_Association
1224 or else NT (N).Nkind = N_Discriminant_Specification
1225 or else NT (N).Nkind = N_Exception_Declaration
1226 or else NT (N).Nkind = N_Expression_With_Actions
1227 or else NT (N).Nkind = N_Free_Statement
1228 or else NT (N).Nkind = N_Mod_Clause
1229 or else NT (N).Nkind = N_Modular_Type_Definition
1230 or else NT (N).Nkind = N_Number_Declaration
1231 or else NT (N).Nkind = N_Object_Declaration
1232 or else NT (N).Nkind = N_Parameter_Specification
1233 or else NT (N).Nkind = N_Parameterized_Expression
1234 or else NT (N).Nkind = N_Pragma_Argument_Association
1235 or else NT (N).Nkind = N_Qualified_Expression
1236 or else NT (N).Nkind = N_Raise_Statement
1237 or else NT (N).Nkind = N_Return_Statement
1238 or else NT (N).Nkind = N_Type_Conversion
1239 or else NT (N).Nkind = N_Unchecked_Expression
1240 or else NT (N).Nkind = N_Unchecked_Type_Conversion);
1244 function Expressions
1245 (N : Node_Id) return List_Id is
1247 pragma Assert (False
1248 or else NT (N).Nkind = N_Aggregate
1249 or else NT (N).Nkind = N_Attribute_Reference
1250 or else NT (N).Nkind = N_Conditional_Expression
1251 or else NT (N).Nkind = N_Extension_Aggregate
1252 or else NT (N).Nkind = N_Indexed_Component);
1257 (N : Node_Id) return Node_Id is
1259 pragma Assert (False
1260 or else NT (N).Nkind = N_Component_Clause);
1264 function First_Inlined_Subprogram
1265 (N : Node_Id) return Entity_Id is
1267 pragma Assert (False
1268 or else NT (N).Nkind = N_Compilation_Unit);
1270 end First_Inlined_Subprogram;
1273 (N : Node_Id) return Boolean is
1275 pragma Assert (False
1276 or else NT (N).Nkind = N_With_Clause);
1280 function First_Named_Actual
1281 (N : Node_Id) return Node_Id is
1283 pragma Assert (False
1284 or else NT (N).Nkind = N_Entry_Call_Statement
1285 or else NT (N).Nkind = N_Function_Call
1286 or else NT (N).Nkind = N_Procedure_Call_Statement);
1288 end First_Named_Actual;
1290 function First_Real_Statement
1291 (N : Node_Id) return Node_Id is
1293 pragma Assert (False
1294 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements);
1296 end First_Real_Statement;
1298 function First_Subtype_Link
1299 (N : Node_Id) return Entity_Id is
1301 pragma Assert (False
1302 or else NT (N).Nkind = N_Freeze_Entity);
1304 end First_Subtype_Link;
1306 function Float_Truncate
1307 (N : Node_Id) return Boolean is
1309 pragma Assert (False
1310 or else NT (N).Nkind = N_Type_Conversion);
1314 function Formal_Type_Definition
1315 (N : Node_Id) return Node_Id is
1317 pragma Assert (False
1318 or else NT (N).Nkind = N_Formal_Type_Declaration);
1320 end Formal_Type_Definition;
1322 function Forwards_OK
1323 (N : Node_Id) return Boolean is
1325 pragma Assert (False
1326 or else NT (N).Nkind = N_Assignment_Statement);
1330 function From_Aspect_Specification
1331 (N : Node_Id) return Boolean is
1333 pragma Assert (False
1334 or else NT (N).Nkind = N_Attribute_Definition_Clause
1335 or else NT (N).Nkind = N_Pragma);
1337 end From_Aspect_Specification;
1339 function From_At_End
1340 (N : Node_Id) return Boolean is
1342 pragma Assert (False
1343 or else NT (N).Nkind = N_Raise_Statement);
1347 function From_At_Mod
1348 (N : Node_Id) return Boolean is
1350 pragma Assert (False
1351 or else NT (N).Nkind = N_Attribute_Definition_Clause);
1355 function From_Default
1356 (N : Node_Id) return Boolean is
1358 pragma Assert (False
1359 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration);
1363 function Generic_Associations
1364 (N : Node_Id) return List_Id is
1366 pragma Assert (False
1367 or else NT (N).Nkind = N_Formal_Package_Declaration
1368 or else NT (N).Nkind = N_Function_Instantiation
1369 or else NT (N).Nkind = N_Package_Instantiation
1370 or else NT (N).Nkind = N_Procedure_Instantiation);
1372 end Generic_Associations;
1374 function Generic_Formal_Declarations
1375 (N : Node_Id) return List_Id is
1377 pragma Assert (False
1378 or else NT (N).Nkind = N_Generic_Package_Declaration
1379 or else NT (N).Nkind = N_Generic_Subprogram_Declaration);
1381 end Generic_Formal_Declarations;
1383 function Generic_Parent
1384 (N : Node_Id) return Node_Id is
1386 pragma Assert (False
1387 or else NT (N).Nkind = N_Function_Specification
1388 or else NT (N).Nkind = N_Package_Specification
1389 or else NT (N).Nkind = N_Procedure_Specification);
1393 function Generic_Parent_Type
1394 (N : Node_Id) return Node_Id is
1396 pragma Assert (False
1397 or else NT (N).Nkind = N_Subtype_Declaration);
1399 end Generic_Parent_Type;
1401 function Handled_Statement_Sequence
1402 (N : Node_Id) return Node_Id is
1404 pragma Assert (False
1405 or else NT (N).Nkind = N_Accept_Statement
1406 or else NT (N).Nkind = N_Block_Statement
1407 or else NT (N).Nkind = N_Entry_Body
1408 or else NT (N).Nkind = N_Extended_Return_Statement
1409 or else NT (N).Nkind = N_Package_Body
1410 or else NT (N).Nkind = N_Subprogram_Body
1411 or else NT (N).Nkind = N_Task_Body);
1413 end Handled_Statement_Sequence;
1415 function Handler_List_Entry
1416 (N : Node_Id) return Node_Id is
1418 pragma Assert (False
1419 or else NT (N).Nkind = N_Object_Declaration);
1421 end Handler_List_Entry;
1423 function Has_Created_Identifier
1424 (N : Node_Id) return Boolean is
1426 pragma Assert (False
1427 or else NT (N).Nkind = N_Block_Statement
1428 or else NT (N).Nkind = N_Loop_Statement);
1430 end Has_Created_Identifier;
1432 function Has_Dynamic_Length_Check
1433 (N : Node_Id) return Boolean is
1436 end Has_Dynamic_Length_Check;
1437 function Has_Dynamic_Range_Check
1438 (N : Node_Id) return Boolean is
1441 end Has_Dynamic_Range_Check;
1443 function Has_Init_Expression
1444 (N : Node_Id) return Boolean is
1446 pragma Assert (False
1447 or else NT (N).Nkind = N_Object_Declaration);
1449 end Has_Init_Expression;
1451 function Has_Local_Raise
1452 (N : Node_Id) return Boolean is
1454 pragma Assert (False
1455 or else NT (N).Nkind = N_Exception_Handler);
1457 end Has_Local_Raise;
1459 function Has_No_Elaboration_Code
1460 (N : Node_Id) return Boolean is
1462 pragma Assert (False
1463 or else NT (N).Nkind = N_Compilation_Unit);
1465 end Has_No_Elaboration_Code;
1467 function Has_Pragma_CPU
1468 (N : Node_Id) return Boolean is
1470 pragma Assert (False
1471 or else NT (N).Nkind = N_Subprogram_Body
1472 or else NT (N).Nkind = N_Task_Definition);
1476 function Has_Pragma_Priority
1477 (N : Node_Id) return Boolean is
1479 pragma Assert (False
1480 or else NT (N).Nkind = N_Protected_Definition
1481 or else NT (N).Nkind = N_Subprogram_Body
1482 or else NT (N).Nkind = N_Task_Definition);
1484 end Has_Pragma_Priority;
1486 function Has_Pragma_Suppress_All
1487 (N : Node_Id) return Boolean is
1489 pragma Assert (False
1490 or else NT (N).Nkind = N_Compilation_Unit);
1492 end Has_Pragma_Suppress_All;
1494 function Has_Private_View
1495 (N : Node_Id) return Boolean is
1497 pragma Assert (False
1498 or else NT (N).Nkind in N_Op
1499 or else NT (N).Nkind = N_Character_Literal
1500 or else NT (N).Nkind = N_Expanded_Name
1501 or else NT (N).Nkind = N_Identifier
1502 or else NT (N).Nkind = N_Operator_Symbol);
1504 end Has_Private_View;
1506 function Has_Relative_Deadline_Pragma
1507 (N : Node_Id) return Boolean is
1509 pragma Assert (False
1510 or else NT (N).Nkind = N_Subprogram_Body
1511 or else NT (N).Nkind = N_Task_Definition);
1513 end Has_Relative_Deadline_Pragma;
1515 function Has_Self_Reference
1516 (N : Node_Id) return Boolean is
1518 pragma Assert (False
1519 or else NT (N).Nkind = N_Aggregate
1520 or else NT (N).Nkind = N_Extension_Aggregate);
1522 end Has_Self_Reference;
1524 function Has_Storage_Size_Pragma
1525 (N : Node_Id) return Boolean is
1527 pragma Assert (False
1528 or else NT (N).Nkind = N_Task_Definition);
1530 end Has_Storage_Size_Pragma;
1532 function Has_Task_Info_Pragma
1533 (N : Node_Id) return Boolean is
1535 pragma Assert (False
1536 or else NT (N).Nkind = N_Task_Definition);
1538 end Has_Task_Info_Pragma;
1540 function Has_Task_Name_Pragma
1541 (N : Node_Id) return Boolean is
1543 pragma Assert (False
1544 or else NT (N).Nkind = N_Task_Definition);
1546 end Has_Task_Name_Pragma;
1548 function Has_Wide_Character
1549 (N : Node_Id) return Boolean is
1551 pragma Assert (False
1552 or else NT (N).Nkind = N_String_Literal);
1554 end Has_Wide_Character;
1556 function Has_Wide_Wide_Character
1557 (N : Node_Id) return Boolean is
1559 pragma Assert (False
1560 or else NT (N).Nkind = N_String_Literal);
1562 end Has_Wide_Wide_Character;
1564 function Hidden_By_Use_Clause
1565 (N : Node_Id) return Elist_Id is
1567 pragma Assert (False
1568 or else NT (N).Nkind = N_Use_Package_Clause
1569 or else NT (N).Nkind = N_Use_Type_Clause);
1571 end Hidden_By_Use_Clause;
1574 (N : Node_Id) return Node_Id is
1576 pragma Assert (False
1577 or else NT (N).Nkind = N_Range
1578 or else NT (N).Nkind = N_Real_Range_Specification
1579 or else NT (N).Nkind = N_Signed_Integer_Type_Definition);
1584 (N : Node_Id) return Node_Id is
1586 pragma Assert (False
1587 or else NT (N).Nkind = N_Aspect_Specification
1588 or else NT (N).Nkind = N_At_Clause
1589 or else NT (N).Nkind = N_Block_Statement
1590 or else NT (N).Nkind = N_Designator
1591 or else NT (N).Nkind = N_Enumeration_Representation_Clause
1592 or else NT (N).Nkind = N_Label
1593 or else NT (N).Nkind = N_Loop_Statement
1594 or else NT (N).Nkind = N_Record_Representation_Clause
1595 or else NT (N).Nkind = N_Subprogram_Info);
1599 function Implicit_With
1600 (N : Node_Id) return Boolean is
1602 pragma Assert (False
1603 or else NT (N).Nkind = N_With_Clause);
1607 function Interface_List
1608 (N : Node_Id) return List_Id is
1610 pragma Assert (False
1611 or else NT (N).Nkind = N_Derived_Type_Definition
1612 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
1613 or else NT (N).Nkind = N_Private_Extension_Declaration
1614 or else NT (N).Nkind = N_Protected_Type_Declaration
1615 or else NT (N).Nkind = N_Record_Definition
1616 or else NT (N).Nkind = N_Single_Protected_Declaration
1617 or else NT (N).Nkind = N_Single_Task_Declaration
1618 or else NT (N).Nkind = N_Task_Type_Declaration);
1622 function Interface_Present
1623 (N : Node_Id) return Boolean is
1625 pragma Assert (False
1626 or else NT (N).Nkind = N_Derived_Type_Definition
1627 or else NT (N).Nkind = N_Record_Definition);
1629 end Interface_Present;
1631 function Import_Interface_Present
1632 (N : Node_Id) return Boolean is
1634 pragma Assert (False
1635 or else NT (N).Nkind = N_Pragma);
1637 end Import_Interface_Present;
1640 (N : Node_Id) return Boolean is
1642 pragma Assert (False
1643 or else NT (N).Nkind = N_Formal_Object_Declaration
1644 or else NT (N).Nkind = N_Parameter_Specification);
1648 function Includes_Infinities
1649 (N : Node_Id) return Boolean is
1651 pragma Assert (False
1652 or else NT (N).Nkind = N_Range);
1654 end Includes_Infinities;
1656 function Inherited_Discriminant
1657 (N : Node_Id) return Boolean is
1659 pragma Assert (False
1660 or else NT (N).Nkind = N_Component_Association);
1662 end Inherited_Discriminant;
1664 function Instance_Spec
1665 (N : Node_Id) return Node_Id is
1667 pragma Assert (False
1668 or else NT (N).Nkind = N_Formal_Package_Declaration
1669 or else NT (N).Nkind = N_Function_Instantiation
1670 or else NT (N).Nkind = N_Package_Instantiation
1671 or else NT (N).Nkind = N_Procedure_Instantiation);
1676 (N : Node_Id) return Uint is
1678 pragma Assert (False
1679 or else NT (N).Nkind = N_Integer_Literal);
1683 function Is_Accessibility_Actual
1684 (N : Node_Id) return Boolean is
1686 pragma Assert (False
1687 or else NT (N).Nkind = N_Parameter_Association);
1689 end Is_Accessibility_Actual;
1691 function Is_Asynchronous_Call_Block
1692 (N : Node_Id) return Boolean is
1694 pragma Assert (False
1695 or else NT (N).Nkind = N_Block_Statement);
1697 end Is_Asynchronous_Call_Block;
1699 function Is_Component_Left_Opnd
1700 (N : Node_Id) return Boolean is
1702 pragma Assert (False
1703 or else NT (N).Nkind = N_Op_Concat);
1705 end Is_Component_Left_Opnd;
1707 function Is_Component_Right_Opnd
1708 (N : Node_Id) return Boolean is
1710 pragma Assert (False
1711 or else NT (N).Nkind = N_Op_Concat);
1713 end Is_Component_Right_Opnd;
1715 function Is_Controlling_Actual
1716 (N : Node_Id) return Boolean is
1718 pragma Assert (False
1719 or else NT (N).Nkind in N_Subexpr);
1721 end Is_Controlling_Actual;
1723 function Is_Delayed_Aspect
1724 (N : Node_Id) return Boolean is
1726 pragma Assert (False
1727 or else NT (N).Nkind = N_Attribute_Definition_Clause
1728 or else NT (N).Nkind = N_Pragma);
1730 end Is_Delayed_Aspect;
1732 function Is_Dynamic_Coextension
1733 (N : Node_Id) return Boolean is
1735 pragma Assert (False
1736 or else NT (N).Nkind = N_Allocator);
1738 end Is_Dynamic_Coextension;
1741 (N : Node_Id) return Boolean is
1743 pragma Assert (False
1744 or else NT (N).Nkind = N_Conditional_Expression);
1748 function Is_Entry_Barrier_Function
1749 (N : Node_Id) return Boolean is
1751 pragma Assert (False
1752 or else NT (N).Nkind = N_Subprogram_Body);
1754 end Is_Entry_Barrier_Function;
1756 function Is_Expanded_Build_In_Place_Call
1757 (N : Node_Id) return Boolean is
1759 pragma Assert (False
1760 or else NT (N).Nkind = N_Function_Call);
1762 end Is_Expanded_Build_In_Place_Call;
1764 function Is_Folded_In_Parser
1765 (N : Node_Id) return Boolean is
1767 pragma Assert (False
1768 or else NT (N).Nkind = N_String_Literal);
1770 end Is_Folded_In_Parser;
1772 function Is_In_Discriminant_Check
1773 (N : Node_Id) return Boolean is
1775 pragma Assert (False
1776 or else NT (N).Nkind = N_Selected_Component);
1778 end Is_In_Discriminant_Check;
1780 function Is_Machine_Number
1781 (N : Node_Id) return Boolean is
1783 pragma Assert (False
1784 or else NT (N).Nkind = N_Real_Literal);
1786 end Is_Machine_Number;
1788 function Is_Null_Loop
1789 (N : Node_Id) return Boolean is
1791 pragma Assert (False
1792 or else NT (N).Nkind = N_Loop_Statement);
1796 function Is_Overloaded
1797 (N : Node_Id) return Boolean is
1799 pragma Assert (False
1800 or else NT (N).Nkind in N_Subexpr);
1804 function Is_Power_Of_2_For_Shift
1805 (N : Node_Id) return Boolean is
1807 pragma Assert (False
1808 or else NT (N).Nkind = N_Op_Expon);
1810 end Is_Power_Of_2_For_Shift;
1812 function Is_Protected_Subprogram_Body
1813 (N : Node_Id) return Boolean is
1815 pragma Assert (False
1816 or else NT (N).Nkind = N_Subprogram_Body);
1818 end Is_Protected_Subprogram_Body;
1820 function Is_Static_Coextension
1821 (N : Node_Id) return Boolean is
1823 pragma Assert (False
1824 or else NT (N).Nkind = N_Allocator);
1826 end Is_Static_Coextension;
1828 function Is_Static_Expression
1829 (N : Node_Id) return Boolean is
1831 pragma Assert (False
1832 or else NT (N).Nkind in N_Subexpr);
1834 end Is_Static_Expression;
1836 function Is_Subprogram_Descriptor
1837 (N : Node_Id) return Boolean is
1839 pragma Assert (False
1840 or else NT (N).Nkind = N_Object_Declaration);
1842 end Is_Subprogram_Descriptor;
1844 function Is_Task_Allocation_Block
1845 (N : Node_Id) return Boolean is
1847 pragma Assert (False
1848 or else NT (N).Nkind = N_Block_Statement);
1850 end Is_Task_Allocation_Block;
1852 function Is_Task_Master
1853 (N : Node_Id) return Boolean is
1855 pragma Assert (False
1856 or else NT (N).Nkind = N_Block_Statement
1857 or else NT (N).Nkind = N_Subprogram_Body
1858 or else NT (N).Nkind = N_Task_Body);
1862 function Iteration_Scheme
1863 (N : Node_Id) return Node_Id is
1865 pragma Assert (False
1866 or else NT (N).Nkind = N_Loop_Statement);
1868 end Iteration_Scheme;
1870 function Iterator_Specification
1871 (N : Node_Id) return Node_Id is
1873 pragma Assert (False
1874 or else NT (N).Nkind = N_Iteration_Scheme
1875 or else NT (N).Nkind = N_Quantified_Expression);
1877 end Iterator_Specification;
1880 (N : Node_Id) return Node_Id is
1882 pragma Assert (False
1883 or else NT (N).Nkind = N_Itype_Reference);
1887 function Kill_Range_Check
1888 (N : Node_Id) return Boolean is
1890 pragma Assert (False
1891 or else NT (N).Nkind = N_Unchecked_Type_Conversion);
1893 end Kill_Range_Check;
1895 function Label_Construct
1896 (N : Node_Id) return Node_Id is
1898 pragma Assert (False
1899 or else NT (N).Nkind = N_Implicit_Label_Declaration);
1901 end Label_Construct;
1904 (N : Node_Id) return Node_Id is
1906 pragma Assert (False
1907 or else NT (N).Nkind = N_Component_Clause);
1912 (N : Node_Id) return Boolean is
1914 pragma Assert (False
1915 or else NT (N).Nkind = N_With_Clause);
1920 (N : Node_Id) return Node_Id is
1922 pragma Assert (False
1923 or else NT (N).Nkind = N_And_Then
1924 or else NT (N).Nkind = N_In
1925 or else NT (N).Nkind = N_Not_In
1926 or else NT (N).Nkind = N_Or_Else
1927 or else NT (N).Nkind in N_Binary_Op);
1931 function Library_Unit
1932 (N : Node_Id) return Node_Id is
1934 pragma Assert (False
1935 or else NT (N).Nkind = N_Compilation_Unit
1936 or else NT (N).Nkind = N_Package_Body_Stub
1937 or else NT (N).Nkind = N_Protected_Body_Stub
1938 or else NT (N).Nkind = N_Subprogram_Body_Stub
1939 or else NT (N).Nkind = N_Task_Body_Stub
1940 or else NT (N).Nkind = N_With_Clause);
1944 function Limited_View_Installed
1945 (N : Node_Id) return Boolean is
1947 pragma Assert (False
1948 or else NT (N).Nkind = N_Package_Specification
1949 or else NT (N).Nkind = N_With_Clause);
1951 end Limited_View_Installed;
1953 function Limited_Present
1954 (N : Node_Id) return Boolean is
1956 pragma Assert (False
1957 or else NT (N).Nkind = N_Derived_Type_Definition
1958 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
1959 or else NT (N).Nkind = N_Formal_Private_Type_Definition
1960 or else NT (N).Nkind = N_Private_Extension_Declaration
1961 or else NT (N).Nkind = N_Private_Type_Declaration
1962 or else NT (N).Nkind = N_Record_Definition
1963 or else NT (N).Nkind = N_With_Clause);
1965 end Limited_Present;
1968 (N : Node_Id) return List_Id is
1970 pragma Assert (False
1971 or else NT (N).Nkind = N_Enumeration_Type_Definition);
1975 function Local_Raise_Not_OK
1976 (N : Node_Id) return Boolean is
1978 pragma Assert (False
1979 or else NT (N).Nkind = N_Exception_Handler);
1981 end Local_Raise_Not_OK;
1983 function Local_Raise_Statements
1984 (N : Node_Id) return Elist_Id is
1986 pragma Assert (False
1987 or else NT (N).Nkind = N_Exception_Handler);
1989 end Local_Raise_Statements;
1991 function Loop_Actions
1992 (N : Node_Id) return List_Id is
1994 pragma Assert (False
1995 or else NT (N).Nkind = N_Component_Association);
1999 function Loop_Parameter_Specification
2000 (N : Node_Id) return Node_Id is
2002 pragma Assert (False
2003 or else NT (N).Nkind = N_Iteration_Scheme
2004 or else NT (N).Nkind = N_Quantified_Expression);
2006 end Loop_Parameter_Specification;
2009 (N : Node_Id) return Node_Id is
2011 pragma Assert (False
2012 or else NT (N).Nkind = N_Range
2013 or else NT (N).Nkind = N_Real_Range_Specification
2014 or else NT (N).Nkind = N_Signed_Integer_Type_Definition);
2019 (N : Node_Id) return Node_Id is
2021 pragma Assert (False
2022 or else NT (N).Nkind = N_Record_Representation_Clause);
2027 (N : Node_Id) return Boolean is
2029 pragma Assert (False
2030 or else NT (N).Nkind = N_Component_Declaration
2031 or else NT (N).Nkind = N_Discriminant_Specification
2032 or else NT (N).Nkind = N_Exception_Declaration
2033 or else NT (N).Nkind = N_Formal_Object_Declaration
2034 or else NT (N).Nkind = N_Number_Declaration
2035 or else NT (N).Nkind = N_Object_Declaration
2036 or else NT (N).Nkind = N_Parameter_Specification);
2040 function Must_Be_Byte_Aligned
2041 (N : Node_Id) return Boolean is
2043 pragma Assert (False
2044 or else NT (N).Nkind = N_Attribute_Reference);
2046 end Must_Be_Byte_Aligned;
2048 function Must_Not_Freeze
2049 (N : Node_Id) return Boolean is
2051 pragma Assert (False
2052 or else NT (N).Nkind = N_Subtype_Indication
2053 or else NT (N).Nkind in N_Subexpr);
2055 end Must_Not_Freeze;
2057 function Must_Not_Override
2058 (N : Node_Id) return Boolean is
2060 pragma Assert (False
2061 or else NT (N).Nkind = N_Entry_Declaration
2062 or else NT (N).Nkind = N_Function_Instantiation
2063 or else NT (N).Nkind = N_Function_Specification
2064 or else NT (N).Nkind = N_Procedure_Instantiation
2065 or else NT (N).Nkind = N_Procedure_Specification);
2067 end Must_Not_Override;
2069 function Must_Override
2070 (N : Node_Id) return Boolean is
2072 pragma Assert (False
2073 or else NT (N).Nkind = N_Entry_Declaration
2074 or else NT (N).Nkind = N_Function_Instantiation
2075 or else NT (N).Nkind = N_Function_Specification
2076 or else NT (N).Nkind = N_Procedure_Instantiation
2077 or else NT (N).Nkind = N_Procedure_Specification);
2082 (N : Node_Id) return Node_Id is
2084 pragma Assert (False
2085 or else NT (N).Nkind = N_Assignment_Statement
2086 or else NT (N).Nkind = N_Attribute_Definition_Clause
2087 or else NT (N).Nkind = N_Defining_Program_Unit_Name
2088 or else NT (N).Nkind = N_Designator
2089 or else NT (N).Nkind = N_Entry_Call_Statement
2090 or else NT (N).Nkind = N_Exception_Renaming_Declaration
2091 or else NT (N).Nkind = N_Exit_Statement
2092 or else NT (N).Nkind = N_Formal_Package_Declaration
2093 or else NT (N).Nkind = N_Function_Call
2094 or else NT (N).Nkind = N_Function_Instantiation
2095 or else NT (N).Nkind = N_Generic_Function_Renaming_Declaration
2096 or else NT (N).Nkind = N_Generic_Package_Renaming_Declaration
2097 or else NT (N).Nkind = N_Generic_Procedure_Renaming_Declaration
2098 or else NT (N).Nkind = N_Goto_Statement
2099 or else NT (N).Nkind = N_Iterator_Specification
2100 or else NT (N).Nkind = N_Object_Renaming_Declaration
2101 or else NT (N).Nkind = N_Package_Instantiation
2102 or else NT (N).Nkind = N_Package_Renaming_Declaration
2103 or else NT (N).Nkind = N_Procedure_Call_Statement
2104 or else NT (N).Nkind = N_Procedure_Instantiation
2105 or else NT (N).Nkind = N_Raise_Statement
2106 or else NT (N).Nkind = N_Requeue_Statement
2107 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration
2108 or else NT (N).Nkind = N_Subunit
2109 or else NT (N).Nkind = N_Variant_Part
2110 or else NT (N).Nkind = N_With_Clause);
2115 (N : Node_Id) return List_Id is
2117 pragma Assert (False
2118 or else NT (N).Nkind = N_Abort_Statement
2119 or else NT (N).Nkind = N_Use_Package_Clause);
2123 function Next_Entity
2124 (N : Node_Id) return Node_Id is
2126 pragma Assert (False
2127 or else NT (N).Nkind = N_Defining_Character_Literal
2128 or else NT (N).Nkind = N_Defining_Identifier
2129 or else NT (N).Nkind = N_Defining_Operator_Symbol);
2133 function Next_Exit_Statement
2134 (N : Node_Id) return Node_Id is
2136 pragma Assert (False
2137 or else NT (N).Nkind = N_Exit_Statement);
2139 end Next_Exit_Statement;
2141 function Next_Implicit_With
2142 (N : Node_Id) return Node_Id is
2144 pragma Assert (False
2145 or else NT (N).Nkind = N_With_Clause);
2147 end Next_Implicit_With;
2149 function Next_Named_Actual
2150 (N : Node_Id) return Node_Id is
2152 pragma Assert (False
2153 or else NT (N).Nkind = N_Parameter_Association);
2155 end Next_Named_Actual;
2157 function Next_Pragma
2158 (N : Node_Id) return Node_Id is
2160 pragma Assert (False
2161 or else NT (N).Nkind = N_Pragma);
2165 function Next_Rep_Item
2166 (N : Node_Id) return Node_Id is
2168 pragma Assert (False
2169 or else NT (N).Nkind = N_Aspect_Specification
2170 or else NT (N).Nkind = N_Attribute_Definition_Clause
2171 or else NT (N).Nkind = N_Enumeration_Representation_Clause
2172 or else NT (N).Nkind = N_Pragma
2173 or else NT (N).Nkind = N_Record_Representation_Clause);
2177 function Next_Use_Clause
2178 (N : Node_Id) return Node_Id is
2180 pragma Assert (False
2181 or else NT (N).Nkind = N_Use_Package_Clause
2182 or else NT (N).Nkind = N_Use_Type_Clause);
2184 end Next_Use_Clause;
2186 function No_Ctrl_Actions
2187 (N : Node_Id) return Boolean is
2189 pragma Assert (False
2190 or else NT (N).Nkind = N_Assignment_Statement);
2192 end No_Ctrl_Actions;
2194 function No_Elaboration_Check
2195 (N : Node_Id) return Boolean is
2197 pragma Assert (False
2198 or else NT (N).Nkind = N_Function_Call
2199 or else NT (N).Nkind = N_Procedure_Call_Statement);
2201 end No_Elaboration_Check;
2203 function No_Entities_Ref_In_Spec
2204 (N : Node_Id) return Boolean is
2206 pragma Assert (False
2207 or else NT (N).Nkind = N_With_Clause);
2209 end No_Entities_Ref_In_Spec;
2211 function No_Initialization
2212 (N : Node_Id) return Boolean is
2214 pragma Assert (False
2215 or else NT (N).Nkind = N_Allocator
2216 or else NT (N).Nkind = N_Object_Declaration);
2218 end No_Initialization;
2220 function No_Truncation
2221 (N : Node_Id) return Boolean is
2223 pragma Assert (False
2224 or else NT (N).Nkind = N_Unchecked_Type_Conversion);
2228 function Null_Present
2229 (N : Node_Id) return Boolean is
2231 pragma Assert (False
2232 or else NT (N).Nkind = N_Component_List
2233 or else NT (N).Nkind = N_Procedure_Specification
2234 or else NT (N).Nkind = N_Record_Definition);
2238 function Null_Exclusion_Present
2239 (N : Node_Id) return Boolean is
2241 pragma Assert (False
2242 or else NT (N).Nkind = N_Access_Definition
2243 or else NT (N).Nkind = N_Access_Function_Definition
2244 or else NT (N).Nkind = N_Access_Procedure_Definition
2245 or else NT (N).Nkind = N_Access_To_Object_Definition
2246 or else NT (N).Nkind = N_Allocator
2247 or else NT (N).Nkind = N_Component_Definition
2248 or else NT (N).Nkind = N_Derived_Type_Definition
2249 or else NT (N).Nkind = N_Discriminant_Specification
2250 or else NT (N).Nkind = N_Formal_Object_Declaration
2251 or else NT (N).Nkind = N_Function_Specification
2252 or else NT (N).Nkind = N_Object_Declaration
2253 or else NT (N).Nkind = N_Object_Renaming_Declaration
2254 or else NT (N).Nkind = N_Parameter_Specification
2255 or else NT (N).Nkind = N_Subtype_Declaration);
2257 end Null_Exclusion_Present;
2259 function Null_Exclusion_In_Return_Present
2260 (N : Node_Id) return Boolean is
2262 pragma Assert (False
2263 or else NT (N).Nkind = N_Access_Function_Definition);
2265 end Null_Exclusion_In_Return_Present;
2267 function Null_Record_Present
2268 (N : Node_Id) return Boolean is
2270 pragma Assert (False
2271 or else NT (N).Nkind = N_Aggregate
2272 or else NT (N).Nkind = N_Extension_Aggregate);
2274 end Null_Record_Present;
2276 function Object_Definition
2277 (N : Node_Id) return Node_Id is
2279 pragma Assert (False
2280 or else NT (N).Nkind = N_Object_Declaration);
2282 end Object_Definition;
2285 (N : Node_Id) return Boolean is
2287 pragma Assert (False
2288 or else NT (N).Nkind = N_Iterator_Specification);
2292 function Original_Discriminant
2293 (N : Node_Id) return Node_Id is
2295 pragma Assert (False
2296 or else NT (N).Nkind = N_Identifier);
2298 end Original_Discriminant;
2300 function Original_Entity
2301 (N : Node_Id) return Entity_Id is
2303 pragma Assert (False
2304 or else NT (N).Nkind = N_Integer_Literal
2305 or else NT (N).Nkind = N_Real_Literal);
2307 end Original_Entity;
2309 function Others_Discrete_Choices
2310 (N : Node_Id) return List_Id is
2312 pragma Assert (False
2313 or else NT (N).Nkind = N_Others_Choice);
2315 end Others_Discrete_Choices;
2317 function Out_Present
2318 (N : Node_Id) return Boolean is
2320 pragma Assert (False
2321 or else NT (N).Nkind = N_Formal_Object_Declaration
2322 or else NT (N).Nkind = N_Parameter_Specification);
2326 function Parameter_Associations
2327 (N : Node_Id) return List_Id is
2329 pragma Assert (False
2330 or else NT (N).Nkind = N_Entry_Call_Statement
2331 or else NT (N).Nkind = N_Function_Call
2332 or else NT (N).Nkind = N_Procedure_Call_Statement);
2334 end Parameter_Associations;
2336 function Parameter_List_Truncated
2337 (N : Node_Id) return Boolean is
2339 pragma Assert (False
2340 or else NT (N).Nkind = N_Function_Call
2341 or else NT (N).Nkind = N_Procedure_Call_Statement);
2343 end Parameter_List_Truncated;
2345 function Parameter_Specifications
2346 (N : Node_Id) return List_Id is
2348 pragma Assert (False
2349 or else NT (N).Nkind = N_Accept_Statement
2350 or else NT (N).Nkind = N_Access_Function_Definition
2351 or else NT (N).Nkind = N_Access_Procedure_Definition
2352 or else NT (N).Nkind = N_Entry_Body_Formal_Part
2353 or else NT (N).Nkind = N_Entry_Declaration
2354 or else NT (N).Nkind = N_Function_Specification
2355 or else NT (N).Nkind = N_Procedure_Specification);
2357 end Parameter_Specifications;
2359 function Parameter_Type
2360 (N : Node_Id) return Node_Id is
2362 pragma Assert (False
2363 or else NT (N).Nkind = N_Parameter_Specification);
2367 function Parent_Spec
2368 (N : Node_Id) return Node_Id is
2370 pragma Assert (False
2371 or else NT (N).Nkind = N_Function_Instantiation
2372 or else NT (N).Nkind = N_Generic_Function_Renaming_Declaration
2373 or else NT (N).Nkind = N_Generic_Package_Declaration
2374 or else NT (N).Nkind = N_Generic_Package_Renaming_Declaration
2375 or else NT (N).Nkind = N_Generic_Procedure_Renaming_Declaration
2376 or else NT (N).Nkind = N_Generic_Subprogram_Declaration
2377 or else NT (N).Nkind = N_Package_Declaration
2378 or else NT (N).Nkind = N_Package_Instantiation
2379 or else NT (N).Nkind = N_Package_Renaming_Declaration
2380 or else NT (N).Nkind = N_Procedure_Instantiation
2381 or else NT (N).Nkind = N_Subprogram_Declaration
2382 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration);
2387 (N : Node_Id) return Node_Id is
2389 pragma Assert (False
2390 or else NT (N).Nkind = N_Component_Clause);
2394 function Pragma_Argument_Associations
2395 (N : Node_Id) return List_Id is
2397 pragma Assert (False
2398 or else NT (N).Nkind = N_Pragma);
2400 end Pragma_Argument_Associations;
2402 function Pragma_Enabled
2403 (N : Node_Id) return Boolean is
2405 pragma Assert (False
2406 or else NT (N).Nkind = N_Pragma);
2410 function Pragma_Identifier
2411 (N : Node_Id) return Node_Id is
2413 pragma Assert (False
2414 or else NT (N).Nkind = N_Pragma);
2416 end Pragma_Identifier;
2418 function Pragmas_After
2419 (N : Node_Id) return List_Id is
2421 pragma Assert (False
2422 or else NT (N).Nkind = N_Compilation_Unit_Aux
2423 or else NT (N).Nkind = N_Terminate_Alternative);
2427 function Pragmas_Before
2428 (N : Node_Id) return List_Id is
2430 pragma Assert (False
2431 or else NT (N).Nkind = N_Accept_Alternative
2432 or else NT (N).Nkind = N_Delay_Alternative
2433 or else NT (N).Nkind = N_Entry_Call_Alternative
2434 or else NT (N).Nkind = N_Mod_Clause
2435 or else NT (N).Nkind = N_Terminate_Alternative
2436 or else NT (N).Nkind = N_Triggering_Alternative);
2441 (N : Node_Id) return Node_Id is
2443 pragma Assert (False
2444 or else NT (N).Nkind = N_Attribute_Reference
2445 or else NT (N).Nkind = N_Expanded_Name
2446 or else NT (N).Nkind = N_Explicit_Dereference
2447 or else NT (N).Nkind = N_Indexed_Component
2448 or else NT (N).Nkind = N_Reference
2449 or else NT (N).Nkind = N_Selected_Component
2450 or else NT (N).Nkind = N_Slice);
2454 function Present_Expr
2455 (N : Node_Id) return Uint is
2457 pragma Assert (False
2458 or else NT (N).Nkind = N_Variant);
2463 (N : Node_Id) return Boolean is
2465 pragma Assert (False
2466 or else NT (N).Nkind = N_Component_Declaration
2467 or else NT (N).Nkind = N_Discriminant_Specification
2468 or else NT (N).Nkind = N_Exception_Declaration
2469 or else NT (N).Nkind = N_Formal_Object_Declaration
2470 or else NT (N).Nkind = N_Number_Declaration
2471 or else NT (N).Nkind = N_Object_Declaration
2472 or else NT (N).Nkind = N_Parameter_Specification);
2476 function Print_In_Hex
2477 (N : Node_Id) return Boolean is
2479 pragma Assert (False
2480 or else NT (N).Nkind = N_Integer_Literal);
2484 function Private_Declarations
2485 (N : Node_Id) return List_Id is
2487 pragma Assert (False
2488 or else NT (N).Nkind = N_Package_Specification
2489 or else NT (N).Nkind = N_Protected_Definition
2490 or else NT (N).Nkind = N_Task_Definition);
2492 end Private_Declarations;
2494 function Private_Present
2495 (N : Node_Id) return Boolean is
2497 pragma Assert (False
2498 or else NT (N).Nkind = N_Compilation_Unit
2499 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
2500 or else NT (N).Nkind = N_With_Clause);
2502 end Private_Present;
2504 function Procedure_To_Call
2505 (N : Node_Id) return Node_Id is
2507 pragma Assert (False
2508 or else NT (N).Nkind = N_Allocator
2509 or else NT (N).Nkind = N_Extended_Return_Statement
2510 or else NT (N).Nkind = N_Free_Statement
2511 or else NT (N).Nkind = N_Return_Statement);
2513 end Procedure_To_Call;
2515 function Proper_Body
2516 (N : Node_Id) return Node_Id is
2518 pragma Assert (False
2519 or else NT (N).Nkind = N_Subunit);
2523 function Protected_Definition
2524 (N : Node_Id) return Node_Id is
2526 pragma Assert (False
2527 or else NT (N).Nkind = N_Protected_Type_Declaration
2528 or else NT (N).Nkind = N_Single_Protected_Declaration);
2530 end Protected_Definition;
2532 function Protected_Present
2533 (N : Node_Id) return Boolean is
2535 pragma Assert (False
2536 or else NT (N).Nkind = N_Access_Function_Definition
2537 or else NT (N).Nkind = N_Access_Procedure_Definition
2538 or else NT (N).Nkind = N_Derived_Type_Definition
2539 or else NT (N).Nkind = N_Record_Definition);
2541 end Protected_Present;
2543 function Raises_Constraint_Error
2544 (N : Node_Id) return Boolean is
2546 pragma Assert (False
2547 or else NT (N).Nkind in N_Subexpr);
2549 end Raises_Constraint_Error;
2551 function Range_Constraint
2552 (N : Node_Id) return Node_Id is
2554 pragma Assert (False
2555 or else NT (N).Nkind = N_Delta_Constraint
2556 or else NT (N).Nkind = N_Digits_Constraint);
2558 end Range_Constraint;
2560 function Range_Expression
2561 (N : Node_Id) return Node_Id is
2563 pragma Assert (False
2564 or else NT (N).Nkind = N_Range_Constraint);
2566 end Range_Expression;
2568 function Real_Range_Specification
2569 (N : Node_Id) return Node_Id is
2571 pragma Assert (False
2572 or else NT (N).Nkind = N_Decimal_Fixed_Point_Definition
2573 or else NT (N).Nkind = N_Floating_Point_Definition
2574 or else NT (N).Nkind = N_Ordinary_Fixed_Point_Definition);
2576 end Real_Range_Specification;
2579 (N : Node_Id) return Ureal is
2581 pragma Assert (False
2582 or else NT (N).Nkind = N_Real_Literal);
2587 (N : Node_Id) return Uint is
2589 pragma Assert (False
2590 or else NT (N).Nkind = N_Raise_Constraint_Error
2591 or else NT (N).Nkind = N_Raise_Program_Error
2592 or else NT (N).Nkind = N_Raise_Storage_Error);
2596 function Record_Extension_Part
2597 (N : Node_Id) return Node_Id is
2599 pragma Assert (False
2600 or else NT (N).Nkind = N_Derived_Type_Definition);
2602 end Record_Extension_Part;
2604 function Redundant_Use
2605 (N : Node_Id) return Boolean is
2607 pragma Assert (False
2608 or else NT (N).Nkind = N_Attribute_Reference
2609 or else NT (N).Nkind = N_Expanded_Name
2610 or else NT (N).Nkind = N_Identifier);
2614 function Renaming_Exception
2615 (N : Node_Id) return Node_Id is
2617 pragma Assert (False
2618 or else NT (N).Nkind = N_Exception_Declaration);
2620 end Renaming_Exception;
2622 function Result_Definition
2623 (N : Node_Id) return Node_Id is
2625 pragma Assert (False
2626 or else NT (N).Nkind = N_Access_Function_Definition
2627 or else NT (N).Nkind = N_Function_Specification);
2629 end Result_Definition;
2631 function Return_Object_Declarations
2632 (N : Node_Id) return List_Id is
2634 pragma Assert (False
2635 or else NT (N).Nkind = N_Extended_Return_Statement);
2637 end Return_Object_Declarations;
2639 function Return_Statement_Entity
2640 (N : Node_Id) return Node_Id is
2642 pragma Assert (False
2643 or else NT (N).Nkind = N_Extended_Return_Statement
2644 or else NT (N).Nkind = N_Return_Statement);
2646 end Return_Statement_Entity;
2648 function Reverse_Present
2649 (N : Node_Id) return Boolean is
2651 pragma Assert (False
2652 or else NT (N).Nkind = N_Iterator_Specification
2653 or else NT (N).Nkind = N_Loop_Parameter_Specification);
2655 end Reverse_Present;
2658 (N : Node_Id) return Node_Id is
2660 pragma Assert (False
2661 or else NT (N).Nkind in N_Op
2662 or else NT (N).Nkind = N_And_Then
2663 or else NT (N).Nkind = N_In
2664 or else NT (N).Nkind = N_Not_In
2665 or else NT (N).Nkind = N_Or_Else);
2669 function Rounded_Result
2670 (N : Node_Id) return Boolean is
2672 pragma Assert (False
2673 or else NT (N).Nkind = N_Op_Divide
2674 or else NT (N).Nkind = N_Op_Multiply
2675 or else NT (N).Nkind = N_Type_Conversion);
2679 function SCIL_Controlling_Tag
2680 (N : Node_Id) return Node_Id is
2682 pragma Assert (False
2683 or else NT (N).Nkind = N_SCIL_Dispatching_Call);
2685 end SCIL_Controlling_Tag;
2687 function SCIL_Entity
2688 (N : Node_Id) return Node_Id is
2690 pragma Assert (False
2691 or else NT (N).Nkind = N_SCIL_Dispatch_Table_Tag_Init
2692 or else NT (N).Nkind = N_SCIL_Dispatching_Call
2693 or else NT (N).Nkind = N_SCIL_Membership_Test);
2697 function SCIL_Tag_Value
2698 (N : Node_Id) return Node_Id is
2700 pragma Assert (False
2701 or else NT (N).Nkind = N_SCIL_Membership_Test);
2705 function SCIL_Target_Prim
2706 (N : Node_Id) return Node_Id is
2708 pragma Assert (False
2709 or else NT (N).Nkind = N_SCIL_Dispatching_Call);
2711 end SCIL_Target_Prim;
2714 (N : Node_Id) return Node_Id is
2716 pragma Assert (False
2717 or else NT (N).Nkind = N_Defining_Character_Literal
2718 or else NT (N).Nkind = N_Defining_Identifier
2719 or else NT (N).Nkind = N_Defining_Operator_Symbol);
2723 function Select_Alternatives
2724 (N : Node_Id) return List_Id is
2726 pragma Assert (False
2727 or else NT (N).Nkind = N_Selective_Accept);
2729 end Select_Alternatives;
2731 function Selector_Name
2732 (N : Node_Id) return Node_Id is
2734 pragma Assert (False
2735 or else NT (N).Nkind = N_Expanded_Name
2736 or else NT (N).Nkind = N_Generic_Association
2737 or else NT (N).Nkind = N_Parameter_Association
2738 or else NT (N).Nkind = N_Selected_Component);
2742 function Selector_Names
2743 (N : Node_Id) return List_Id is
2745 pragma Assert (False
2746 or else NT (N).Nkind = N_Discriminant_Association);
2750 function Shift_Count_OK
2751 (N : Node_Id) return Boolean is
2753 pragma Assert (False
2754 or else NT (N).Nkind = N_Op_Rotate_Left
2755 or else NT (N).Nkind = N_Op_Rotate_Right
2756 or else NT (N).Nkind = N_Op_Shift_Left
2757 or else NT (N).Nkind = N_Op_Shift_Right
2758 or else NT (N).Nkind = N_Op_Shift_Right_Arithmetic);
2762 function Source_Type
2763 (N : Node_Id) return Entity_Id is
2765 pragma Assert (False
2766 or else NT (N).Nkind = N_Validate_Unchecked_Conversion);
2770 function Specification
2771 (N : Node_Id) return Node_Id is
2773 pragma Assert (False
2774 or else NT (N).Nkind = N_Abstract_Subprogram_Declaration
2775 or else NT (N).Nkind = N_Formal_Abstract_Subprogram_Declaration
2776 or else NT (N).Nkind = N_Formal_Concrete_Subprogram_Declaration
2777 or else NT (N).Nkind = N_Generic_Package_Declaration
2778 or else NT (N).Nkind = N_Generic_Subprogram_Declaration
2779 or else NT (N).Nkind = N_Package_Declaration
2780 or else NT (N).Nkind = N_Parameterized_Expression
2781 or else NT (N).Nkind = N_Subprogram_Body
2782 or else NT (N).Nkind = N_Subprogram_Body_Stub
2783 or else NT (N).Nkind = N_Subprogram_Declaration
2784 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration);
2789 (N : Node_Id) return Boolean is
2791 pragma Assert (False
2792 or else NT (N).Nkind = N_Aspect_Specification
2793 or else NT (N).Nkind = N_Pragma);
2798 (N : Node_Id) return List_Id is
2800 pragma Assert (False
2801 or else NT (N).Nkind = N_Abortable_Part
2802 or else NT (N).Nkind = N_Accept_Alternative
2803 or else NT (N).Nkind = N_Case_Statement_Alternative
2804 or else NT (N).Nkind = N_Delay_Alternative
2805 or else NT (N).Nkind = N_Entry_Call_Alternative
2806 or else NT (N).Nkind = N_Exception_Handler
2807 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements
2808 or else NT (N).Nkind = N_Loop_Statement
2809 or else NT (N).Nkind = N_Triggering_Alternative);
2813 function Static_Processing_OK
2814 (N : Node_Id) return Boolean is
2816 pragma Assert (False
2817 or else NT (N).Nkind = N_Aggregate);
2819 end Static_Processing_OK;
2821 function Storage_Pool
2822 (N : Node_Id) return Node_Id is
2824 pragma Assert (False
2825 or else NT (N).Nkind = N_Allocator
2826 or else NT (N).Nkind = N_Extended_Return_Statement
2827 or else NT (N).Nkind = N_Free_Statement
2828 or else NT (N).Nkind = N_Return_Statement);
2833 (N : Node_Id) return String_Id is
2835 pragma Assert (False
2836 or else NT (N).Nkind = N_Operator_Symbol
2837 or else NT (N).Nkind = N_String_Literal);
2841 function Subtype_Indication
2842 (N : Node_Id) return Node_Id is
2844 pragma Assert (False
2845 or else NT (N).Nkind = N_Access_To_Object_Definition
2846 or else NT (N).Nkind = N_Component_Definition
2847 or else NT (N).Nkind = N_Derived_Type_Definition
2848 or else NT (N).Nkind = N_Iterator_Specification
2849 or else NT (N).Nkind = N_Private_Extension_Declaration
2850 or else NT (N).Nkind = N_Subtype_Declaration);
2852 end Subtype_Indication;
2854 function Suppress_Loop_Warnings
2855 (N : Node_Id) return Boolean is
2857 pragma Assert (False
2858 or else NT (N).Nkind = N_Loop_Statement);
2860 end Suppress_Loop_Warnings;
2862 function Subtype_Mark
2863 (N : Node_Id) return Node_Id is
2865 pragma Assert (False
2866 or else NT (N).Nkind = N_Access_Definition
2867 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
2868 or else NT (N).Nkind = N_Formal_Object_Declaration
2869 or else NT (N).Nkind = N_Object_Renaming_Declaration
2870 or else NT (N).Nkind = N_Qualified_Expression
2871 or else NT (N).Nkind = N_Subtype_Indication
2872 or else NT (N).Nkind = N_Type_Conversion
2873 or else NT (N).Nkind = N_Unchecked_Type_Conversion);
2877 function Subtype_Marks
2878 (N : Node_Id) return List_Id is
2880 pragma Assert (False
2881 or else NT (N).Nkind = N_Unconstrained_Array_Definition
2882 or else NT (N).Nkind = N_Use_Type_Clause);
2886 function Synchronized_Present
2887 (N : Node_Id) return Boolean is
2889 pragma Assert (False
2890 or else NT (N).Nkind = N_Derived_Type_Definition
2891 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
2892 or else NT (N).Nkind = N_Private_Extension_Declaration
2893 or else NT (N).Nkind = N_Record_Definition);
2895 end Synchronized_Present;
2897 function Tagged_Present
2898 (N : Node_Id) return Boolean is
2900 pragma Assert (False
2901 or else NT (N).Nkind = N_Formal_Private_Type_Definition
2902 or else NT (N).Nkind = N_Incomplete_Type_Declaration
2903 or else NT (N).Nkind = N_Private_Type_Declaration
2904 or else NT (N).Nkind = N_Record_Definition);
2908 function Target_Type
2909 (N : Node_Id) return Entity_Id is
2911 pragma Assert (False
2912 or else NT (N).Nkind = N_Validate_Unchecked_Conversion);
2916 function Task_Definition
2917 (N : Node_Id) return Node_Id is
2919 pragma Assert (False
2920 or else NT (N).Nkind = N_Single_Task_Declaration
2921 or else NT (N).Nkind = N_Task_Type_Declaration);
2923 end Task_Definition;
2925 function Task_Present
2926 (N : Node_Id) return Boolean is
2928 pragma Assert (False
2929 or else NT (N).Nkind = N_Derived_Type_Definition
2930 or else NT (N).Nkind = N_Record_Definition);
2934 function Then_Actions
2935 (N : Node_Id) return List_Id is
2937 pragma Assert (False
2938 or else NT (N).Nkind = N_Conditional_Expression);
2942 function Then_Statements
2943 (N : Node_Id) return List_Id is
2945 pragma Assert (False
2946 or else NT (N).Nkind = N_Elsif_Part
2947 or else NT (N).Nkind = N_If_Statement);
2949 end Then_Statements;
2951 function Treat_Fixed_As_Integer
2952 (N : Node_Id) return Boolean is
2954 pragma Assert (False
2955 or else NT (N).Nkind = N_Op_Divide
2956 or else NT (N).Nkind = N_Op_Mod
2957 or else NT (N).Nkind = N_Op_Multiply
2958 or else NT (N).Nkind = N_Op_Rem);
2960 end Treat_Fixed_As_Integer;
2962 function Triggering_Alternative
2963 (N : Node_Id) return Node_Id is
2965 pragma Assert (False
2966 or else NT (N).Nkind = N_Asynchronous_Select);
2968 end Triggering_Alternative;
2970 function Triggering_Statement
2971 (N : Node_Id) return Node_Id is
2973 pragma Assert (False
2974 or else NT (N).Nkind = N_Triggering_Alternative);
2976 end Triggering_Statement;
2979 (N : Node_Id) return Elist_Id is
2981 pragma Assert (False
2982 or else NT (N).Nkind = N_Freeze_Entity);
2986 function Type_Definition
2987 (N : Node_Id) return Node_Id is
2989 pragma Assert (False
2990 or else NT (N).Nkind = N_Full_Type_Declaration);
2992 end Type_Definition;
2995 (N : Node_Id) return Node_Id is
2997 pragma Assert (False
2998 or else NT (N).Nkind = N_Compilation_Unit);
3002 function Unknown_Discriminants_Present
3003 (N : Node_Id) return Boolean is
3005 pragma Assert (False
3006 or else NT (N).Nkind = N_Formal_Type_Declaration
3007 or else NT (N).Nkind = N_Incomplete_Type_Declaration
3008 or else NT (N).Nkind = N_Private_Extension_Declaration
3009 or else NT (N).Nkind = N_Private_Type_Declaration);
3011 end Unknown_Discriminants_Present;
3013 function Unreferenced_In_Spec
3014 (N : Node_Id) return Boolean is
3016 pragma Assert (False
3017 or else NT (N).Nkind = N_With_Clause);
3019 end Unreferenced_In_Spec;
3021 function Variant_Part
3022 (N : Node_Id) return Node_Id is
3024 pragma Assert (False
3025 or else NT (N).Nkind = N_Component_List);
3030 (N : Node_Id) return List_Id is
3032 pragma Assert (False
3033 or else NT (N).Nkind = N_Variant_Part);
3037 function Visible_Declarations
3038 (N : Node_Id) return List_Id is
3040 pragma Assert (False
3041 or else NT (N).Nkind = N_Package_Specification
3042 or else NT (N).Nkind = N_Protected_Definition
3043 or else NT (N).Nkind = N_Task_Definition);
3045 end Visible_Declarations;
3047 function Was_Originally_Stub
3048 (N : Node_Id) return Boolean is
3050 pragma Assert (False
3051 or else NT (N).Nkind = N_Package_Body
3052 or else NT (N).Nkind = N_Protected_Body
3053 or else NT (N).Nkind = N_Subprogram_Body
3054 or else NT (N).Nkind = N_Task_Body);
3056 end Was_Originally_Stub;
3058 function Withed_Body
3059 (N : Node_Id) return Node_Id is
3061 pragma Assert (False
3062 or else NT (N).Nkind = N_With_Clause);
3066 function Zero_Cost_Handling
3067 (N : Node_Id) return Boolean is
3069 pragma Assert (False
3070 or else NT (N).Nkind = N_Exception_Handler
3071 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements);
3073 end Zero_Cost_Handling;
3075 --------------------------
3076 -- Field Set Procedures --
3077 --------------------------
3079 procedure Set_ABE_Is_Certain
3080 (N : Node_Id; Val : Boolean := True) is
3082 pragma Assert (False
3083 or else NT (N).Nkind = N_Formal_Package_Declaration
3084 or else NT (N).Nkind = N_Function_Call
3085 or else NT (N).Nkind = N_Function_Instantiation
3086 or else NT (N).Nkind = N_Package_Instantiation
3087 or else NT (N).Nkind = N_Procedure_Call_Statement
3088 or else NT (N).Nkind = N_Procedure_Instantiation);
3089 Set_Flag18 (N, Val);
3090 end Set_ABE_Is_Certain;
3092 procedure Set_Abort_Present
3093 (N : Node_Id; Val : Boolean := True) is
3095 pragma Assert (False
3096 or else NT (N).Nkind = N_Requeue_Statement);
3097 Set_Flag15 (N, Val);
3098 end Set_Abort_Present;
3100 procedure Set_Abortable_Part
3101 (N : Node_Id; Val : Node_Id) is
3103 pragma Assert (False
3104 or else NT (N).Nkind = N_Asynchronous_Select);
3105 Set_Node2_With_Parent (N, Val);
3106 end Set_Abortable_Part;
3108 procedure Set_Abstract_Present
3109 (N : Node_Id; Val : Boolean := True) is
3111 pragma Assert (False
3112 or else NT (N).Nkind = N_Derived_Type_Definition
3113 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
3114 or else NT (N).Nkind = N_Formal_Private_Type_Definition
3115 or else NT (N).Nkind = N_Private_Extension_Declaration
3116 or else NT (N).Nkind = N_Private_Type_Declaration
3117 or else NT (N).Nkind = N_Record_Definition);
3119 end Set_Abstract_Present;
3121 procedure Set_Accept_Handler_Records
3122 (N : Node_Id; Val : List_Id) is
3124 pragma Assert (False
3125 or else NT (N).Nkind = N_Accept_Alternative);
3126 Set_List5 (N, Val); -- semantic field, no parent set
3127 end Set_Accept_Handler_Records;
3129 procedure Set_Accept_Statement
3130 (N : Node_Id; Val : Node_Id) is
3132 pragma Assert (False
3133 or else NT (N).Nkind = N_Accept_Alternative);
3134 Set_Node2_With_Parent (N, Val);
3135 end Set_Accept_Statement;
3137 procedure Set_Access_Definition
3138 (N : Node_Id; Val : Node_Id) is
3140 pragma Assert (False
3141 or else NT (N).Nkind = N_Component_Definition
3142 or else NT (N).Nkind = N_Formal_Object_Declaration
3143 or else NT (N).Nkind = N_Object_Renaming_Declaration);
3144 Set_Node3_With_Parent (N, Val);
3145 end Set_Access_Definition;
3147 procedure Set_Access_To_Subprogram_Definition
3148 (N : Node_Id; Val : Node_Id) is
3150 pragma Assert (False
3151 or else NT (N).Nkind = N_Access_Definition);
3152 Set_Node3_With_Parent (N, Val);
3153 end Set_Access_To_Subprogram_Definition;
3155 procedure Set_Access_Types_To_Process
3156 (N : Node_Id; Val : Elist_Id) is
3158 pragma Assert (False
3159 or else NT (N).Nkind = N_Freeze_Entity);
3160 Set_Elist2 (N, Val); -- semantic field, no parent set
3161 end Set_Access_Types_To_Process;
3163 procedure Set_Actions
3164 (N : Node_Id; Val : List_Id) is
3166 pragma Assert (False
3167 or else NT (N).Nkind = N_And_Then
3168 or else NT (N).Nkind = N_Case_Expression_Alternative
3169 or else NT (N).Nkind = N_Compilation_Unit_Aux
3170 or else NT (N).Nkind = N_Expression_With_Actions
3171 or else NT (N).Nkind = N_Freeze_Entity
3172 or else NT (N).Nkind = N_Or_Else);
3173 Set_List1_With_Parent (N, Val);
3176 procedure Set_Activation_Chain_Entity
3177 (N : Node_Id; Val : Node_Id) is
3179 pragma Assert (False
3180 or else NT (N).Nkind = N_Block_Statement
3181 or else NT (N).Nkind = N_Entry_Body
3182 or else NT (N).Nkind = N_Generic_Package_Declaration
3183 or else NT (N).Nkind = N_Package_Declaration
3184 or else NT (N).Nkind = N_Subprogram_Body
3185 or else NT (N).Nkind = N_Task_Body);
3186 Set_Node3 (N, Val); -- semantic field, no parent set
3187 end Set_Activation_Chain_Entity;
3189 procedure Set_Acts_As_Spec
3190 (N : Node_Id; Val : Boolean := True) is
3192 pragma Assert (False
3193 or else NT (N).Nkind = N_Compilation_Unit
3194 or else NT (N).Nkind = N_Subprogram_Body);
3196 end Set_Acts_As_Spec;
3198 procedure Set_Actual_Designated_Subtype
3199 (N : Node_Id; Val : Node_Id) is
3201 pragma Assert (False
3202 or else NT (N).Nkind = N_Explicit_Dereference
3203 or else NT (N).Nkind = N_Free_Statement);
3205 end Set_Actual_Designated_Subtype;
3207 procedure Set_Address_Warning_Posted
3208 (N : Node_Id; Val : Boolean := True) is
3210 pragma Assert (False
3211 or else NT (N).Nkind = N_Attribute_Definition_Clause);
3212 Set_Flag18 (N, Val);
3213 end Set_Address_Warning_Posted;
3215 procedure Set_Aggregate_Bounds
3216 (N : Node_Id; Val : Node_Id) is
3218 pragma Assert (False
3219 or else NT (N).Nkind = N_Aggregate);
3220 Set_Node3 (N, Val); -- semantic field, no parent set
3221 end Set_Aggregate_Bounds;
3223 procedure Set_Aliased_Present
3224 (N : Node_Id; Val : Boolean := True) is
3226 pragma Assert (False
3227 or else NT (N).Nkind = N_Component_Definition
3228 or else NT (N).Nkind = N_Object_Declaration);
3230 end Set_Aliased_Present;
3232 procedure Set_All_Others
3233 (N : Node_Id; Val : Boolean := True) is
3235 pragma Assert (False
3236 or else NT (N).Nkind = N_Others_Choice);
3237 Set_Flag11 (N, Val);
3240 procedure Set_All_Present
3241 (N : Node_Id; Val : Boolean := True) is
3243 pragma Assert (False
3244 or else NT (N).Nkind = N_Access_Definition
3245 or else NT (N).Nkind = N_Access_To_Object_Definition
3246 or else NT (N).Nkind = N_Quantified_Expression
3247 or else NT (N).Nkind = N_Use_Type_Clause);
3248 Set_Flag15 (N, Val);
3249 end Set_All_Present;
3251 procedure Set_Alternatives
3252 (N : Node_Id; Val : List_Id) is
3254 pragma Assert (False
3255 or else NT (N).Nkind = N_Case_Expression
3256 or else NT (N).Nkind = N_Case_Statement
3257 or else NT (N).Nkind = N_In
3258 or else NT (N).Nkind = N_Not_In);
3259 Set_List4_With_Parent (N, Val);
3260 end Set_Alternatives;
3262 procedure Set_Ancestor_Part
3263 (N : Node_Id; Val : Node_Id) is
3265 pragma Assert (False
3266 or else NT (N).Nkind = N_Extension_Aggregate);
3267 Set_Node3_With_Parent (N, Val);
3268 end Set_Ancestor_Part;
3270 procedure Set_Array_Aggregate
3271 (N : Node_Id; Val : Node_Id) is
3273 pragma Assert (False
3274 or else NT (N).Nkind = N_Enumeration_Representation_Clause);
3275 Set_Node3_With_Parent (N, Val);
3276 end Set_Array_Aggregate;
3278 procedure Set_Aspect_Cancel
3279 (N : Node_Id; Val : Boolean := True) is
3281 pragma Assert (False
3282 or else NT (N).Nkind = N_Pragma);
3283 Set_Flag11 (N, Val);
3284 end Set_Aspect_Cancel;
3286 procedure Set_Aspect_Rep_Item
3287 (N : Node_Id; Val : Node_Id) is
3289 pragma Assert (False
3290 or else NT (N).Nkind = N_Aspect_Specification);
3292 end Set_Aspect_Rep_Item;
3294 procedure Set_Assignment_OK
3295 (N : Node_Id; Val : Boolean := True) is
3297 pragma Assert (False
3298 or else NT (N).Nkind = N_Object_Declaration
3299 or else NT (N).Nkind in N_Subexpr);
3300 Set_Flag15 (N, Val);
3301 end Set_Assignment_OK;
3303 procedure Set_Associated_Node
3304 (N : Node_Id; Val : Node_Id) is
3306 pragma Assert (False
3307 or else NT (N).Nkind in N_Has_Entity
3308 or else NT (N).Nkind = N_Aggregate
3309 or else NT (N).Nkind = N_Extension_Aggregate
3310 or else NT (N).Nkind = N_Selected_Component);
3311 Set_Node4 (N, Val); -- semantic field, no parent set
3312 end Set_Associated_Node;
3314 procedure Set_At_End_Proc
3315 (N : Node_Id; Val : Node_Id) is
3317 pragma Assert (False
3318 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements);
3320 end Set_At_End_Proc;
3322 procedure Set_Attribute_Name
3323 (N : Node_Id; Val : Name_Id) is
3325 pragma Assert (False
3326 or else NT (N).Nkind = N_Attribute_Reference);
3328 end Set_Attribute_Name;
3330 procedure Set_Aux_Decls_Node
3331 (N : Node_Id; Val : Node_Id) is
3333 pragma Assert (False
3334 or else NT (N).Nkind = N_Compilation_Unit);
3335 Set_Node5_With_Parent (N, Val);
3336 end Set_Aux_Decls_Node;
3338 procedure Set_Backwards_OK
3339 (N : Node_Id; Val : Boolean := True) is
3341 pragma Assert (False
3342 or else NT (N).Nkind = N_Assignment_Statement);
3344 end Set_Backwards_OK;
3346 procedure Set_Bad_Is_Detected
3347 (N : Node_Id; Val : Boolean := True) is
3349 pragma Assert (False
3350 or else NT (N).Nkind = N_Subprogram_Body);
3351 Set_Flag15 (N, Val);
3352 end Set_Bad_Is_Detected;
3354 procedure Set_Body_Required
3355 (N : Node_Id; Val : Boolean := True) is
3357 pragma Assert (False
3358 or else NT (N).Nkind = N_Compilation_Unit);
3359 Set_Flag13 (N, Val);
3360 end Set_Body_Required;
3362 procedure Set_Body_To_Inline
3363 (N : Node_Id; Val : Node_Id) is
3365 pragma Assert (False
3366 or else NT (N).Nkind = N_Subprogram_Declaration);
3368 end Set_Body_To_Inline;
3370 procedure Set_Box_Present
3371 (N : Node_Id; Val : Boolean := True) is
3373 pragma Assert (False
3374 or else NT (N).Nkind = N_Component_Association
3375 or else NT (N).Nkind = N_Formal_Abstract_Subprogram_Declaration
3376 or else NT (N).Nkind = N_Formal_Concrete_Subprogram_Declaration
3377 or else NT (N).Nkind = N_Formal_Package_Declaration
3378 or else NT (N).Nkind = N_Generic_Association);
3379 Set_Flag15 (N, Val);
3380 end Set_Box_Present;
3382 procedure Set_By_Ref
3383 (N : Node_Id; Val : Boolean := True) is
3385 pragma Assert (False
3386 or else NT (N).Nkind = N_Extended_Return_Statement
3387 or else NT (N).Nkind = N_Return_Statement);
3391 procedure Set_Char_Literal_Value
3392 (N : Node_Id; Val : Uint) is
3394 pragma Assert (False
3395 or else NT (N).Nkind = N_Character_Literal);
3397 end Set_Char_Literal_Value;
3400 (N : Node_Id; Val : Name_Id) is
3402 pragma Assert (False
3403 or else NT (N).Nkind in N_Has_Chars);
3407 procedure Set_Check_Address_Alignment
3408 (N : Node_Id; Val : Boolean := True) is
3410 pragma Assert (False
3411 or else NT (N).Nkind = N_Attribute_Definition_Clause);
3412 Set_Flag11 (N, Val);
3413 end Set_Check_Address_Alignment;
3415 procedure Set_Choice_Parameter
3416 (N : Node_Id; Val : Node_Id) is
3418 pragma Assert (False
3419 or else NT (N).Nkind = N_Exception_Handler);
3420 Set_Node2_With_Parent (N, Val);
3421 end Set_Choice_Parameter;
3423 procedure Set_Choices
3424 (N : Node_Id; Val : List_Id) is
3426 pragma Assert (False
3427 or else NT (N).Nkind = N_Component_Association);
3428 Set_List1_With_Parent (N, Val);
3431 procedure Set_Class_Present
3432 (N : Node_Id; Val : Boolean := True) is
3434 pragma Assert (False
3435 or else NT (N).Nkind = N_Aspect_Specification
3436 or else NT (N).Nkind = N_Pragma);
3438 end Set_Class_Present;
3440 procedure Set_Coextensions
3441 (N : Node_Id; Val : Elist_Id) is
3443 pragma Assert (False
3444 or else NT (N).Nkind = N_Allocator);
3445 Set_Elist4 (N, Val);
3446 end Set_Coextensions;
3448 procedure Set_Comes_From_Extended_Return_Statement
3449 (N : Node_Id; Val : Boolean := True) is
3451 pragma Assert (False
3452 or else NT (N).Nkind = N_Return_Statement);
3453 Set_Flag18 (N, Val);
3454 end Set_Comes_From_Extended_Return_Statement;
3456 procedure Set_Compile_Time_Known_Aggregate
3457 (N : Node_Id; Val : Boolean := True) is
3459 pragma Assert (False
3460 or else NT (N).Nkind = N_Aggregate);
3461 Set_Flag18 (N, Val);
3462 end Set_Compile_Time_Known_Aggregate;
3464 procedure Set_Component_Associations
3465 (N : Node_Id; Val : List_Id) is
3467 pragma Assert (False
3468 or else NT (N).Nkind = N_Aggregate
3469 or else NT (N).Nkind = N_Extension_Aggregate);
3470 Set_List2_With_Parent (N, Val);
3471 end Set_Component_Associations;
3473 procedure Set_Component_Clauses
3474 (N : Node_Id; Val : List_Id) is
3476 pragma Assert (False
3477 or else NT (N).Nkind = N_Record_Representation_Clause);
3478 Set_List3_With_Parent (N, Val);
3479 end Set_Component_Clauses;
3481 procedure Set_Component_Definition
3482 (N : Node_Id; Val : Node_Id) is
3484 pragma Assert (False
3485 or else NT (N).Nkind = N_Component_Declaration
3486 or else NT (N).Nkind = N_Constrained_Array_Definition
3487 or else NT (N).Nkind = N_Unconstrained_Array_Definition);
3488 Set_Node4_With_Parent (N, Val);
3489 end Set_Component_Definition;
3491 procedure Set_Component_Items
3492 (N : Node_Id; Val : List_Id) is
3494 pragma Assert (False
3495 or else NT (N).Nkind = N_Component_List);
3496 Set_List3_With_Parent (N, Val);
3497 end Set_Component_Items;
3499 procedure Set_Component_List
3500 (N : Node_Id; Val : Node_Id) is
3502 pragma Assert (False
3503 or else NT (N).Nkind = N_Record_Definition
3504 or else NT (N).Nkind = N_Variant);
3505 Set_Node1_With_Parent (N, Val);
3506 end Set_Component_List;
3508 procedure Set_Component_Name
3509 (N : Node_Id; Val : Node_Id) is
3511 pragma Assert (False
3512 or else NT (N).Nkind = N_Component_Clause);
3513 Set_Node1_With_Parent (N, Val);
3514 end Set_Component_Name;
3516 procedure Set_Componentwise_Assignment
3517 (N : Node_Id; Val : Boolean := True) is
3519 pragma Assert (False
3520 or else NT (N).Nkind = N_Assignment_Statement);
3521 Set_Flag14 (N, Val);
3522 end Set_Componentwise_Assignment;
3524 procedure Set_Condition
3525 (N : Node_Id; Val : Node_Id) is
3527 pragma Assert (False
3528 or else NT (N).Nkind = N_Accept_Alternative
3529 or else NT (N).Nkind = N_Delay_Alternative
3530 or else NT (N).Nkind = N_Elsif_Part
3531 or else NT (N).Nkind = N_Entry_Body_Formal_Part
3532 or else NT (N).Nkind = N_Exit_Statement
3533 or else NT (N).Nkind = N_If_Statement
3534 or else NT (N).Nkind = N_Iteration_Scheme
3535 or else NT (N).Nkind = N_Quantified_Expression
3536 or else NT (N).Nkind = N_Raise_Constraint_Error
3537 or else NT (N).Nkind = N_Raise_Program_Error
3538 or else NT (N).Nkind = N_Raise_Storage_Error
3539 or else NT (N).Nkind = N_Terminate_Alternative);
3540 Set_Node1_With_Parent (N, Val);
3543 procedure Set_Condition_Actions
3544 (N : Node_Id; Val : List_Id) is
3546 pragma Assert (False
3547 or else NT (N).Nkind = N_Elsif_Part
3548 or else NT (N).Nkind = N_Iteration_Scheme);
3549 Set_List3 (N, Val); -- semantic field, no parent set
3550 end Set_Condition_Actions;
3552 procedure Set_Config_Pragmas
3553 (N : Node_Id; Val : List_Id) is
3555 pragma Assert (False
3556 or else NT (N).Nkind = N_Compilation_Unit_Aux);
3557 Set_List4_With_Parent (N, Val);
3558 end Set_Config_Pragmas;
3560 procedure Set_Constant_Present
3561 (N : Node_Id; Val : Boolean := True) is
3563 pragma Assert (False
3564 or else NT (N).Nkind = N_Access_Definition
3565 or else NT (N).Nkind = N_Access_To_Object_Definition
3566 or else NT (N).Nkind = N_Object_Declaration);
3567 Set_Flag17 (N, Val);
3568 end Set_Constant_Present;
3570 procedure Set_Constraint
3571 (N : Node_Id; Val : Node_Id) is
3573 pragma Assert (False
3574 or else NT (N).Nkind = N_Subtype_Indication);
3575 Set_Node3_With_Parent (N, Val);
3578 procedure Set_Constraints
3579 (N : Node_Id; Val : List_Id) is
3581 pragma Assert (False
3582 or else NT (N).Nkind = N_Index_Or_Discriminant_Constraint);
3583 Set_List1_With_Parent (N, Val);
3584 end Set_Constraints;
3586 procedure Set_Context_Installed
3587 (N : Node_Id; Val : Boolean := True) is
3589 pragma Assert (False
3590 or else NT (N).Nkind = N_With_Clause);
3591 Set_Flag13 (N, Val);
3592 end Set_Context_Installed;
3594 procedure Set_Context_Items
3595 (N : Node_Id; Val : List_Id) is
3597 pragma Assert (False
3598 or else NT (N).Nkind = N_Compilation_Unit);
3599 Set_List1_With_Parent (N, Val);
3600 end Set_Context_Items;
3602 procedure Set_Context_Pending
3603 (N : Node_Id; Val : Boolean := True) is
3605 pragma Assert (False
3606 or else NT (N).Nkind = N_Compilation_Unit);
3607 Set_Flag16 (N, Val);
3608 end Set_Context_Pending;
3610 procedure Set_Controlling_Argument
3611 (N : Node_Id; Val : Node_Id) is
3613 pragma Assert (False
3614 or else NT (N).Nkind = N_Function_Call
3615 or else NT (N).Nkind = N_Procedure_Call_Statement);
3616 Set_Node1 (N, Val); -- semantic field, no parent set
3617 end Set_Controlling_Argument;
3619 procedure Set_Conversion_OK
3620 (N : Node_Id; Val : Boolean := True) is
3622 pragma Assert (False
3623 or else NT (N).Nkind = N_Type_Conversion);
3624 Set_Flag14 (N, Val);
3625 end Set_Conversion_OK;
3627 procedure Set_Corresponding_Body
3628 (N : Node_Id; Val : Node_Id) is
3630 pragma Assert (False
3631 or else NT (N).Nkind = N_Entry_Declaration
3632 or else NT (N).Nkind = N_Generic_Package_Declaration
3633 or else NT (N).Nkind = N_Generic_Subprogram_Declaration
3634 or else NT (N).Nkind = N_Package_Body_Stub
3635 or else NT (N).Nkind = N_Package_Declaration
3636 or else NT (N).Nkind = N_Protected_Body_Stub
3637 or else NT (N).Nkind = N_Protected_Type_Declaration
3638 or else NT (N).Nkind = N_Subprogram_Body_Stub
3639 or else NT (N).Nkind = N_Subprogram_Declaration
3640 or else NT (N).Nkind = N_Task_Body_Stub
3641 or else NT (N).Nkind = N_Task_Type_Declaration);
3642 Set_Node5 (N, Val); -- semantic field, no parent set
3643 end Set_Corresponding_Body;
3645 procedure Set_Corresponding_Formal_Spec
3646 (N : Node_Id; Val : Node_Id) is
3648 pragma Assert (False
3649 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration);
3650 Set_Node3 (N, Val); -- semantic field, no parent set
3651 end Set_Corresponding_Formal_Spec;
3653 procedure Set_Corresponding_Generic_Association
3654 (N : Node_Id; Val : Node_Id) is
3656 pragma Assert (False
3657 or else NT (N).Nkind = N_Object_Declaration
3658 or else NT (N).Nkind = N_Object_Renaming_Declaration);
3659 Set_Node5 (N, Val); -- semantic field, no parent set
3660 end Set_Corresponding_Generic_Association;
3662 procedure Set_Corresponding_Integer_Value
3663 (N : Node_Id; Val : Uint) is
3665 pragma Assert (False
3666 or else NT (N).Nkind = N_Real_Literal);
3667 Set_Uint4 (N, Val); -- semantic field, no parent set
3668 end Set_Corresponding_Integer_Value;
3670 procedure Set_Corresponding_Spec
3671 (N : Node_Id; Val : Node_Id) is
3673 pragma Assert (False
3674 or else NT (N).Nkind = N_Package_Body
3675 or else NT (N).Nkind = N_Protected_Body
3676 or else NT (N).Nkind = N_Subprogram_Body
3677 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration
3678 or else NT (N).Nkind = N_Task_Body
3679 or else NT (N).Nkind = N_With_Clause);
3680 Set_Node5 (N, Val); -- semantic field, no parent set
3681 end Set_Corresponding_Spec;
3683 procedure Set_Corresponding_Stub
3684 (N : Node_Id; Val : Node_Id) is
3686 pragma Assert (False
3687 or else NT (N).Nkind = N_Subunit);
3689 end Set_Corresponding_Stub;
3691 procedure Set_Dcheck_Function
3692 (N : Node_Id; Val : Entity_Id) is
3694 pragma Assert (False
3695 or else NT (N).Nkind = N_Variant);
3696 Set_Node5 (N, Val); -- semantic field, no parent set
3697 end Set_Dcheck_Function;
3699 procedure Set_Debug_Statement
3700 (N : Node_Id; Val : Node_Id) is
3702 pragma Assert (False
3703 or else NT (N).Nkind = N_Pragma);
3704 Set_Node3_With_Parent (N, Val);
3705 end Set_Debug_Statement;
3707 procedure Set_Declarations
3708 (N : Node_Id; Val : List_Id) is
3710 pragma Assert (False
3711 or else NT (N).Nkind = N_Accept_Statement
3712 or else NT (N).Nkind = N_Block_Statement
3713 or else NT (N).Nkind = N_Compilation_Unit_Aux
3714 or else NT (N).Nkind = N_Entry_Body
3715 or else NT (N).Nkind = N_Package_Body
3716 or else NT (N).Nkind = N_Protected_Body
3717 or else NT (N).Nkind = N_Subprogram_Body
3718 or else NT (N).Nkind = N_Task_Body);
3719 Set_List2_With_Parent (N, Val);
3720 end Set_Declarations;
3722 procedure Set_Default_Expression
3723 (N : Node_Id; Val : Node_Id) is
3725 pragma Assert (False
3726 or else NT (N).Nkind = N_Formal_Object_Declaration
3727 or else NT (N).Nkind = N_Parameter_Specification);
3728 Set_Node5 (N, Val); -- semantic field, no parent set
3729 end Set_Default_Expression;
3731 procedure Set_Default_Storage_Pool
3732 (N : Node_Id; Val : Node_Id) is
3734 pragma Assert (False
3735 or else NT (N).Nkind = N_Compilation_Unit_Aux);
3736 Set_Node3 (N, Val); -- semantic field, no parent set
3737 end Set_Default_Storage_Pool;
3739 procedure Set_Default_Name
3740 (N : Node_Id; Val : Node_Id) is
3742 pragma Assert (False
3743 or else NT (N).Nkind = N_Formal_Abstract_Subprogram_Declaration
3744 or else NT (N).Nkind = N_Formal_Concrete_Subprogram_Declaration);
3745 Set_Node2_With_Parent (N, Val);
3746 end Set_Default_Name;
3748 procedure Set_Defining_Identifier
3749 (N : Node_Id; Val : Entity_Id) is
3751 pragma Assert (False
3752 or else NT (N).Nkind = N_Component_Declaration
3753 or else NT (N).Nkind = N_Defining_Program_Unit_Name
3754 or else NT (N).Nkind = N_Discriminant_Specification
3755 or else NT (N).Nkind = N_Entry_Body
3756 or else NT (N).Nkind = N_Entry_Declaration
3757 or else NT (N).Nkind = N_Entry_Index_Specification
3758 or else NT (N).Nkind = N_Exception_Declaration
3759 or else NT (N).Nkind = N_Exception_Renaming_Declaration
3760 or else NT (N).Nkind = N_Formal_Object_Declaration
3761 or else NT (N).Nkind = N_Formal_Package_Declaration
3762 or else NT (N).Nkind = N_Formal_Type_Declaration
3763 or else NT (N).Nkind = N_Full_Type_Declaration
3764 or else NT (N).Nkind = N_Implicit_Label_Declaration
3765 or else NT (N).Nkind = N_Incomplete_Type_Declaration
3766 or else NT (N).Nkind = N_Iterator_Specification
3767 or else NT (N).Nkind = N_Loop_Parameter_Specification
3768 or else NT (N).Nkind = N_Number_Declaration
3769 or else NT (N).Nkind = N_Object_Declaration
3770 or else NT (N).Nkind = N_Object_Renaming_Declaration
3771 or else NT (N).Nkind = N_Package_Body_Stub
3772 or else NT (N).Nkind = N_Parameter_Specification
3773 or else NT (N).Nkind = N_Private_Extension_Declaration
3774 or else NT (N).Nkind = N_Private_Type_Declaration
3775 or else NT (N).Nkind = N_Protected_Body
3776 or else NT (N).Nkind = N_Protected_Body_Stub
3777 or else NT (N).Nkind = N_Protected_Type_Declaration
3778 or else NT (N).Nkind = N_Single_Protected_Declaration
3779 or else NT (N).Nkind = N_Single_Task_Declaration
3780 or else NT (N).Nkind = N_Subtype_Declaration
3781 or else NT (N).Nkind = N_Task_Body
3782 or else NT (N).Nkind = N_Task_Body_Stub
3783 or else NT (N).Nkind = N_Task_Type_Declaration);
3784 Set_Node1_With_Parent (N, Val);
3785 end Set_Defining_Identifier;
3787 procedure Set_Defining_Unit_Name
3788 (N : Node_Id; Val : Node_Id) is
3790 pragma Assert (False
3791 or else NT (N).Nkind = N_Function_Instantiation
3792 or else NT (N).Nkind = N_Function_Specification
3793 or else NT (N).Nkind = N_Generic_Function_Renaming_Declaration
3794 or else NT (N).Nkind = N_Generic_Package_Renaming_Declaration
3795 or else NT (N).Nkind = N_Generic_Procedure_Renaming_Declaration
3796 or else NT (N).Nkind = N_Package_Body
3797 or else NT (N).Nkind = N_Package_Instantiation
3798 or else NT (N).Nkind = N_Package_Renaming_Declaration
3799 or else NT (N).Nkind = N_Package_Specification
3800 or else NT (N).Nkind = N_Procedure_Instantiation
3801 or else NT (N).Nkind = N_Procedure_Specification);
3802 Set_Node1_With_Parent (N, Val);
3803 end Set_Defining_Unit_Name;
3805 procedure Set_Delay_Alternative
3806 (N : Node_Id; Val : Node_Id) is
3808 pragma Assert (False
3809 or else NT (N).Nkind = N_Timed_Entry_Call);
3810 Set_Node4_With_Parent (N, Val);
3811 end Set_Delay_Alternative;
3813 procedure Set_Delay_Statement
3814 (N : Node_Id; Val : Node_Id) is
3816 pragma Assert (False
3817 or else NT (N).Nkind = N_Delay_Alternative);
3818 Set_Node2_With_Parent (N, Val);
3819 end Set_Delay_Statement;
3821 procedure Set_Delta_Expression
3822 (N : Node_Id; Val : Node_Id) is
3824 pragma Assert (False
3825 or else NT (N).Nkind = N_Decimal_Fixed_Point_Definition
3826 or else NT (N).Nkind = N_Delta_Constraint
3827 or else NT (N).Nkind = N_Ordinary_Fixed_Point_Definition);
3828 Set_Node3_With_Parent (N, Val);
3829 end Set_Delta_Expression;
3831 procedure Set_Digits_Expression
3832 (N : Node_Id; Val : Node_Id) is
3834 pragma Assert (False
3835 or else NT (N).Nkind = N_Decimal_Fixed_Point_Definition
3836 or else NT (N).Nkind = N_Digits_Constraint
3837 or else NT (N).Nkind = N_Floating_Point_Definition);
3838 Set_Node2_With_Parent (N, Val);
3839 end Set_Digits_Expression;
3841 procedure Set_Discr_Check_Funcs_Built
3842 (N : Node_Id; Val : Boolean := True) is
3844 pragma Assert (False
3845 or else NT (N).Nkind = N_Full_Type_Declaration);
3846 Set_Flag11 (N, Val);
3847 end Set_Discr_Check_Funcs_Built;
3849 procedure Set_Discrete_Choices
3850 (N : Node_Id; Val : List_Id) is
3852 pragma Assert (False
3853 or else NT (N).Nkind = N_Case_Expression_Alternative
3854 or else NT (N).Nkind = N_Case_Statement_Alternative
3855 or else NT (N).Nkind = N_Variant);
3856 Set_List4_With_Parent (N, Val);
3857 end Set_Discrete_Choices;
3859 procedure Set_Discrete_Range
3860 (N : Node_Id; Val : Node_Id) is
3862 pragma Assert (False
3863 or else NT (N).Nkind = N_Slice);
3864 Set_Node4_With_Parent (N, Val);
3865 end Set_Discrete_Range;
3867 procedure Set_Discrete_Subtype_Definition
3868 (N : Node_Id; Val : Node_Id) is
3870 pragma Assert (False
3871 or else NT (N).Nkind = N_Entry_Declaration
3872 or else NT (N).Nkind = N_Entry_Index_Specification
3873 or else NT (N).Nkind = N_Loop_Parameter_Specification);
3874 Set_Node4_With_Parent (N, Val);
3875 end Set_Discrete_Subtype_Definition;
3877 procedure Set_Discrete_Subtype_Definitions
3878 (N : Node_Id; Val : List_Id) is
3880 pragma Assert (False
3881 or else NT (N).Nkind = N_Constrained_Array_Definition);
3882 Set_List2_With_Parent (N, Val);
3883 end Set_Discrete_Subtype_Definitions;
3885 procedure Set_Discriminant_Specifications
3886 (N : Node_Id; Val : List_Id) is
3888 pragma Assert (False
3889 or else NT (N).Nkind = N_Formal_Type_Declaration
3890 or else NT (N).Nkind = N_Full_Type_Declaration
3891 or else NT (N).Nkind = N_Incomplete_Type_Declaration
3892 or else NT (N).Nkind = N_Private_Extension_Declaration
3893 or else NT (N).Nkind = N_Private_Type_Declaration
3894 or else NT (N).Nkind = N_Protected_Type_Declaration
3895 or else NT (N).Nkind = N_Task_Type_Declaration);
3896 Set_List4_With_Parent (N, Val);
3897 end Set_Discriminant_Specifications;
3899 procedure Set_Discriminant_Type
3900 (N : Node_Id; Val : Node_Id) is
3902 pragma Assert (False
3903 or else NT (N).Nkind = N_Discriminant_Specification);
3904 Set_Node5_With_Parent (N, Val);
3905 end Set_Discriminant_Type;
3907 procedure Set_Do_Accessibility_Check
3908 (N : Node_Id; Val : Boolean := True) is
3910 pragma Assert (False
3911 or else NT (N).Nkind = N_Parameter_Specification);
3912 Set_Flag13 (N, Val);
3913 end Set_Do_Accessibility_Check;
3915 procedure Set_Do_Discriminant_Check
3916 (N : Node_Id; Val : Boolean := True) is
3918 pragma Assert (False
3919 or else NT (N).Nkind = N_Selected_Component);
3920 Set_Flag13 (N, Val);
3921 end Set_Do_Discriminant_Check;
3923 procedure Set_Do_Division_Check
3924 (N : Node_Id; Val : Boolean := True) is
3926 pragma Assert (False
3927 or else NT (N).Nkind = N_Op_Divide
3928 or else NT (N).Nkind = N_Op_Mod
3929 or else NT (N).Nkind = N_Op_Rem);
3930 Set_Flag13 (N, Val);
3931 end Set_Do_Division_Check;
3933 procedure Set_Do_Length_Check
3934 (N : Node_Id; Val : Boolean := True) is
3936 pragma Assert (False
3937 or else NT (N).Nkind = N_Assignment_Statement
3938 or else NT (N).Nkind = N_Op_And
3939 or else NT (N).Nkind = N_Op_Or
3940 or else NT (N).Nkind = N_Op_Xor
3941 or else NT (N).Nkind = N_Type_Conversion);
3943 end Set_Do_Length_Check;
3945 procedure Set_Do_Overflow_Check
3946 (N : Node_Id; Val : Boolean := True) is
3948 pragma Assert (False
3949 or else NT (N).Nkind in N_Op
3950 or else NT (N).Nkind = N_Attribute_Reference
3951 or else NT (N).Nkind = N_Type_Conversion);
3952 Set_Flag17 (N, Val);
3953 end Set_Do_Overflow_Check;
3955 procedure Set_Do_Range_Check
3956 (N : Node_Id; Val : Boolean := True) is
3958 pragma Assert (False
3959 or else NT (N).Nkind in N_Subexpr);
3961 end Set_Do_Range_Check;
3963 procedure Set_Do_Storage_Check
3964 (N : Node_Id; Val : Boolean := True) is
3966 pragma Assert (False
3967 or else NT (N).Nkind = N_Allocator
3968 or else NT (N).Nkind = N_Subprogram_Body);
3969 Set_Flag17 (N, Val);
3970 end Set_Do_Storage_Check;
3972 procedure Set_Do_Tag_Check
3973 (N : Node_Id; Val : Boolean := True) is
3975 pragma Assert (False
3976 or else NT (N).Nkind = N_Assignment_Statement
3977 or else NT (N).Nkind = N_Extended_Return_Statement
3978 or else NT (N).Nkind = N_Function_Call
3979 or else NT (N).Nkind = N_Procedure_Call_Statement
3980 or else NT (N).Nkind = N_Return_Statement
3981 or else NT (N).Nkind = N_Type_Conversion);
3982 Set_Flag13 (N, Val);
3983 end Set_Do_Tag_Check;
3985 procedure Set_Elaborate_All_Desirable
3986 (N : Node_Id; Val : Boolean := True) is
3988 pragma Assert (False
3989 or else NT (N).Nkind = N_With_Clause);
3991 end Set_Elaborate_All_Desirable;
3993 procedure Set_Elaborate_All_Present
3994 (N : Node_Id; Val : Boolean := True) is
3996 pragma Assert (False
3997 or else NT (N).Nkind = N_With_Clause);
3998 Set_Flag14 (N, Val);
3999 end Set_Elaborate_All_Present;
4001 procedure Set_Elaborate_Desirable
4002 (N : Node_Id; Val : Boolean := True) is
4004 pragma Assert (False
4005 or else NT (N).Nkind = N_With_Clause);
4006 Set_Flag11 (N, Val);
4007 end Set_Elaborate_Desirable;
4009 procedure Set_Elaborate_Present
4010 (N : Node_Id; Val : Boolean := True) is
4012 pragma Assert (False
4013 or else NT (N).Nkind = N_With_Clause);
4015 end Set_Elaborate_Present;
4017 procedure Set_Elaboration_Boolean
4018 (N : Node_Id; Val : Node_Id) is
4020 pragma Assert (False
4021 or else NT (N).Nkind = N_Function_Specification
4022 or else NT (N).Nkind = N_Procedure_Specification);
4024 end Set_Elaboration_Boolean;
4026 procedure Set_Else_Actions
4027 (N : Node_Id; Val : List_Id) is
4029 pragma Assert (False
4030 or else NT (N).Nkind = N_Conditional_Expression);
4031 Set_List3 (N, Val); -- semantic field, no parent set
4032 end Set_Else_Actions;
4034 procedure Set_Else_Statements
4035 (N : Node_Id; Val : List_Id) is
4037 pragma Assert (False
4038 or else NT (N).Nkind = N_Conditional_Entry_Call
4039 or else NT (N).Nkind = N_If_Statement
4040 or else NT (N).Nkind = N_Selective_Accept);
4041 Set_List4_With_Parent (N, Val);
4042 end Set_Else_Statements;
4044 procedure Set_Elsif_Parts
4045 (N : Node_Id; Val : List_Id) is
4047 pragma Assert (False
4048 or else NT (N).Nkind = N_If_Statement);
4049 Set_List3_With_Parent (N, Val);
4050 end Set_Elsif_Parts;
4052 procedure Set_Enclosing_Variant
4053 (N : Node_Id; Val : Node_Id) is
4055 pragma Assert (False
4056 or else NT (N).Nkind = N_Variant);
4057 Set_Node2 (N, Val); -- semantic field, no parent set
4058 end Set_Enclosing_Variant;
4060 procedure Set_End_Label
4061 (N : Node_Id; Val : Node_Id) is
4063 pragma Assert (False
4064 or else NT (N).Nkind = N_Enumeration_Type_Definition
4065 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements
4066 or else NT (N).Nkind = N_Loop_Statement
4067 or else NT (N).Nkind = N_Package_Specification
4068 or else NT (N).Nkind = N_Protected_Body
4069 or else NT (N).Nkind = N_Protected_Definition
4070 or else NT (N).Nkind = N_Record_Definition
4071 or else NT (N).Nkind = N_Task_Definition);
4072 Set_Node4_With_Parent (N, Val);
4075 procedure Set_End_Span
4076 (N : Node_Id; Val : Uint) is
4078 pragma Assert (False
4079 or else NT (N).Nkind = N_Case_Statement
4080 or else NT (N).Nkind = N_If_Statement);
4084 procedure Set_Entity
4085 (N : Node_Id; Val : Node_Id) is
4087 pragma Assert (False
4088 or else NT (N).Nkind in N_Has_Entity
4089 or else NT (N).Nkind = N_Aspect_Specification
4090 or else NT (N).Nkind = N_Attribute_Definition_Clause
4091 or else NT (N).Nkind = N_Freeze_Entity);
4092 Set_Node4 (N, Val); -- semantic field, no parent set
4095 procedure Set_Entry_Body_Formal_Part
4096 (N : Node_Id; Val : Node_Id) is
4098 pragma Assert (False
4099 or else NT (N).Nkind = N_Entry_Body);
4100 Set_Node5_With_Parent (N, Val);
4101 end Set_Entry_Body_Formal_Part;
4103 procedure Set_Entry_Call_Alternative
4104 (N : Node_Id; Val : Node_Id) is
4106 pragma Assert (False
4107 or else NT (N).Nkind = N_Conditional_Entry_Call
4108 or else NT (N).Nkind = N_Timed_Entry_Call);
4109 Set_Node1_With_Parent (N, Val);
4110 end Set_Entry_Call_Alternative;
4112 procedure Set_Entry_Call_Statement
4113 (N : Node_Id; Val : Node_Id) is
4115 pragma Assert (False
4116 or else NT (N).Nkind = N_Entry_Call_Alternative);
4117 Set_Node1_With_Parent (N, Val);
4118 end Set_Entry_Call_Statement;
4120 procedure Set_Entry_Direct_Name
4121 (N : Node_Id; Val : Node_Id) is
4123 pragma Assert (False
4124 or else NT (N).Nkind = N_Accept_Statement);
4125 Set_Node1_With_Parent (N, Val);
4126 end Set_Entry_Direct_Name;
4128 procedure Set_Entry_Index
4129 (N : Node_Id; Val : Node_Id) is
4131 pragma Assert (False
4132 or else NT (N).Nkind = N_Accept_Statement);
4133 Set_Node5_With_Parent (N, Val);
4134 end Set_Entry_Index;
4136 procedure Set_Entry_Index_Specification
4137 (N : Node_Id; Val : Node_Id) is
4139 pragma Assert (False
4140 or else NT (N).Nkind = N_Entry_Body_Formal_Part);
4141 Set_Node4_With_Parent (N, Val);
4142 end Set_Entry_Index_Specification;
4145 (N : Node_Id; Val : Node_Id) is
4147 pragma Assert (False
4148 or else NT (N).Nkind in N_Has_Etype);
4149 Set_Node5 (N, Val); -- semantic field, no parent set
4152 procedure Set_Exception_Choices
4153 (N : Node_Id; Val : List_Id) is
4155 pragma Assert (False
4156 or else NT (N).Nkind = N_Exception_Handler);
4157 Set_List4_With_Parent (N, Val);
4158 end Set_Exception_Choices;
4160 procedure Set_Exception_Handlers
4161 (N : Node_Id; Val : List_Id) is
4163 pragma Assert (False
4164 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements);
4165 Set_List5_With_Parent (N, Val);
4166 end Set_Exception_Handlers;
4168 procedure Set_Exception_Junk
4169 (N : Node_Id; Val : Boolean := True) is
4171 pragma Assert (False
4172 or else NT (N).Nkind = N_Block_Statement
4173 or else NT (N).Nkind = N_Goto_Statement
4174 or else NT (N).Nkind = N_Label
4175 or else NT (N).Nkind = N_Object_Declaration
4176 or else NT (N).Nkind = N_Subtype_Declaration);
4178 end Set_Exception_Junk;
4180 procedure Set_Exception_Label
4181 (N : Node_Id; Val : Node_Id) is
4183 pragma Assert (False
4184 or else NT (N).Nkind = N_Exception_Handler
4185 or else NT (N).Nkind = N_Push_Constraint_Error_Label
4186 or else NT (N).Nkind = N_Push_Program_Error_Label
4187 or else NT (N).Nkind = N_Push_Storage_Error_Label);
4188 Set_Node5 (N, Val); -- semantic field, no parent set
4189 end Set_Exception_Label;
4191 procedure Set_Expansion_Delayed
4192 (N : Node_Id; Val : Boolean := True) is
4194 pragma Assert (False
4195 or else NT (N).Nkind = N_Aggregate
4196 or else NT (N).Nkind = N_Extension_Aggregate);
4197 Set_Flag11 (N, Val);
4198 end Set_Expansion_Delayed;
4200 procedure Set_Explicit_Actual_Parameter
4201 (N : Node_Id; Val : Node_Id) is
4203 pragma Assert (False
4204 or else NT (N).Nkind = N_Parameter_Association);
4205 Set_Node3_With_Parent (N, Val);
4206 end Set_Explicit_Actual_Parameter;
4208 procedure Set_Explicit_Generic_Actual_Parameter
4209 (N : Node_Id; Val : Node_Id) is
4211 pragma Assert (False
4212 or else NT (N).Nkind = N_Generic_Association);
4213 Set_Node1_With_Parent (N, Val);
4214 end Set_Explicit_Generic_Actual_Parameter;
4216 procedure Set_Expression
4217 (N : Node_Id; Val : Node_Id) is
4219 pragma Assert (False
4220 or else NT (N).Nkind = N_Allocator
4221 or else NT (N).Nkind = N_Aspect_Specification
4222 or else NT (N).Nkind = N_Assignment_Statement
4223 or else NT (N).Nkind = N_At_Clause
4224 or else NT (N).Nkind = N_Attribute_Definition_Clause
4225 or else NT (N).Nkind = N_Case_Expression
4226 or else NT (N).Nkind = N_Case_Expression_Alternative
4227 or else NT (N).Nkind = N_Case_Statement
4228 or else NT (N).Nkind = N_Code_Statement
4229 or else NT (N).Nkind = N_Component_Association
4230 or else NT (N).Nkind = N_Component_Declaration
4231 or else NT (N).Nkind = N_Delay_Relative_Statement
4232 or else NT (N).Nkind = N_Delay_Until_Statement
4233 or else NT (N).Nkind = N_Discriminant_Association
4234 or else NT (N).Nkind = N_Discriminant_Specification
4235 or else NT (N).Nkind = N_Exception_Declaration
4236 or else NT (N).Nkind = N_Expression_With_Actions
4237 or else NT (N).Nkind = N_Free_Statement
4238 or else NT (N).Nkind = N_Mod_Clause
4239 or else NT (N).Nkind = N_Modular_Type_Definition
4240 or else NT (N).Nkind = N_Number_Declaration
4241 or else NT (N).Nkind = N_Object_Declaration
4242 or else NT (N).Nkind = N_Parameter_Specification
4243 or else NT (N).Nkind = N_Parameterized_Expression
4244 or else NT (N).Nkind = N_Pragma_Argument_Association
4245 or else NT (N).Nkind = N_Qualified_Expression
4246 or else NT (N).Nkind = N_Raise_Statement
4247 or else NT (N).Nkind = N_Return_Statement
4248 or else NT (N).Nkind = N_Type_Conversion
4249 or else NT (N).Nkind = N_Unchecked_Expression
4250 or else NT (N).Nkind = N_Unchecked_Type_Conversion);
4251 Set_Node3_With_Parent (N, Val);
4254 procedure Set_Expressions
4255 (N : Node_Id; Val : List_Id) is
4257 pragma Assert (False
4258 or else NT (N).Nkind = N_Aggregate
4259 or else NT (N).Nkind = N_Attribute_Reference
4260 or else NT (N).Nkind = N_Conditional_Expression
4261 or else NT (N).Nkind = N_Extension_Aggregate
4262 or else NT (N).Nkind = N_Indexed_Component);
4263 Set_List1_With_Parent (N, Val);
4264 end Set_Expressions;
4266 procedure Set_First_Bit
4267 (N : Node_Id; Val : Node_Id) is
4269 pragma Assert (False
4270 or else NT (N).Nkind = N_Component_Clause);
4271 Set_Node3_With_Parent (N, Val);
4274 procedure Set_First_Inlined_Subprogram
4275 (N : Node_Id; Val : Entity_Id) is
4277 pragma Assert (False
4278 or else NT (N).Nkind = N_Compilation_Unit);
4279 Set_Node3 (N, Val); -- semantic field, no parent set
4280 end Set_First_Inlined_Subprogram;
4282 procedure Set_First_Name
4283 (N : Node_Id; Val : Boolean := True) is
4285 pragma Assert (False
4286 or else NT (N).Nkind = N_With_Clause);
4290 procedure Set_First_Named_Actual
4291 (N : Node_Id; Val : Node_Id) is
4293 pragma Assert (False
4294 or else NT (N).Nkind = N_Entry_Call_Statement
4295 or else NT (N).Nkind = N_Function_Call
4296 or else NT (N).Nkind = N_Procedure_Call_Statement);
4297 Set_Node4 (N, Val); -- semantic field, no parent set
4298 end Set_First_Named_Actual;
4300 procedure Set_First_Real_Statement
4301 (N : Node_Id; Val : Node_Id) is
4303 pragma Assert (False
4304 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements);
4305 Set_Node2 (N, Val); -- semantic field, no parent set
4306 end Set_First_Real_Statement;
4308 procedure Set_First_Subtype_Link
4309 (N : Node_Id; Val : Entity_Id) is
4311 pragma Assert (False
4312 or else NT (N).Nkind = N_Freeze_Entity);
4313 Set_Node5 (N, Val); -- semantic field, no parent set
4314 end Set_First_Subtype_Link;
4316 procedure Set_Float_Truncate
4317 (N : Node_Id; Val : Boolean := True) is
4319 pragma Assert (False
4320 or else NT (N).Nkind = N_Type_Conversion);
4321 Set_Flag11 (N, Val);
4322 end Set_Float_Truncate;
4324 procedure Set_Formal_Type_Definition
4325 (N : Node_Id; Val : Node_Id) is
4327 pragma Assert (False
4328 or else NT (N).Nkind = N_Formal_Type_Declaration);
4329 Set_Node3_With_Parent (N, Val);
4330 end Set_Formal_Type_Definition;
4332 procedure Set_Forwards_OK
4333 (N : Node_Id; Val : Boolean := True) is
4335 pragma Assert (False
4336 or else NT (N).Nkind = N_Assignment_Statement);
4338 end Set_Forwards_OK;
4340 procedure Set_From_Aspect_Specification
4341 (N : Node_Id; Val : Boolean := True) is
4343 pragma Assert (False
4344 or else NT (N).Nkind = N_Attribute_Definition_Clause
4345 or else NT (N).Nkind = N_Pragma);
4346 Set_Flag13 (N, Val);
4347 end Set_From_Aspect_Specification;
4349 procedure Set_From_At_End
4350 (N : Node_Id; Val : Boolean := True) is
4352 pragma Assert (False
4353 or else NT (N).Nkind = N_Raise_Statement);
4355 end Set_From_At_End;
4357 procedure Set_From_At_Mod
4358 (N : Node_Id; Val : Boolean := True) is
4360 pragma Assert (False
4361 or else NT (N).Nkind = N_Attribute_Definition_Clause);
4363 end Set_From_At_Mod;
4365 procedure Set_From_Default
4366 (N : Node_Id; Val : Boolean := True) is
4368 pragma Assert (False
4369 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration);
4371 end Set_From_Default;
4373 procedure Set_Generic_Associations
4374 (N : Node_Id; Val : List_Id) is
4376 pragma Assert (False
4377 or else NT (N).Nkind = N_Formal_Package_Declaration
4378 or else NT (N).Nkind = N_Function_Instantiation
4379 or else NT (N).Nkind = N_Package_Instantiation
4380 or else NT (N).Nkind = N_Procedure_Instantiation);
4381 Set_List3_With_Parent (N, Val);
4382 end Set_Generic_Associations;
4384 procedure Set_Generic_Formal_Declarations
4385 (N : Node_Id; Val : List_Id) is
4387 pragma Assert (False
4388 or else NT (N).Nkind = N_Generic_Package_Declaration
4389 or else NT (N).Nkind = N_Generic_Subprogram_Declaration);
4390 Set_List2_With_Parent (N, Val);
4391 end Set_Generic_Formal_Declarations;
4393 procedure Set_Generic_Parent
4394 (N : Node_Id; Val : Node_Id) is
4396 pragma Assert (False
4397 or else NT (N).Nkind = N_Function_Specification
4398 or else NT (N).Nkind = N_Package_Specification
4399 or else NT (N).Nkind = N_Procedure_Specification);
4401 end Set_Generic_Parent;
4403 procedure Set_Generic_Parent_Type
4404 (N : Node_Id; Val : Node_Id) is
4406 pragma Assert (False
4407 or else NT (N).Nkind = N_Subtype_Declaration);
4409 end Set_Generic_Parent_Type;
4411 procedure Set_Handled_Statement_Sequence
4412 (N : Node_Id; Val : Node_Id) is
4414 pragma Assert (False
4415 or else NT (N).Nkind = N_Accept_Statement
4416 or else NT (N).Nkind = N_Block_Statement
4417 or else NT (N).Nkind = N_Entry_Body
4418 or else NT (N).Nkind = N_Extended_Return_Statement
4419 or else NT (N).Nkind = N_Package_Body
4420 or else NT (N).Nkind = N_Subprogram_Body
4421 or else NT (N).Nkind = N_Task_Body);
4422 Set_Node4_With_Parent (N, Val);
4423 end Set_Handled_Statement_Sequence;
4425 procedure Set_Handler_List_Entry
4426 (N : Node_Id; Val : Node_Id) is
4428 pragma Assert (False
4429 or else NT (N).Nkind = N_Object_Declaration);
4431 end Set_Handler_List_Entry;
4433 procedure Set_Has_Created_Identifier
4434 (N : Node_Id; Val : Boolean := True) is
4436 pragma Assert (False
4437 or else NT (N).Nkind = N_Block_Statement
4438 or else NT (N).Nkind = N_Loop_Statement);
4439 Set_Flag15 (N, Val);
4440 end Set_Has_Created_Identifier;
4442 procedure Set_Has_Dynamic_Length_Check
4443 (N : Node_Id; Val : Boolean := True) is
4445 Set_Flag10 (N, Val);
4446 end Set_Has_Dynamic_Length_Check;
4448 procedure Set_Has_Dynamic_Range_Check
4449 (N : Node_Id; Val : Boolean := True) is
4451 Set_Flag12 (N, Val);
4452 end Set_Has_Dynamic_Range_Check;
4454 procedure Set_Has_Init_Expression
4455 (N : Node_Id; Val : Boolean := True) is
4457 pragma Assert (False
4458 or else NT (N).Nkind = N_Object_Declaration);
4459 Set_Flag14 (N, Val);
4460 end Set_Has_Init_Expression;
4462 procedure Set_Has_Local_Raise
4463 (N : Node_Id; Val : Boolean := True) is
4465 pragma Assert (False
4466 or else NT (N).Nkind = N_Exception_Handler);
4468 end Set_Has_Local_Raise;
4470 procedure Set_Has_No_Elaboration_Code
4471 (N : Node_Id; Val : Boolean := True) is
4473 pragma Assert (False
4474 or else NT (N).Nkind = N_Compilation_Unit);
4475 Set_Flag17 (N, Val);
4476 end Set_Has_No_Elaboration_Code;
4478 procedure Set_Has_Pragma_CPU
4479 (N : Node_Id; Val : Boolean := True) is
4481 pragma Assert (False
4482 or else NT (N).Nkind = N_Subprogram_Body
4483 or else NT (N).Nkind = N_Task_Definition);
4484 Set_Flag14 (N, Val);
4485 end Set_Has_Pragma_CPU;
4487 procedure Set_Has_Pragma_Priority
4488 (N : Node_Id; Val : Boolean := True) is
4490 pragma Assert (False
4491 or else NT (N).Nkind = N_Protected_Definition
4492 or else NT (N).Nkind = N_Subprogram_Body
4493 or else NT (N).Nkind = N_Task_Definition);
4495 end Set_Has_Pragma_Priority;
4497 procedure Set_Has_Pragma_Suppress_All
4498 (N : Node_Id; Val : Boolean := True) is
4500 pragma Assert (False
4501 or else NT (N).Nkind = N_Compilation_Unit);
4502 Set_Flag14 (N, Val);
4503 end Set_Has_Pragma_Suppress_All;
4505 procedure Set_Has_Private_View
4506 (N : Node_Id; Val : Boolean := True) is
4508 pragma Assert (False
4509 or else NT (N).Nkind in N_Op
4510 or else NT (N).Nkind = N_Character_Literal
4511 or else NT (N).Nkind = N_Expanded_Name
4512 or else NT (N).Nkind = N_Identifier
4513 or else NT (N).Nkind = N_Operator_Symbol);
4514 Set_Flag11 (N, Val);
4515 end Set_Has_Private_View;
4517 procedure Set_Has_Relative_Deadline_Pragma
4518 (N : Node_Id; Val : Boolean := True) is
4520 pragma Assert (False
4521 or else NT (N).Nkind = N_Subprogram_Body
4522 or else NT (N).Nkind = N_Task_Definition);
4524 end Set_Has_Relative_Deadline_Pragma;
4526 procedure Set_Has_Self_Reference
4527 (N : Node_Id; Val : Boolean := True) is
4529 pragma Assert (False
4530 or else NT (N).Nkind = N_Aggregate
4531 or else NT (N).Nkind = N_Extension_Aggregate);
4532 Set_Flag13 (N, Val);
4533 end Set_Has_Self_Reference;
4535 procedure Set_Has_Storage_Size_Pragma
4536 (N : Node_Id; Val : Boolean := True) is
4538 pragma Assert (False
4539 or else NT (N).Nkind = N_Task_Definition);
4541 end Set_Has_Storage_Size_Pragma;
4543 procedure Set_Has_Task_Info_Pragma
4544 (N : Node_Id; Val : Boolean := True) is
4546 pragma Assert (False
4547 or else NT (N).Nkind = N_Task_Definition);
4549 end Set_Has_Task_Info_Pragma;
4551 procedure Set_Has_Task_Name_Pragma
4552 (N : Node_Id; Val : Boolean := True) is
4554 pragma Assert (False
4555 or else NT (N).Nkind = N_Task_Definition);
4557 end Set_Has_Task_Name_Pragma;
4559 procedure Set_Has_Wide_Character
4560 (N : Node_Id; Val : Boolean := True) is
4562 pragma Assert (False
4563 or else NT (N).Nkind = N_String_Literal);
4564 Set_Flag11 (N, Val);
4565 end Set_Has_Wide_Character;
4567 procedure Set_Has_Wide_Wide_Character
4568 (N : Node_Id; Val : Boolean := True) is
4570 pragma Assert (False
4571 or else NT (N).Nkind = N_String_Literal);
4572 Set_Flag13 (N, Val);
4573 end Set_Has_Wide_Wide_Character;
4575 procedure Set_Hidden_By_Use_Clause
4576 (N : Node_Id; Val : Elist_Id) is
4578 pragma Assert (False
4579 or else NT (N).Nkind = N_Use_Package_Clause
4580 or else NT (N).Nkind = N_Use_Type_Clause);
4581 Set_Elist4 (N, Val);
4582 end Set_Hidden_By_Use_Clause;
4584 procedure Set_High_Bound
4585 (N : Node_Id; Val : Node_Id) is
4587 pragma Assert (False
4588 or else NT (N).Nkind = N_Range
4589 or else NT (N).Nkind = N_Real_Range_Specification
4590 or else NT (N).Nkind = N_Signed_Integer_Type_Definition);
4591 Set_Node2_With_Parent (N, Val);
4594 procedure Set_Identifier
4595 (N : Node_Id; Val : Node_Id) is
4597 pragma Assert (False
4598 or else NT (N).Nkind = N_Aspect_Specification
4599 or else NT (N).Nkind = N_At_Clause
4600 or else NT (N).Nkind = N_Block_Statement
4601 or else NT (N).Nkind = N_Designator
4602 or else NT (N).Nkind = N_Enumeration_Representation_Clause
4603 or else NT (N).Nkind = N_Label
4604 or else NT (N).Nkind = N_Loop_Statement
4605 or else NT (N).Nkind = N_Record_Representation_Clause
4606 or else NT (N).Nkind = N_Subprogram_Info);
4607 Set_Node1_With_Parent (N, Val);
4610 procedure Set_Implicit_With
4611 (N : Node_Id; Val : Boolean := True) is
4613 pragma Assert (False
4614 or else NT (N).Nkind = N_With_Clause);
4615 Set_Flag16 (N, Val);
4616 end Set_Implicit_With;
4618 procedure Set_Interface_List
4619 (N : Node_Id; Val : List_Id) is
4621 pragma Assert (False
4622 or else NT (N).Nkind = N_Derived_Type_Definition
4623 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
4624 or else NT (N).Nkind = N_Private_Extension_Declaration
4625 or else NT (N).Nkind = N_Protected_Type_Declaration
4626 or else NT (N).Nkind = N_Record_Definition
4627 or else NT (N).Nkind = N_Single_Protected_Declaration
4628 or else NT (N).Nkind = N_Single_Task_Declaration
4629 or else NT (N).Nkind = N_Task_Type_Declaration);
4630 Set_List2_With_Parent (N, Val);
4631 end Set_Interface_List;
4633 procedure Set_Interface_Present
4634 (N : Node_Id; Val : Boolean := True) is
4636 pragma Assert (False
4637 or else NT (N).Nkind = N_Derived_Type_Definition
4638 or else NT (N).Nkind = N_Record_Definition);
4639 Set_Flag16 (N, Val);
4640 end Set_Interface_Present;
4642 procedure Set_Import_Interface_Present
4643 (N : Node_Id; Val : Boolean := True) is
4645 pragma Assert (False
4646 or else NT (N).Nkind = N_Pragma);
4647 Set_Flag16 (N, Val);
4648 end Set_Import_Interface_Present;
4650 procedure Set_In_Present
4651 (N : Node_Id; Val : Boolean := True) is
4653 pragma Assert (False
4654 or else NT (N).Nkind = N_Formal_Object_Declaration
4655 or else NT (N).Nkind = N_Parameter_Specification);
4656 Set_Flag15 (N, Val);
4659 procedure Set_Includes_Infinities
4660 (N : Node_Id; Val : Boolean := True) is
4662 pragma Assert (False
4663 or else NT (N).Nkind = N_Range);
4664 Set_Flag11 (N, Val);
4665 end Set_Includes_Infinities;
4667 procedure Set_Inherited_Discriminant
4668 (N : Node_Id; Val : Boolean := True) is
4670 pragma Assert (False
4671 or else NT (N).Nkind = N_Component_Association);
4672 Set_Flag13 (N, Val);
4673 end Set_Inherited_Discriminant;
4675 procedure Set_Instance_Spec
4676 (N : Node_Id; Val : Node_Id) is
4678 pragma Assert (False
4679 or else NT (N).Nkind = N_Formal_Package_Declaration
4680 or else NT (N).Nkind = N_Function_Instantiation
4681 or else NT (N).Nkind = N_Package_Instantiation
4682 or else NT (N).Nkind = N_Procedure_Instantiation);
4683 Set_Node5 (N, Val); -- semantic field, no Parent set
4684 end Set_Instance_Spec;
4686 procedure Set_Intval
4687 (N : Node_Id; Val : Uint) is
4689 pragma Assert (False
4690 or else NT (N).Nkind = N_Integer_Literal);
4694 procedure Set_Is_Accessibility_Actual
4695 (N : Node_Id; Val : Boolean := True) is
4697 pragma Assert (False
4698 or else NT (N).Nkind = N_Parameter_Association);
4699 Set_Flag13 (N, Val);
4700 end Set_Is_Accessibility_Actual;
4702 procedure Set_Is_Asynchronous_Call_Block
4703 (N : Node_Id; Val : Boolean := True) is
4705 pragma Assert (False
4706 or else NT (N).Nkind = N_Block_Statement);
4708 end Set_Is_Asynchronous_Call_Block;
4710 procedure Set_Is_Component_Left_Opnd
4711 (N : Node_Id; Val : Boolean := True) is
4713 pragma Assert (False
4714 or else NT (N).Nkind = N_Op_Concat);
4715 Set_Flag13 (N, Val);
4716 end Set_Is_Component_Left_Opnd;
4718 procedure Set_Is_Component_Right_Opnd
4719 (N : Node_Id; Val : Boolean := True) is
4721 pragma Assert (False
4722 or else NT (N).Nkind = N_Op_Concat);
4723 Set_Flag14 (N, Val);
4724 end Set_Is_Component_Right_Opnd;
4726 procedure Set_Is_Controlling_Actual
4727 (N : Node_Id; Val : Boolean := True) is
4729 pragma Assert (False
4730 or else NT (N).Nkind in N_Subexpr);
4731 Set_Flag16 (N, Val);
4732 end Set_Is_Controlling_Actual;
4734 procedure Set_Is_Delayed_Aspect
4735 (N : Node_Id; Val : Boolean := True) is
4737 pragma Assert (False
4738 or else NT (N).Nkind = N_Attribute_Definition_Clause
4739 or else NT (N).Nkind = N_Pragma);
4740 Set_Flag14 (N, Val);
4741 end Set_Is_Delayed_Aspect;
4743 procedure Set_Is_Dynamic_Coextension
4744 (N : Node_Id; Val : Boolean := True) is
4746 pragma Assert (False
4747 or else NT (N).Nkind = N_Allocator);
4748 Set_Flag18 (N, Val);
4749 end Set_Is_Dynamic_Coextension;
4751 procedure Set_Is_Elsif
4752 (N : Node_Id; Val : Boolean := True) is
4754 pragma Assert (False
4755 or else NT (N).Nkind = N_Conditional_Expression);
4756 Set_Flag13 (N, Val);
4759 procedure Set_Is_Entry_Barrier_Function
4760 (N : Node_Id; Val : Boolean := True) is
4762 pragma Assert (False
4763 or else NT (N).Nkind = N_Subprogram_Body);
4765 end Set_Is_Entry_Barrier_Function;
4767 procedure Set_Is_Expanded_Build_In_Place_Call
4768 (N : Node_Id; Val : Boolean := True) is
4770 pragma Assert (False
4771 or else NT (N).Nkind = N_Function_Call);
4772 Set_Flag11 (N, Val);
4773 end Set_Is_Expanded_Build_In_Place_Call;
4775 procedure Set_Is_Folded_In_Parser
4776 (N : Node_Id; Val : Boolean := True) is
4778 pragma Assert (False
4779 or else NT (N).Nkind = N_String_Literal);
4781 end Set_Is_Folded_In_Parser;
4783 procedure Set_Is_In_Discriminant_Check
4784 (N : Node_Id; Val : Boolean := True) is
4786 pragma Assert (False
4787 or else NT (N).Nkind = N_Selected_Component);
4788 Set_Flag11 (N, Val);
4789 end Set_Is_In_Discriminant_Check;
4791 procedure Set_Is_Machine_Number
4792 (N : Node_Id; Val : Boolean := True) is
4794 pragma Assert (False
4795 or else NT (N).Nkind = N_Real_Literal);
4796 Set_Flag11 (N, Val);
4797 end Set_Is_Machine_Number;
4799 procedure Set_Is_Null_Loop
4800 (N : Node_Id; Val : Boolean := True) is
4802 pragma Assert (False
4803 or else NT (N).Nkind = N_Loop_Statement);
4804 Set_Flag16 (N, Val);
4805 end Set_Is_Null_Loop;
4807 procedure Set_Is_Overloaded
4808 (N : Node_Id; Val : Boolean := True) is
4810 pragma Assert (False
4811 or else NT (N).Nkind in N_Subexpr);
4813 end Set_Is_Overloaded;
4815 procedure Set_Is_Power_Of_2_For_Shift
4816 (N : Node_Id; Val : Boolean := True) is
4818 pragma Assert (False
4819 or else NT (N).Nkind = N_Op_Expon);
4820 Set_Flag13 (N, Val);
4821 end Set_Is_Power_Of_2_For_Shift;
4823 procedure Set_Is_Protected_Subprogram_Body
4824 (N : Node_Id; Val : Boolean := True) is
4826 pragma Assert (False
4827 or else NT (N).Nkind = N_Subprogram_Body);
4829 end Set_Is_Protected_Subprogram_Body;
4831 procedure Set_Is_Static_Coextension
4832 (N : Node_Id; Val : Boolean := True) is
4834 pragma Assert (False
4835 or else NT (N).Nkind = N_Allocator);
4836 Set_Flag14 (N, Val);
4837 end Set_Is_Static_Coextension;
4839 procedure Set_Is_Static_Expression
4840 (N : Node_Id; Val : Boolean := True) is
4842 pragma Assert (False
4843 or else NT (N).Nkind in N_Subexpr);
4845 end Set_Is_Static_Expression;
4847 procedure Set_Is_Subprogram_Descriptor
4848 (N : Node_Id; Val : Boolean := True) is
4850 pragma Assert (False
4851 or else NT (N).Nkind = N_Object_Declaration);
4852 Set_Flag16 (N, Val);
4853 end Set_Is_Subprogram_Descriptor;
4855 procedure Set_Is_Task_Allocation_Block
4856 (N : Node_Id; Val : Boolean := True) is
4858 pragma Assert (False
4859 or else NT (N).Nkind = N_Block_Statement);
4861 end Set_Is_Task_Allocation_Block;
4863 procedure Set_Is_Task_Master
4864 (N : Node_Id; Val : Boolean := True) is
4866 pragma Assert (False
4867 or else NT (N).Nkind = N_Block_Statement
4868 or else NT (N).Nkind = N_Subprogram_Body
4869 or else NT (N).Nkind = N_Task_Body);
4871 end Set_Is_Task_Master;
4873 procedure Set_Iteration_Scheme
4874 (N : Node_Id; Val : Node_Id) is
4876 pragma Assert (False
4877 or else NT (N).Nkind = N_Loop_Statement);
4878 Set_Node2_With_Parent (N, Val);
4879 end Set_Iteration_Scheme;
4881 procedure Set_Iterator_Specification
4882 (N : Node_Id; Val : Node_Id) is
4884 pragma Assert (False
4885 or else NT (N).Nkind = N_Iteration_Scheme
4886 or else NT (N).Nkind = N_Quantified_Expression);
4887 Set_Node2_With_Parent (N, Val);
4888 end Set_Iterator_Specification;
4891 (N : Node_Id; Val : Entity_Id) is
4893 pragma Assert (False
4894 or else NT (N).Nkind = N_Itype_Reference);
4895 Set_Node1 (N, Val); -- no parent, semantic field
4898 procedure Set_Kill_Range_Check
4899 (N : Node_Id; Val : Boolean := True) is
4901 pragma Assert (False
4902 or else NT (N).Nkind = N_Unchecked_Type_Conversion);
4903 Set_Flag11 (N, Val);
4904 end Set_Kill_Range_Check;
4906 procedure Set_Label_Construct
4907 (N : Node_Id; Val : Node_Id) is
4909 pragma Assert (False
4910 or else NT (N).Nkind = N_Implicit_Label_Declaration);
4911 Set_Node2 (N, Val); -- semantic field, no parent set
4912 end Set_Label_Construct;
4914 procedure Set_Last_Bit
4915 (N : Node_Id; Val : Node_Id) is
4917 pragma Assert (False
4918 or else NT (N).Nkind = N_Component_Clause);
4919 Set_Node4_With_Parent (N, Val);
4922 procedure Set_Last_Name
4923 (N : Node_Id; Val : Boolean := True) is
4925 pragma Assert (False
4926 or else NT (N).Nkind = N_With_Clause);
4930 procedure Set_Left_Opnd
4931 (N : Node_Id; Val : Node_Id) is
4933 pragma Assert (False
4934 or else NT (N).Nkind = N_And_Then
4935 or else NT (N).Nkind = N_In
4936 or else NT (N).Nkind = N_Not_In
4937 or else NT (N).Nkind = N_Or_Else
4938 or else NT (N).Nkind in N_Binary_Op);
4939 Set_Node2_With_Parent (N, Val);
4942 procedure Set_Library_Unit
4943 (N : Node_Id; Val : Node_Id) is
4945 pragma Assert (False
4946 or else NT (N).Nkind = N_Compilation_Unit
4947 or else NT (N).Nkind = N_Package_Body_Stub
4948 or else NT (N).Nkind = N_Protected_Body_Stub
4949 or else NT (N).Nkind = N_Subprogram_Body_Stub
4950 or else NT (N).Nkind = N_Task_Body_Stub
4951 or else NT (N).Nkind = N_With_Clause);
4952 Set_Node4 (N, Val); -- semantic field, no parent set
4953 end Set_Library_Unit;
4955 procedure Set_Limited_View_Installed
4956 (N : Node_Id; Val : Boolean := True) is
4958 pragma Assert (False
4959 or else NT (N).Nkind = N_Package_Specification
4960 or else NT (N).Nkind = N_With_Clause);
4961 Set_Flag18 (N, Val);
4962 end Set_Limited_View_Installed;
4964 procedure Set_Limited_Present
4965 (N : Node_Id; Val : Boolean := True) is
4967 pragma Assert (False
4968 or else NT (N).Nkind = N_Derived_Type_Definition
4969 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
4970 or else NT (N).Nkind = N_Formal_Private_Type_Definition
4971 or else NT (N).Nkind = N_Private_Extension_Declaration
4972 or else NT (N).Nkind = N_Private_Type_Declaration
4973 or else NT (N).Nkind = N_Record_Definition
4974 or else NT (N).Nkind = N_With_Clause);
4975 Set_Flag17 (N, Val);
4976 end Set_Limited_Present;
4978 procedure Set_Literals
4979 (N : Node_Id; Val : List_Id) is
4981 pragma Assert (False
4982 or else NT (N).Nkind = N_Enumeration_Type_Definition);
4983 Set_List1_With_Parent (N, Val);
4986 procedure Set_Local_Raise_Not_OK
4987 (N : Node_Id; Val : Boolean := True) is
4989 pragma Assert (False
4990 or else NT (N).Nkind = N_Exception_Handler);
4992 end Set_Local_Raise_Not_OK;
4994 procedure Set_Local_Raise_Statements
4995 (N : Node_Id; Val : Elist_Id) is
4997 pragma Assert (False
4998 or else NT (N).Nkind = N_Exception_Handler);
4999 Set_Elist1 (N, Val);
5000 end Set_Local_Raise_Statements;
5002 procedure Set_Loop_Actions
5003 (N : Node_Id; Val : List_Id) is
5005 pragma Assert (False
5006 or else NT (N).Nkind = N_Component_Association);
5007 Set_List2 (N, Val); -- semantic field, no parent set
5008 end Set_Loop_Actions;
5010 procedure Set_Loop_Parameter_Specification
5011 (N : Node_Id; Val : Node_Id) is
5013 pragma Assert (False
5014 or else NT (N).Nkind = N_Iteration_Scheme
5015 or else NT (N).Nkind = N_Quantified_Expression);
5016 Set_Node4_With_Parent (N, Val);
5017 end Set_Loop_Parameter_Specification;
5019 procedure Set_Low_Bound
5020 (N : Node_Id; Val : Node_Id) is
5022 pragma Assert (False
5023 or else NT (N).Nkind = N_Range
5024 or else NT (N).Nkind = N_Real_Range_Specification
5025 or else NT (N).Nkind = N_Signed_Integer_Type_Definition);
5026 Set_Node1_With_Parent (N, Val);
5029 procedure Set_Mod_Clause
5030 (N : Node_Id; Val : Node_Id) is
5032 pragma Assert (False
5033 or else NT (N).Nkind = N_Record_Representation_Clause);
5034 Set_Node2_With_Parent (N, Val);
5037 procedure Set_More_Ids
5038 (N : Node_Id; Val : Boolean := True) is
5040 pragma Assert (False
5041 or else NT (N).Nkind = N_Component_Declaration
5042 or else NT (N).Nkind = N_Discriminant_Specification
5043 or else NT (N).Nkind = N_Exception_Declaration
5044 or else NT (N).Nkind = N_Formal_Object_Declaration
5045 or else NT (N).Nkind = N_Number_Declaration
5046 or else NT (N).Nkind = N_Object_Declaration
5047 or else NT (N).Nkind = N_Parameter_Specification);
5051 procedure Set_Must_Be_Byte_Aligned
5052 (N : Node_Id; Val : Boolean := True) is
5054 pragma Assert (False
5055 or else NT (N).Nkind = N_Attribute_Reference);
5056 Set_Flag14 (N, Val);
5057 end Set_Must_Be_Byte_Aligned;
5059 procedure Set_Must_Not_Freeze
5060 (N : Node_Id; Val : Boolean := True) is
5062 pragma Assert (False
5063 or else NT (N).Nkind = N_Subtype_Indication
5064 or else NT (N).Nkind in N_Subexpr);
5066 end Set_Must_Not_Freeze;
5068 procedure Set_Must_Not_Override
5069 (N : Node_Id; Val : Boolean := True) is
5071 pragma Assert (False
5072 or else NT (N).Nkind = N_Entry_Declaration
5073 or else NT (N).Nkind = N_Function_Instantiation
5074 or else NT (N).Nkind = N_Function_Specification
5075 or else NT (N).Nkind = N_Procedure_Instantiation
5076 or else NT (N).Nkind = N_Procedure_Specification);
5077 Set_Flag15 (N, Val);
5078 end Set_Must_Not_Override;
5080 procedure Set_Must_Override
5081 (N : Node_Id; Val : Boolean := True) is
5083 pragma Assert (False
5084 or else NT (N).Nkind = N_Entry_Declaration
5085 or else NT (N).Nkind = N_Function_Instantiation
5086 or else NT (N).Nkind = N_Function_Specification
5087 or else NT (N).Nkind = N_Procedure_Instantiation
5088 or else NT (N).Nkind = N_Procedure_Specification);
5089 Set_Flag14 (N, Val);
5090 end Set_Must_Override;
5093 (N : Node_Id; Val : Node_Id) is
5095 pragma Assert (False
5096 or else NT (N).Nkind = N_Assignment_Statement
5097 or else NT (N).Nkind = N_Attribute_Definition_Clause
5098 or else NT (N).Nkind = N_Defining_Program_Unit_Name
5099 or else NT (N).Nkind = N_Designator
5100 or else NT (N).Nkind = N_Entry_Call_Statement
5101 or else NT (N).Nkind = N_Exception_Renaming_Declaration
5102 or else NT (N).Nkind = N_Exit_Statement
5103 or else NT (N).Nkind = N_Formal_Package_Declaration
5104 or else NT (N).Nkind = N_Function_Call
5105 or else NT (N).Nkind = N_Function_Instantiation
5106 or else NT (N).Nkind = N_Generic_Function_Renaming_Declaration
5107 or else NT (N).Nkind = N_Generic_Package_Renaming_Declaration
5108 or else NT (N).Nkind = N_Generic_Procedure_Renaming_Declaration
5109 or else NT (N).Nkind = N_Goto_Statement
5110 or else NT (N).Nkind = N_Iterator_Specification
5111 or else NT (N).Nkind = N_Object_Renaming_Declaration
5112 or else NT (N).Nkind = N_Package_Instantiation
5113 or else NT (N).Nkind = N_Package_Renaming_Declaration
5114 or else NT (N).Nkind = N_Procedure_Call_Statement
5115 or else NT (N).Nkind = N_Procedure_Instantiation
5116 or else NT (N).Nkind = N_Raise_Statement
5117 or else NT (N).Nkind = N_Requeue_Statement
5118 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration
5119 or else NT (N).Nkind = N_Subunit
5120 or else NT (N).Nkind = N_Variant_Part
5121 or else NT (N).Nkind = N_With_Clause);
5122 Set_Node2_With_Parent (N, Val);
5126 (N : Node_Id; Val : List_Id) is
5128 pragma Assert (False
5129 or else NT (N).Nkind = N_Abort_Statement
5130 or else NT (N).Nkind = N_Use_Package_Clause);
5131 Set_List2_With_Parent (N, Val);
5134 procedure Set_Next_Entity
5135 (N : Node_Id; Val : Node_Id) is
5137 pragma Assert (False
5138 or else NT (N).Nkind = N_Defining_Character_Literal
5139 or else NT (N).Nkind = N_Defining_Identifier
5140 or else NT (N).Nkind = N_Defining_Operator_Symbol);
5141 Set_Node2 (N, Val); -- semantic field, no parent set
5142 end Set_Next_Entity;
5144 procedure Set_Next_Exit_Statement
5145 (N : Node_Id; Val : Node_Id) is
5147 pragma Assert (False
5148 or else NT (N).Nkind = N_Exit_Statement);
5149 Set_Node3 (N, Val); -- semantic field, no parent set
5150 end Set_Next_Exit_Statement;
5152 procedure Set_Next_Implicit_With
5153 (N : Node_Id; Val : Node_Id) is
5155 pragma Assert (False
5156 or else NT (N).Nkind = N_With_Clause);
5157 Set_Node3 (N, Val); -- semantic field, no parent set
5158 end Set_Next_Implicit_With;
5160 procedure Set_Next_Named_Actual
5161 (N : Node_Id; Val : Node_Id) is
5163 pragma Assert (False
5164 or else NT (N).Nkind = N_Parameter_Association);
5165 Set_Node4 (N, Val); -- semantic field, no parent set
5166 end Set_Next_Named_Actual;
5168 procedure Set_Next_Pragma
5169 (N : Node_Id; Val : Node_Id) is
5171 pragma Assert (False
5172 or else NT (N).Nkind = N_Pragma);
5173 Set_Node1 (N, Val); -- semantic field, no parent set
5174 end Set_Next_Pragma;
5176 procedure Set_Next_Rep_Item
5177 (N : Node_Id; Val : Node_Id) is
5179 pragma Assert (False
5180 or else NT (N).Nkind = N_Aspect_Specification
5181 or else NT (N).Nkind = N_Attribute_Definition_Clause
5182 or else NT (N).Nkind = N_Enumeration_Representation_Clause
5183 or else NT (N).Nkind = N_Pragma
5184 or else NT (N).Nkind = N_Record_Representation_Clause);
5185 Set_Node5 (N, Val); -- semantic field, no parent set
5186 end Set_Next_Rep_Item;
5188 procedure Set_Next_Use_Clause
5189 (N : Node_Id; Val : Node_Id) is
5191 pragma Assert (False
5192 or else NT (N).Nkind = N_Use_Package_Clause
5193 or else NT (N).Nkind = N_Use_Type_Clause);
5194 Set_Node3 (N, Val); -- semantic field, no parent set
5195 end Set_Next_Use_Clause;
5197 procedure Set_No_Ctrl_Actions
5198 (N : Node_Id; Val : Boolean := True) is
5200 pragma Assert (False
5201 or else NT (N).Nkind = N_Assignment_Statement);
5203 end Set_No_Ctrl_Actions;
5205 procedure Set_No_Elaboration_Check
5206 (N : Node_Id; Val : Boolean := True) is
5208 pragma Assert (False
5209 or else NT (N).Nkind = N_Function_Call
5210 or else NT (N).Nkind = N_Procedure_Call_Statement);
5211 Set_Flag14 (N, Val);
5212 end Set_No_Elaboration_Check;
5214 procedure Set_No_Entities_Ref_In_Spec
5215 (N : Node_Id; Val : Boolean := True) is
5217 pragma Assert (False
5218 or else NT (N).Nkind = N_With_Clause);
5220 end Set_No_Entities_Ref_In_Spec;
5222 procedure Set_No_Initialization
5223 (N : Node_Id; Val : Boolean := True) is
5225 pragma Assert (False
5226 or else NT (N).Nkind = N_Allocator
5227 or else NT (N).Nkind = N_Object_Declaration);
5228 Set_Flag13 (N, Val);
5229 end Set_No_Initialization;
5231 procedure Set_No_Truncation
5232 (N : Node_Id; Val : Boolean := True) is
5234 pragma Assert (False
5235 or else NT (N).Nkind = N_Unchecked_Type_Conversion);
5236 Set_Flag17 (N, Val);
5237 end Set_No_Truncation;
5239 procedure Set_Null_Present
5240 (N : Node_Id; Val : Boolean := True) is
5242 pragma Assert (False
5243 or else NT (N).Nkind = N_Component_List
5244 or else NT (N).Nkind = N_Procedure_Specification
5245 or else NT (N).Nkind = N_Record_Definition);
5246 Set_Flag13 (N, Val);
5247 end Set_Null_Present;
5249 procedure Set_Null_Exclusion_Present
5250 (N : Node_Id; Val : Boolean := True) is
5252 pragma Assert (False
5253 or else NT (N).Nkind = N_Access_Definition
5254 or else NT (N).Nkind = N_Access_Function_Definition
5255 or else NT (N).Nkind = N_Access_Procedure_Definition
5256 or else NT (N).Nkind = N_Access_To_Object_Definition
5257 or else NT (N).Nkind = N_Allocator
5258 or else NT (N).Nkind = N_Component_Definition
5259 or else NT (N).Nkind = N_Derived_Type_Definition
5260 or else NT (N).Nkind = N_Discriminant_Specification
5261 or else NT (N).Nkind = N_Formal_Object_Declaration
5262 or else NT (N).Nkind = N_Function_Specification
5263 or else NT (N).Nkind = N_Object_Declaration
5264 or else NT (N).Nkind = N_Object_Renaming_Declaration
5265 or else NT (N).Nkind = N_Parameter_Specification
5266 or else NT (N).Nkind = N_Subtype_Declaration);
5267 Set_Flag11 (N, Val);
5268 end Set_Null_Exclusion_Present;
5270 procedure Set_Null_Exclusion_In_Return_Present
5271 (N : Node_Id; Val : Boolean := True) is
5273 pragma Assert (False
5274 or else NT (N).Nkind = N_Access_Function_Definition);
5275 Set_Flag14 (N, Val);
5276 end Set_Null_Exclusion_In_Return_Present;
5278 procedure Set_Null_Record_Present
5279 (N : Node_Id; Val : Boolean := True) is
5281 pragma Assert (False
5282 or else NT (N).Nkind = N_Aggregate
5283 or else NT (N).Nkind = N_Extension_Aggregate);
5284 Set_Flag17 (N, Val);
5285 end Set_Null_Record_Present;
5287 procedure Set_Object_Definition
5288 (N : Node_Id; Val : Node_Id) is
5290 pragma Assert (False
5291 or else NT (N).Nkind = N_Object_Declaration);
5292 Set_Node4_With_Parent (N, Val);
5293 end Set_Object_Definition;
5295 procedure Set_Of_Present
5296 (N : Node_Id; Val : Boolean := True) is
5298 pragma Assert (False
5299 or else NT (N).Nkind = N_Iterator_Specification);
5300 Set_Flag16 (N, Val);
5303 procedure Set_Original_Discriminant
5304 (N : Node_Id; Val : Node_Id) is
5306 pragma Assert (False
5307 or else NT (N).Nkind = N_Identifier);
5308 Set_Node2 (N, Val); -- semantic field, no parent set
5309 end Set_Original_Discriminant;
5311 procedure Set_Original_Entity
5312 (N : Node_Id; Val : Entity_Id) is
5314 pragma Assert (False
5315 or else NT (N).Nkind = N_Integer_Literal
5316 or else NT (N).Nkind = N_Real_Literal);
5317 Set_Node2 (N, Val); -- semantic field, no parent set
5318 end Set_Original_Entity;
5320 procedure Set_Others_Discrete_Choices
5321 (N : Node_Id; Val : List_Id) is
5323 pragma Assert (False
5324 or else NT (N).Nkind = N_Others_Choice);
5325 Set_List1_With_Parent (N, Val);
5326 end Set_Others_Discrete_Choices;
5328 procedure Set_Out_Present
5329 (N : Node_Id; Val : Boolean := True) is
5331 pragma Assert (False
5332 or else NT (N).Nkind = N_Formal_Object_Declaration
5333 or else NT (N).Nkind = N_Parameter_Specification);
5334 Set_Flag17 (N, Val);
5335 end Set_Out_Present;
5337 procedure Set_Parameter_Associations
5338 (N : Node_Id; Val : List_Id) is
5340 pragma Assert (False
5341 or else NT (N).Nkind = N_Entry_Call_Statement
5342 or else NT (N).Nkind = N_Function_Call
5343 or else NT (N).Nkind = N_Procedure_Call_Statement);
5344 Set_List3_With_Parent (N, Val);
5345 end Set_Parameter_Associations;
5347 procedure Set_Parameter_List_Truncated
5348 (N : Node_Id; Val : Boolean := True) is
5350 pragma Assert (False
5351 or else NT (N).Nkind = N_Function_Call
5352 or else NT (N).Nkind = N_Procedure_Call_Statement);
5353 Set_Flag17 (N, Val);
5354 end Set_Parameter_List_Truncated;
5356 procedure Set_Parameter_Specifications
5357 (N : Node_Id; Val : List_Id) is
5359 pragma Assert (False
5360 or else NT (N).Nkind = N_Accept_Statement
5361 or else NT (N).Nkind = N_Access_Function_Definition
5362 or else NT (N).Nkind = N_Access_Procedure_Definition
5363 or else NT (N).Nkind = N_Entry_Body_Formal_Part
5364 or else NT (N).Nkind = N_Entry_Declaration
5365 or else NT (N).Nkind = N_Function_Specification
5366 or else NT (N).Nkind = N_Procedure_Specification);
5367 Set_List3_With_Parent (N, Val);
5368 end Set_Parameter_Specifications;
5370 procedure Set_Parameter_Type
5371 (N : Node_Id; Val : Node_Id) is
5373 pragma Assert (False
5374 or else NT (N).Nkind = N_Parameter_Specification);
5375 Set_Node2_With_Parent (N, Val);
5376 end Set_Parameter_Type;
5378 procedure Set_Parent_Spec
5379 (N : Node_Id; Val : Node_Id) is
5381 pragma Assert (False
5382 or else NT (N).Nkind = N_Function_Instantiation
5383 or else NT (N).Nkind = N_Generic_Function_Renaming_Declaration
5384 or else NT (N).Nkind = N_Generic_Package_Declaration
5385 or else NT (N).Nkind = N_Generic_Package_Renaming_Declaration
5386 or else NT (N).Nkind = N_Generic_Procedure_Renaming_Declaration
5387 or else NT (N).Nkind = N_Generic_Subprogram_Declaration
5388 or else NT (N).Nkind = N_Package_Declaration
5389 or else NT (N).Nkind = N_Package_Instantiation
5390 or else NT (N).Nkind = N_Package_Renaming_Declaration
5391 or else NT (N).Nkind = N_Procedure_Instantiation
5392 or else NT (N).Nkind = N_Subprogram_Declaration
5393 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration);
5394 Set_Node4 (N, Val); -- semantic field, no parent set
5395 end Set_Parent_Spec;
5397 procedure Set_Position
5398 (N : Node_Id; Val : Node_Id) is
5400 pragma Assert (False
5401 or else NT (N).Nkind = N_Component_Clause);
5402 Set_Node2_With_Parent (N, Val);
5405 procedure Set_Pragma_Argument_Associations
5406 (N : Node_Id; Val : List_Id) is
5408 pragma Assert (False
5409 or else NT (N).Nkind = N_Pragma);
5410 Set_List2_With_Parent (N, Val);
5411 end Set_Pragma_Argument_Associations;
5413 procedure Set_Pragma_Enabled
5414 (N : Node_Id; Val : Boolean := True) is
5416 pragma Assert (False
5417 or else NT (N).Nkind = N_Pragma);
5419 end Set_Pragma_Enabled;
5421 procedure Set_Pragma_Identifier
5422 (N : Node_Id; Val : Node_Id) is
5424 pragma Assert (False
5425 or else NT (N).Nkind = N_Pragma);
5426 Set_Node4_With_Parent (N, Val);
5427 end Set_Pragma_Identifier;
5429 procedure Set_Pragmas_After
5430 (N : Node_Id; Val : List_Id) is
5432 pragma Assert (False
5433 or else NT (N).Nkind = N_Compilation_Unit_Aux
5434 or else NT (N).Nkind = N_Terminate_Alternative);
5435 Set_List5_With_Parent (N, Val);
5436 end Set_Pragmas_After;
5438 procedure Set_Pragmas_Before
5439 (N : Node_Id; Val : List_Id) is
5441 pragma Assert (False
5442 or else NT (N).Nkind = N_Accept_Alternative
5443 or else NT (N).Nkind = N_Delay_Alternative
5444 or else NT (N).Nkind = N_Entry_Call_Alternative
5445 or else NT (N).Nkind = N_Mod_Clause
5446 or else NT (N).Nkind = N_Terminate_Alternative
5447 or else NT (N).Nkind = N_Triggering_Alternative);
5448 Set_List4_With_Parent (N, Val);
5449 end Set_Pragmas_Before;
5451 procedure Set_Prefix
5452 (N : Node_Id; Val : Node_Id) is
5454 pragma Assert (False
5455 or else NT (N).Nkind = N_Attribute_Reference
5456 or else NT (N).Nkind = N_Expanded_Name
5457 or else NT (N).Nkind = N_Explicit_Dereference
5458 or else NT (N).Nkind = N_Indexed_Component
5459 or else NT (N).Nkind = N_Reference
5460 or else NT (N).Nkind = N_Selected_Component
5461 or else NT (N).Nkind = N_Slice);
5462 Set_Node3_With_Parent (N, Val);
5465 procedure Set_Present_Expr
5466 (N : Node_Id; Val : Uint) is
5468 pragma Assert (False
5469 or else NT (N).Nkind = N_Variant);
5471 end Set_Present_Expr;
5473 procedure Set_Prev_Ids
5474 (N : Node_Id; Val : Boolean := True) is
5476 pragma Assert (False
5477 or else NT (N).Nkind = N_Component_Declaration
5478 or else NT (N).Nkind = N_Discriminant_Specification
5479 or else NT (N).Nkind = N_Exception_Declaration
5480 or else NT (N).Nkind = N_Formal_Object_Declaration
5481 or else NT (N).Nkind = N_Number_Declaration
5482 or else NT (N).Nkind = N_Object_Declaration
5483 or else NT (N).Nkind = N_Parameter_Specification);
5487 procedure Set_Print_In_Hex
5488 (N : Node_Id; Val : Boolean := True) is
5490 pragma Assert (False
5491 or else NT (N).Nkind = N_Integer_Literal);
5492 Set_Flag13 (N, Val);
5493 end Set_Print_In_Hex;
5495 procedure Set_Private_Declarations
5496 (N : Node_Id; Val : List_Id) is
5498 pragma Assert (False
5499 or else NT (N).Nkind = N_Package_Specification
5500 or else NT (N).Nkind = N_Protected_Definition
5501 or else NT (N).Nkind = N_Task_Definition);
5502 Set_List3_With_Parent (N, Val);
5503 end Set_Private_Declarations;
5505 procedure Set_Private_Present
5506 (N : Node_Id; Val : Boolean := True) is
5508 pragma Assert (False
5509 or else NT (N).Nkind = N_Compilation_Unit
5510 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
5511 or else NT (N).Nkind = N_With_Clause);
5512 Set_Flag15 (N, Val);
5513 end Set_Private_Present;
5515 procedure Set_Procedure_To_Call
5516 (N : Node_Id; Val : Node_Id) is
5518 pragma Assert (False
5519 or else NT (N).Nkind = N_Allocator
5520 or else NT (N).Nkind = N_Extended_Return_Statement
5521 or else NT (N).Nkind = N_Free_Statement
5522 or else NT (N).Nkind = N_Return_Statement);
5523 Set_Node2 (N, Val); -- semantic field, no parent set
5524 end Set_Procedure_To_Call;
5526 procedure Set_Proper_Body
5527 (N : Node_Id; Val : Node_Id) is
5529 pragma Assert (False
5530 or else NT (N).Nkind = N_Subunit);
5531 Set_Node1_With_Parent (N, Val);
5532 end Set_Proper_Body;
5534 procedure Set_Protected_Definition
5535 (N : Node_Id; Val : Node_Id) is
5537 pragma Assert (False
5538 or else NT (N).Nkind = N_Protected_Type_Declaration
5539 or else NT (N).Nkind = N_Single_Protected_Declaration);
5540 Set_Node3_With_Parent (N, Val);
5541 end Set_Protected_Definition;
5543 procedure Set_Protected_Present
5544 (N : Node_Id; Val : Boolean := True) is
5546 pragma Assert (False
5547 or else NT (N).Nkind = N_Access_Function_Definition
5548 or else NT (N).Nkind = N_Access_Procedure_Definition
5549 or else NT (N).Nkind = N_Derived_Type_Definition
5550 or else NT (N).Nkind = N_Record_Definition);
5552 end Set_Protected_Present;
5554 procedure Set_Raises_Constraint_Error
5555 (N : Node_Id; Val : Boolean := True) is
5557 pragma Assert (False
5558 or else NT (N).Nkind in N_Subexpr);
5560 end Set_Raises_Constraint_Error;
5562 procedure Set_Range_Constraint
5563 (N : Node_Id; Val : Node_Id) is
5565 pragma Assert (False
5566 or else NT (N).Nkind = N_Delta_Constraint
5567 or else NT (N).Nkind = N_Digits_Constraint);
5568 Set_Node4_With_Parent (N, Val);
5569 end Set_Range_Constraint;
5571 procedure Set_Range_Expression
5572 (N : Node_Id; Val : Node_Id) is
5574 pragma Assert (False
5575 or else NT (N).Nkind = N_Range_Constraint);
5576 Set_Node4_With_Parent (N, Val);
5577 end Set_Range_Expression;
5579 procedure Set_Real_Range_Specification
5580 (N : Node_Id; Val : Node_Id) is
5582 pragma Assert (False
5583 or else NT (N).Nkind = N_Decimal_Fixed_Point_Definition
5584 or else NT (N).Nkind = N_Floating_Point_Definition
5585 or else NT (N).Nkind = N_Ordinary_Fixed_Point_Definition);
5586 Set_Node4_With_Parent (N, Val);
5587 end Set_Real_Range_Specification;
5589 procedure Set_Realval
5590 (N : Node_Id; Val : Ureal) is
5592 pragma Assert (False
5593 or else NT (N).Nkind = N_Real_Literal);
5594 Set_Ureal3 (N, Val);
5597 procedure Set_Reason
5598 (N : Node_Id; Val : Uint) is
5600 pragma Assert (False
5601 or else NT (N).Nkind = N_Raise_Constraint_Error
5602 or else NT (N).Nkind = N_Raise_Program_Error
5603 or else NT (N).Nkind = N_Raise_Storage_Error);
5607 procedure Set_Record_Extension_Part
5608 (N : Node_Id; Val : Node_Id) is
5610 pragma Assert (False
5611 or else NT (N).Nkind = N_Derived_Type_Definition);
5612 Set_Node3_With_Parent (N, Val);
5613 end Set_Record_Extension_Part;
5615 procedure Set_Redundant_Use
5616 (N : Node_Id; Val : Boolean := True) is
5618 pragma Assert (False
5619 or else NT (N).Nkind = N_Attribute_Reference
5620 or else NT (N).Nkind = N_Expanded_Name
5621 or else NT (N).Nkind = N_Identifier);
5622 Set_Flag13 (N, Val);
5623 end Set_Redundant_Use;
5625 procedure Set_Renaming_Exception
5626 (N : Node_Id; Val : Node_Id) is
5628 pragma Assert (False
5629 or else NT (N).Nkind = N_Exception_Declaration);
5631 end Set_Renaming_Exception;
5633 procedure Set_Result_Definition
5634 (N : Node_Id; Val : Node_Id) is
5636 pragma Assert (False
5637 or else NT (N).Nkind = N_Access_Function_Definition
5638 or else NT (N).Nkind = N_Function_Specification);
5639 Set_Node4_With_Parent (N, Val);
5640 end Set_Result_Definition;
5642 procedure Set_Return_Object_Declarations
5643 (N : Node_Id; Val : List_Id) is
5645 pragma Assert (False
5646 or else NT (N).Nkind = N_Extended_Return_Statement);
5647 Set_List3_With_Parent (N, Val);
5648 end Set_Return_Object_Declarations;
5650 procedure Set_Return_Statement_Entity
5651 (N : Node_Id; Val : Node_Id) is
5653 pragma Assert (False
5654 or else NT (N).Nkind = N_Extended_Return_Statement
5655 or else NT (N).Nkind = N_Return_Statement);
5656 Set_Node5 (N, Val); -- semantic field, no parent set
5657 end Set_Return_Statement_Entity;
5659 procedure Set_Reverse_Present
5660 (N : Node_Id; Val : Boolean := True) is
5662 pragma Assert (False
5663 or else NT (N).Nkind = N_Iterator_Specification
5664 or else NT (N).Nkind = N_Loop_Parameter_Specification);
5665 Set_Flag15 (N, Val);
5666 end Set_Reverse_Present;
5668 procedure Set_Right_Opnd
5669 (N : Node_Id; Val : Node_Id) is
5671 pragma Assert (False
5672 or else NT (N).Nkind in N_Op
5673 or else NT (N).Nkind = N_And_Then
5674 or else NT (N).Nkind = N_In
5675 or else NT (N).Nkind = N_Not_In
5676 or else NT (N).Nkind = N_Or_Else);
5677 Set_Node3_With_Parent (N, Val);
5680 procedure Set_Rounded_Result
5681 (N : Node_Id; Val : Boolean := True) is
5683 pragma Assert (False
5684 or else NT (N).Nkind = N_Op_Divide
5685 or else NT (N).Nkind = N_Op_Multiply
5686 or else NT (N).Nkind = N_Type_Conversion);
5687 Set_Flag18 (N, Val);
5688 end Set_Rounded_Result;
5690 procedure Set_SCIL_Controlling_Tag
5691 (N : Node_Id; Val : Node_Id) is
5693 pragma Assert (False
5694 or else NT (N).Nkind = N_SCIL_Dispatching_Call);
5695 Set_Node5 (N, Val); -- semantic field, no parent set
5696 end Set_SCIL_Controlling_Tag;
5698 procedure Set_SCIL_Entity
5699 (N : Node_Id; Val : Node_Id) is
5701 pragma Assert (False
5702 or else NT (N).Nkind = N_SCIL_Dispatch_Table_Tag_Init
5703 or else NT (N).Nkind = N_SCIL_Dispatching_Call
5704 or else NT (N).Nkind = N_SCIL_Membership_Test);
5705 Set_Node4 (N, Val); -- semantic field, no parent set
5706 end Set_SCIL_Entity;
5708 procedure Set_SCIL_Tag_Value
5709 (N : Node_Id; Val : Node_Id) is
5711 pragma Assert (False
5712 or else NT (N).Nkind = N_SCIL_Membership_Test);
5713 Set_Node5 (N, Val); -- semantic field, no parent set
5714 end Set_SCIL_Tag_Value;
5716 procedure Set_SCIL_Target_Prim
5717 (N : Node_Id; Val : Node_Id) is
5719 pragma Assert (False
5720 or else NT (N).Nkind = N_SCIL_Dispatching_Call);
5721 Set_Node2 (N, Val); -- semantic field, no parent set
5722 end Set_SCIL_Target_Prim;
5725 (N : Node_Id; Val : Node_Id) is
5727 pragma Assert (False
5728 or else NT (N).Nkind = N_Defining_Character_Literal
5729 or else NT (N).Nkind = N_Defining_Identifier
5730 or else NT (N).Nkind = N_Defining_Operator_Symbol);
5731 Set_Node3 (N, Val); -- semantic field, no parent set
5734 procedure Set_Select_Alternatives
5735 (N : Node_Id; Val : List_Id) is
5737 pragma Assert (False
5738 or else NT (N).Nkind = N_Selective_Accept);
5739 Set_List1_With_Parent (N, Val);
5740 end Set_Select_Alternatives;
5742 procedure Set_Selector_Name
5743 (N : Node_Id; Val : Node_Id) is
5745 pragma Assert (False
5746 or else NT (N).Nkind = N_Expanded_Name
5747 or else NT (N).Nkind = N_Generic_Association
5748 or else NT (N).Nkind = N_Parameter_Association
5749 or else NT (N).Nkind = N_Selected_Component);
5750 Set_Node2_With_Parent (N, Val);
5751 end Set_Selector_Name;
5753 procedure Set_Selector_Names
5754 (N : Node_Id; Val : List_Id) is
5756 pragma Assert (False
5757 or else NT (N).Nkind = N_Discriminant_Association);
5758 Set_List1_With_Parent (N, Val);
5759 end Set_Selector_Names;
5761 procedure Set_Shift_Count_OK
5762 (N : Node_Id; Val : Boolean := True) is
5764 pragma Assert (False
5765 or else NT (N).Nkind = N_Op_Rotate_Left
5766 or else NT (N).Nkind = N_Op_Rotate_Right
5767 or else NT (N).Nkind = N_Op_Shift_Left
5768 or else NT (N).Nkind = N_Op_Shift_Right
5769 or else NT (N).Nkind = N_Op_Shift_Right_Arithmetic);
5771 end Set_Shift_Count_OK;
5773 procedure Set_Source_Type
5774 (N : Node_Id; Val : Entity_Id) is
5776 pragma Assert (False
5777 or else NT (N).Nkind = N_Validate_Unchecked_Conversion);
5778 Set_Node1 (N, Val); -- semantic field, no parent set
5779 end Set_Source_Type;
5781 procedure Set_Specification
5782 (N : Node_Id; Val : Node_Id) is
5784 pragma Assert (False
5785 or else NT (N).Nkind = N_Abstract_Subprogram_Declaration
5786 or else NT (N).Nkind = N_Formal_Abstract_Subprogram_Declaration
5787 or else NT (N).Nkind = N_Formal_Concrete_Subprogram_Declaration
5788 or else NT (N).Nkind = N_Generic_Package_Declaration
5789 or else NT (N).Nkind = N_Generic_Subprogram_Declaration
5790 or else NT (N).Nkind = N_Package_Declaration
5791 or else NT (N).Nkind = N_Parameterized_Expression
5792 or else NT (N).Nkind = N_Subprogram_Body
5793 or else NT (N).Nkind = N_Subprogram_Body_Stub
5794 or else NT (N).Nkind = N_Subprogram_Declaration
5795 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration);
5796 Set_Node1_With_Parent (N, Val);
5797 end Set_Specification;
5799 procedure Set_Split_PPC
5800 (N : Node_Id; Val : Boolean) is
5802 pragma Assert (False
5803 or else NT (N).Nkind = N_Aspect_Specification
5804 or else NT (N).Nkind = N_Pragma);
5805 Set_Flag17 (N, Val);
5808 procedure Set_Statements
5809 (N : Node_Id; Val : List_Id) is
5811 pragma Assert (False
5812 or else NT (N).Nkind = N_Abortable_Part
5813 or else NT (N).Nkind = N_Accept_Alternative
5814 or else NT (N).Nkind = N_Case_Statement_Alternative
5815 or else NT (N).Nkind = N_Delay_Alternative
5816 or else NT (N).Nkind = N_Entry_Call_Alternative
5817 or else NT (N).Nkind = N_Exception_Handler
5818 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements
5819 or else NT (N).Nkind = N_Loop_Statement
5820 or else NT (N).Nkind = N_Triggering_Alternative);
5821 Set_List3_With_Parent (N, Val);
5824 procedure Set_Static_Processing_OK
5825 (N : Node_Id; Val : Boolean) is
5827 pragma Assert (False
5828 or else NT (N).Nkind = N_Aggregate);
5830 end Set_Static_Processing_OK;
5832 procedure Set_Storage_Pool
5833 (N : Node_Id; Val : Node_Id) is
5835 pragma Assert (False
5836 or else NT (N).Nkind = N_Allocator
5837 or else NT (N).Nkind = N_Extended_Return_Statement
5838 or else NT (N).Nkind = N_Free_Statement
5839 or else NT (N).Nkind = N_Return_Statement);
5840 Set_Node1 (N, Val); -- semantic field, no parent set
5841 end Set_Storage_Pool;
5843 procedure Set_Strval
5844 (N : Node_Id; Val : String_Id) is
5846 pragma Assert (False
5847 or else NT (N).Nkind = N_Operator_Symbol
5848 or else NT (N).Nkind = N_String_Literal);
5852 procedure Set_Subtype_Indication
5853 (N : Node_Id; Val : Node_Id) is
5855 pragma Assert (False
5856 or else NT (N).Nkind = N_Access_To_Object_Definition
5857 or else NT (N).Nkind = N_Component_Definition
5858 or else NT (N).Nkind = N_Derived_Type_Definition
5859 or else NT (N).Nkind = N_Iterator_Specification
5860 or else NT (N).Nkind = N_Private_Extension_Declaration
5861 or else NT (N).Nkind = N_Subtype_Declaration);
5862 Set_Node5_With_Parent (N, Val);
5863 end Set_Subtype_Indication;
5865 procedure Set_Subtype_Mark
5866 (N : Node_Id; Val : Node_Id) is
5868 pragma Assert (False
5869 or else NT (N).Nkind = N_Access_Definition
5870 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
5871 or else NT (N).Nkind = N_Formal_Object_Declaration
5872 or else NT (N).Nkind = N_Object_Renaming_Declaration
5873 or else NT (N).Nkind = N_Qualified_Expression
5874 or else NT (N).Nkind = N_Subtype_Indication
5875 or else NT (N).Nkind = N_Type_Conversion
5876 or else NT (N).Nkind = N_Unchecked_Type_Conversion);
5877 Set_Node4_With_Parent (N, Val);
5878 end Set_Subtype_Mark;
5880 procedure Set_Subtype_Marks
5881 (N : Node_Id; Val : List_Id) is
5883 pragma Assert (False
5884 or else NT (N).Nkind = N_Unconstrained_Array_Definition
5885 or else NT (N).Nkind = N_Use_Type_Clause);
5886 Set_List2_With_Parent (N, Val);
5887 end Set_Subtype_Marks;
5889 procedure Set_Suppress_Loop_Warnings
5890 (N : Node_Id; Val : Boolean := True) is
5892 pragma Assert (False
5893 or else NT (N).Nkind = N_Loop_Statement);
5894 Set_Flag17 (N, Val);
5895 end Set_Suppress_Loop_Warnings;
5897 procedure Set_Synchronized_Present
5898 (N : Node_Id; Val : Boolean := True) is
5900 pragma Assert (False
5901 or else NT (N).Nkind = N_Derived_Type_Definition
5902 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
5903 or else NT (N).Nkind = N_Private_Extension_Declaration
5904 or else NT (N).Nkind = N_Record_Definition);
5906 end Set_Synchronized_Present;
5908 procedure Set_Tagged_Present
5909 (N : Node_Id; Val : Boolean := True) is
5911 pragma Assert (False
5912 or else NT (N).Nkind = N_Formal_Private_Type_Definition
5913 or else NT (N).Nkind = N_Incomplete_Type_Declaration
5914 or else NT (N).Nkind = N_Private_Type_Declaration
5915 or else NT (N).Nkind = N_Record_Definition);
5916 Set_Flag15 (N, Val);
5917 end Set_Tagged_Present;
5919 procedure Set_Target_Type
5920 (N : Node_Id; Val : Entity_Id) is
5922 pragma Assert (False
5923 or else NT (N).Nkind = N_Validate_Unchecked_Conversion);
5924 Set_Node2 (N, Val); -- semantic field, no parent set
5925 end Set_Target_Type;
5927 procedure Set_Task_Definition
5928 (N : Node_Id; Val : Node_Id) is
5930 pragma Assert (False
5931 or else NT (N).Nkind = N_Single_Task_Declaration
5932 or else NT (N).Nkind = N_Task_Type_Declaration);
5933 Set_Node3_With_Parent (N, Val);
5934 end Set_Task_Definition;
5936 procedure Set_Task_Present
5937 (N : Node_Id; Val : Boolean := True) is
5939 pragma Assert (False
5940 or else NT (N).Nkind = N_Derived_Type_Definition
5941 or else NT (N).Nkind = N_Record_Definition);
5943 end Set_Task_Present;
5945 procedure Set_Then_Actions
5946 (N : Node_Id; Val : List_Id) is
5948 pragma Assert (False
5949 or else NT (N).Nkind = N_Conditional_Expression);
5950 Set_List2 (N, Val); -- semantic field, no parent set
5951 end Set_Then_Actions;
5953 procedure Set_Then_Statements
5954 (N : Node_Id; Val : List_Id) is
5956 pragma Assert (False
5957 or else NT (N).Nkind = N_Elsif_Part
5958 or else NT (N).Nkind = N_If_Statement);
5959 Set_List2_With_Parent (N, Val);
5960 end Set_Then_Statements;
5962 procedure Set_Treat_Fixed_As_Integer
5963 (N : Node_Id; Val : Boolean := True) is
5965 pragma Assert (False
5966 or else NT (N).Nkind = N_Op_Divide
5967 or else NT (N).Nkind = N_Op_Mod
5968 or else NT (N).Nkind = N_Op_Multiply
5969 or else NT (N).Nkind = N_Op_Rem);
5970 Set_Flag14 (N, Val);
5971 end Set_Treat_Fixed_As_Integer;
5973 procedure Set_Triggering_Alternative
5974 (N : Node_Id; Val : Node_Id) is
5976 pragma Assert (False
5977 or else NT (N).Nkind = N_Asynchronous_Select);
5978 Set_Node1_With_Parent (N, Val);
5979 end Set_Triggering_Alternative;
5981 procedure Set_Triggering_Statement
5982 (N : Node_Id; Val : Node_Id) is
5984 pragma Assert (False
5985 or else NT (N).Nkind = N_Triggering_Alternative);
5986 Set_Node1_With_Parent (N, Val);
5987 end Set_Triggering_Statement;
5989 procedure Set_TSS_Elist
5990 (N : Node_Id; Val : Elist_Id) is
5992 pragma Assert (False
5993 or else NT (N).Nkind = N_Freeze_Entity);
5994 Set_Elist3 (N, Val); -- semantic field, no parent set
5997 procedure Set_Type_Definition
5998 (N : Node_Id; Val : Node_Id) is
6000 pragma Assert (False
6001 or else NT (N).Nkind = N_Full_Type_Declaration);
6002 Set_Node3_With_Parent (N, Val);
6003 end Set_Type_Definition;
6006 (N : Node_Id; Val : Node_Id) is
6008 pragma Assert (False
6009 or else NT (N).Nkind = N_Compilation_Unit);
6010 Set_Node2_With_Parent (N, Val);
6013 procedure Set_Unknown_Discriminants_Present
6014 (N : Node_Id; Val : Boolean := True) is
6016 pragma Assert (False
6017 or else NT (N).Nkind = N_Formal_Type_Declaration
6018 or else NT (N).Nkind = N_Incomplete_Type_Declaration
6019 or else NT (N).Nkind = N_Private_Extension_Declaration
6020 or else NT (N).Nkind = N_Private_Type_Declaration);
6021 Set_Flag13 (N, Val);
6022 end Set_Unknown_Discriminants_Present;
6024 procedure Set_Unreferenced_In_Spec
6025 (N : Node_Id; Val : Boolean := True) is
6027 pragma Assert (False
6028 or else NT (N).Nkind = N_With_Clause);
6030 end Set_Unreferenced_In_Spec;
6032 procedure Set_Variant_Part
6033 (N : Node_Id; Val : Node_Id) is
6035 pragma Assert (False
6036 or else NT (N).Nkind = N_Component_List);
6037 Set_Node4_With_Parent (N, Val);
6038 end Set_Variant_Part;
6040 procedure Set_Variants
6041 (N : Node_Id; Val : List_Id) is
6043 pragma Assert (False
6044 or else NT (N).Nkind = N_Variant_Part);
6045 Set_List1_With_Parent (N, Val);
6048 procedure Set_Visible_Declarations
6049 (N : Node_Id; Val : List_Id) is
6051 pragma Assert (False
6052 or else NT (N).Nkind = N_Package_Specification
6053 or else NT (N).Nkind = N_Protected_Definition
6054 or else NT (N).Nkind = N_Task_Definition);
6055 Set_List2_With_Parent (N, Val);
6056 end Set_Visible_Declarations;
6058 procedure Set_Was_Originally_Stub
6059 (N : Node_Id; Val : Boolean := True) is
6061 pragma Assert (False
6062 or else NT (N).Nkind = N_Package_Body
6063 or else NT (N).Nkind = N_Protected_Body
6064 or else NT (N).Nkind = N_Subprogram_Body
6065 or else NT (N).Nkind = N_Task_Body);
6066 Set_Flag13 (N, Val);
6067 end Set_Was_Originally_Stub;
6069 procedure Set_Withed_Body
6070 (N : Node_Id; Val : Node_Id) is
6072 pragma Assert (False
6073 or else NT (N).Nkind = N_With_Clause);
6075 end Set_Withed_Body;
6077 procedure Set_Zero_Cost_Handling
6078 (N : Node_Id; Val : Boolean := True) is
6080 pragma Assert (False
6081 or else NT (N).Nkind = N_Exception_Handler
6082 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements);
6084 end Set_Zero_Cost_Handling;
6086 -------------------------
6087 -- Iterator Procedures --
6088 -------------------------
6090 procedure Next_Entity (N : in out Node_Id) is
6092 N := Next_Entity (N);
6095 procedure Next_Named_Actual (N : in out Node_Id) is
6097 N := Next_Named_Actual (N);
6098 end Next_Named_Actual;
6100 procedure Next_Rep_Item (N : in out Node_Id) is
6102 N := Next_Rep_Item (N);
6105 procedure Next_Use_Clause (N : in out Node_Id) is
6107 N := Next_Use_Clause (N);
6108 end Next_Use_Clause;
6114 function End_Location (N : Node_Id) return Source_Ptr is
6115 L : constant Uint := End_Span (N);
6120 return Source_Ptr (Int (Sloc (N)) + UI_To_Int (L));
6124 --------------------
6125 -- Get_Pragma_Arg --
6126 --------------------
6128 function Get_Pragma_Arg (Arg : Node_Id) return Node_Id is
6130 if Nkind (Arg) = N_Pragma_Argument_Association then
6131 return Expression (Arg);
6137 ----------------------
6138 -- Set_End_Location --
6139 ----------------------
6141 procedure Set_End_Location (N : Node_Id; S : Source_Ptr) is
6144 UI_From_Int (Int (S) - Int (Sloc (N))));
6145 end Set_End_Location;
6154 V2 : Node_Kind) return Boolean
6157 return T = V1 or else
6165 V3 : Node_Kind) return Boolean
6168 return T = V1 or else
6178 V4 : Node_Kind) return Boolean
6181 return T = V1 or else
6193 V5 : Node_Kind) return Boolean
6196 return T = V1 or else
6210 V6 : Node_Kind) return Boolean
6213 return T = V1 or else
6229 V7 : Node_Kind) return Boolean
6232 return T = V1 or else
6250 V8 : Node_Kind) return Boolean
6253 return T = V1 or else
6273 V9 : Node_Kind) return Boolean
6276 return T = V1 or else
6291 function Pragma_Name (N : Node_Id) return Name_Id is
6293 return Chars (Pragma_Identifier (N));