1 ------------------------------------------------------------------------------
3 -- GNAT COMPILER COMPONENTS --
9 -- Copyright (C) 1992-2011, 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
210 or else NT (N).Nkind = N_Parameter_Specification);
215 (N : Node_Id) return Boolean is
218 or else NT (N).Nkind = N_Others_Choice);
223 (N : Node_Id) return Boolean is
226 or else NT (N).Nkind = N_Access_Definition
227 or else NT (N).Nkind = N_Access_To_Object_Definition
228 or else NT (N).Nkind = N_Quantified_Expression
229 or else NT (N).Nkind = N_Use_Type_Clause);
233 function Alternatives
234 (N : Node_Id) return List_Id is
237 or else NT (N).Nkind = N_Case_Expression
238 or else NT (N).Nkind = N_Case_Statement
239 or else NT (N).Nkind = N_In
240 or else NT (N).Nkind = N_Not_In);
244 function Ancestor_Part
245 (N : Node_Id) return Node_Id is
248 or else NT (N).Nkind = N_Extension_Aggregate);
252 function Array_Aggregate
253 (N : Node_Id) return Node_Id is
256 or else NT (N).Nkind = N_Enumeration_Representation_Clause);
260 function Aspect_Rep_Item
261 (N : Node_Id) return Node_Id is
264 or else NT (N).Nkind = N_Aspect_Specification);
268 function Assignment_OK
269 (N : Node_Id) return Boolean is
272 or else NT (N).Nkind = N_Object_Declaration
273 or else NT (N).Nkind in N_Subexpr);
277 function Associated_Node
278 (N : Node_Id) return Node_Id is
281 or else NT (N).Nkind in N_Has_Entity
282 or else NT (N).Nkind = N_Aggregate
283 or else NT (N).Nkind = N_Extension_Aggregate
284 or else NT (N).Nkind = N_Selected_Component);
289 (N : Node_Id) return Node_Id is
292 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements);
296 function Attribute_Name
297 (N : Node_Id) return Name_Id is
300 or else NT (N).Nkind = N_Attribute_Reference);
304 function Aux_Decls_Node
305 (N : Node_Id) return Node_Id is
308 or else NT (N).Nkind = N_Compilation_Unit);
312 function Backwards_OK
313 (N : Node_Id) return Boolean is
316 or else NT (N).Nkind = N_Assignment_Statement);
320 function Bad_Is_Detected
321 (N : Node_Id) return Boolean is
324 or else NT (N).Nkind = N_Subprogram_Body);
328 function Body_Required
329 (N : Node_Id) return Boolean is
332 or else NT (N).Nkind = N_Compilation_Unit);
336 function Body_To_Inline
337 (N : Node_Id) return Node_Id is
340 or else NT (N).Nkind = N_Subprogram_Declaration);
345 (N : Node_Id) return Boolean is
348 or else NT (N).Nkind = N_Component_Association
349 or else NT (N).Nkind = N_Formal_Abstract_Subprogram_Declaration
350 or else NT (N).Nkind = N_Formal_Concrete_Subprogram_Declaration
351 or else NT (N).Nkind = N_Formal_Package_Declaration
352 or else NT (N).Nkind = N_Generic_Association);
357 (N : Node_Id) return Boolean is
360 or else NT (N).Nkind = N_Extended_Return_Statement
361 or else NT (N).Nkind = N_Return_Statement);
365 function Char_Literal_Value
366 (N : Node_Id) return Uint is
369 or else NT (N).Nkind = N_Character_Literal);
371 end Char_Literal_Value;
374 (N : Node_Id) return Name_Id is
377 or else NT (N).Nkind in N_Has_Chars);
381 function Check_Address_Alignment
382 (N : Node_Id) return Boolean is
385 or else NT (N).Nkind = N_Attribute_Definition_Clause);
387 end Check_Address_Alignment;
389 function Choice_Parameter
390 (N : Node_Id) return Node_Id is
393 or else NT (N).Nkind = N_Exception_Handler);
395 end Choice_Parameter;
398 (N : Node_Id) return List_Id is
401 or else NT (N).Nkind = N_Component_Association);
405 function Class_Present
406 (N : Node_Id) return Boolean is
409 or else NT (N).Nkind = N_Aspect_Specification
410 or else NT (N).Nkind = N_Pragma);
414 function Comes_From_Extended_Return_Statement
415 (N : Node_Id) return Boolean is
418 or else NT (N).Nkind = N_Return_Statement);
420 end Comes_From_Extended_Return_Statement;
422 function Compile_Time_Known_Aggregate
423 (N : Node_Id) return Boolean is
426 or else NT (N).Nkind = N_Aggregate);
428 end Compile_Time_Known_Aggregate;
430 function Component_Associations
431 (N : Node_Id) return List_Id is
434 or else NT (N).Nkind = N_Aggregate
435 or else NT (N).Nkind = N_Extension_Aggregate);
437 end Component_Associations;
439 function Component_Clauses
440 (N : Node_Id) return List_Id is
443 or else NT (N).Nkind = N_Record_Representation_Clause);
445 end Component_Clauses;
447 function Component_Definition
448 (N : Node_Id) return Node_Id is
451 or else NT (N).Nkind = N_Component_Declaration
452 or else NT (N).Nkind = N_Constrained_Array_Definition
453 or else NT (N).Nkind = N_Unconstrained_Array_Definition);
455 end Component_Definition;
457 function Component_Items
458 (N : Node_Id) return List_Id is
461 or else NT (N).Nkind = N_Component_List);
465 function Component_List
466 (N : Node_Id) return Node_Id is
469 or else NT (N).Nkind = N_Record_Definition
470 or else NT (N).Nkind = N_Variant);
474 function Component_Name
475 (N : Node_Id) return Node_Id is
478 or else NT (N).Nkind = N_Component_Clause);
482 function Componentwise_Assignment
483 (N : Node_Id) return Boolean is
486 or else NT (N).Nkind = N_Assignment_Statement);
488 end Componentwise_Assignment;
491 (N : Node_Id) return Node_Id is
494 or else NT (N).Nkind = N_Accept_Alternative
495 or else NT (N).Nkind = N_Delay_Alternative
496 or else NT (N).Nkind = N_Elsif_Part
497 or else NT (N).Nkind = N_Entry_Body_Formal_Part
498 or else NT (N).Nkind = N_Exit_Statement
499 or else NT (N).Nkind = N_If_Statement
500 or else NT (N).Nkind = N_Iteration_Scheme
501 or else NT (N).Nkind = N_Quantified_Expression
502 or else NT (N).Nkind = N_Raise_Constraint_Error
503 or else NT (N).Nkind = N_Raise_Program_Error
504 or else NT (N).Nkind = N_Raise_Storage_Error
505 or else NT (N).Nkind = N_Terminate_Alternative);
509 function Condition_Actions
510 (N : Node_Id) return List_Id is
513 or else NT (N).Nkind = N_Elsif_Part
514 or else NT (N).Nkind = N_Iteration_Scheme);
516 end Condition_Actions;
518 function Config_Pragmas
519 (N : Node_Id) return List_Id is
522 or else NT (N).Nkind = N_Compilation_Unit_Aux);
526 function Constant_Present
527 (N : Node_Id) return Boolean is
530 or else NT (N).Nkind = N_Access_Definition
531 or else NT (N).Nkind = N_Access_To_Object_Definition
532 or else NT (N).Nkind = N_Object_Declaration);
534 end Constant_Present;
537 (N : Node_Id) return Node_Id is
540 or else NT (N).Nkind = N_Subtype_Indication);
545 (N : Node_Id) return List_Id is
548 or else NT (N).Nkind = N_Index_Or_Discriminant_Constraint);
552 function Context_Installed
553 (N : Node_Id) return Boolean is
556 or else NT (N).Nkind = N_With_Clause);
558 end Context_Installed;
560 function Context_Items
561 (N : Node_Id) return List_Id is
564 or else NT (N).Nkind = N_Compilation_Unit);
568 function Context_Pending
569 (N : Node_Id) return Boolean is
572 or else NT (N).Nkind = N_Compilation_Unit);
576 function Controlling_Argument
577 (N : Node_Id) return Node_Id is
580 or else NT (N).Nkind = N_Function_Call
581 or else NT (N).Nkind = N_Procedure_Call_Statement);
583 end Controlling_Argument;
585 function Conversion_OK
586 (N : Node_Id) return Boolean is
589 or else NT (N).Nkind = N_Type_Conversion);
593 function Corresponding_Body
594 (N : Node_Id) return Node_Id is
597 or else NT (N).Nkind = N_Entry_Declaration
598 or else NT (N).Nkind = N_Generic_Package_Declaration
599 or else NT (N).Nkind = N_Generic_Subprogram_Declaration
600 or else NT (N).Nkind = N_Package_Body_Stub
601 or else NT (N).Nkind = N_Package_Declaration
602 or else NT (N).Nkind = N_Protected_Body_Stub
603 or else NT (N).Nkind = N_Protected_Type_Declaration
604 or else NT (N).Nkind = N_Subprogram_Body_Stub
605 or else NT (N).Nkind = N_Subprogram_Declaration
606 or else NT (N).Nkind = N_Task_Body_Stub
607 or else NT (N).Nkind = N_Task_Type_Declaration);
609 end Corresponding_Body;
611 function Corresponding_Formal_Spec
612 (N : Node_Id) return Node_Id is
615 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration);
617 end Corresponding_Formal_Spec;
619 function Corresponding_Generic_Association
620 (N : Node_Id) return Node_Id is
623 or else NT (N).Nkind = N_Object_Declaration
624 or else NT (N).Nkind = N_Object_Renaming_Declaration);
626 end Corresponding_Generic_Association;
628 function Corresponding_Integer_Value
629 (N : Node_Id) return Uint is
632 or else NT (N).Nkind = N_Real_Literal);
634 end Corresponding_Integer_Value;
636 function Corresponding_Spec
637 (N : Node_Id) return Node_Id is
640 or else NT (N).Nkind = N_Package_Body
641 or else NT (N).Nkind = N_Protected_Body
642 or else NT (N).Nkind = N_Subprogram_Body
643 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration
644 or else NT (N).Nkind = N_Task_Body
645 or else NT (N).Nkind = N_With_Clause);
647 end Corresponding_Spec;
649 function Corresponding_Stub
650 (N : Node_Id) return Node_Id is
653 or else NT (N).Nkind = N_Subunit);
655 end Corresponding_Stub;
657 function Dcheck_Function
658 (N : Node_Id) return Entity_Id is
661 or else NT (N).Nkind = N_Variant);
665 function Declarations
666 (N : Node_Id) return List_Id is
669 or else NT (N).Nkind = N_Accept_Statement
670 or else NT (N).Nkind = N_Block_Statement
671 or else NT (N).Nkind = N_Compilation_Unit_Aux
672 or else NT (N).Nkind = N_Entry_Body
673 or else NT (N).Nkind = N_Package_Body
674 or else NT (N).Nkind = N_Protected_Body
675 or else NT (N).Nkind = N_Subprogram_Body
676 or else NT (N).Nkind = N_Task_Body);
680 function Default_Expression
681 (N : Node_Id) return Node_Id is
684 or else NT (N).Nkind = N_Formal_Object_Declaration
685 or else NT (N).Nkind = N_Parameter_Specification);
687 end Default_Expression;
689 function Default_Storage_Pool
690 (N : Node_Id) return Node_Id is
693 or else NT (N).Nkind = N_Compilation_Unit_Aux);
695 end Default_Storage_Pool;
697 function Default_Name
698 (N : Node_Id) return Node_Id is
701 or else NT (N).Nkind = N_Formal_Abstract_Subprogram_Declaration
702 or else NT (N).Nkind = N_Formal_Concrete_Subprogram_Declaration);
706 function Defining_Identifier
707 (N : Node_Id) return Entity_Id is
710 or else NT (N).Nkind = N_Component_Declaration
711 or else NT (N).Nkind = N_Defining_Program_Unit_Name
712 or else NT (N).Nkind = N_Discriminant_Specification
713 or else NT (N).Nkind = N_Entry_Body
714 or else NT (N).Nkind = N_Entry_Declaration
715 or else NT (N).Nkind = N_Entry_Index_Specification
716 or else NT (N).Nkind = N_Exception_Declaration
717 or else NT (N).Nkind = N_Exception_Renaming_Declaration
718 or else NT (N).Nkind = N_Formal_Object_Declaration
719 or else NT (N).Nkind = N_Formal_Package_Declaration
720 or else NT (N).Nkind = N_Formal_Type_Declaration
721 or else NT (N).Nkind = N_Full_Type_Declaration
722 or else NT (N).Nkind = N_Implicit_Label_Declaration
723 or else NT (N).Nkind = N_Incomplete_Type_Declaration
724 or else NT (N).Nkind = N_Iterator_Specification
725 or else NT (N).Nkind = N_Loop_Parameter_Specification
726 or else NT (N).Nkind = N_Number_Declaration
727 or else NT (N).Nkind = N_Object_Declaration
728 or else NT (N).Nkind = N_Object_Renaming_Declaration
729 or else NT (N).Nkind = N_Package_Body_Stub
730 or else NT (N).Nkind = N_Parameter_Specification
731 or else NT (N).Nkind = N_Private_Extension_Declaration
732 or else NT (N).Nkind = N_Private_Type_Declaration
733 or else NT (N).Nkind = N_Protected_Body
734 or else NT (N).Nkind = N_Protected_Body_Stub
735 or else NT (N).Nkind = N_Protected_Type_Declaration
736 or else NT (N).Nkind = N_Single_Protected_Declaration
737 or else NT (N).Nkind = N_Single_Task_Declaration
738 or else NT (N).Nkind = N_Subtype_Declaration
739 or else NT (N).Nkind = N_Task_Body
740 or else NT (N).Nkind = N_Task_Body_Stub
741 or else NT (N).Nkind = N_Task_Type_Declaration);
743 end Defining_Identifier;
745 function Defining_Unit_Name
746 (N : Node_Id) return Node_Id is
749 or else NT (N).Nkind = N_Function_Instantiation
750 or else NT (N).Nkind = N_Function_Specification
751 or else NT (N).Nkind = N_Generic_Function_Renaming_Declaration
752 or else NT (N).Nkind = N_Generic_Package_Renaming_Declaration
753 or else NT (N).Nkind = N_Generic_Procedure_Renaming_Declaration
754 or else NT (N).Nkind = N_Package_Body
755 or else NT (N).Nkind = N_Package_Instantiation
756 or else NT (N).Nkind = N_Package_Renaming_Declaration
757 or else NT (N).Nkind = N_Package_Specification
758 or else NT (N).Nkind = N_Procedure_Instantiation
759 or else NT (N).Nkind = N_Procedure_Specification);
761 end Defining_Unit_Name;
763 function Delay_Alternative
764 (N : Node_Id) return Node_Id is
767 or else NT (N).Nkind = N_Timed_Entry_Call);
769 end Delay_Alternative;
771 function Delay_Statement
772 (N : Node_Id) return Node_Id is
775 or else NT (N).Nkind = N_Delay_Alternative);
779 function Delta_Expression
780 (N : Node_Id) return Node_Id is
783 or else NT (N).Nkind = N_Decimal_Fixed_Point_Definition
784 or else NT (N).Nkind = N_Delta_Constraint
785 or else NT (N).Nkind = N_Ordinary_Fixed_Point_Definition);
787 end Delta_Expression;
789 function Digits_Expression
790 (N : Node_Id) return Node_Id is
793 or else NT (N).Nkind = N_Decimal_Fixed_Point_Definition
794 or else NT (N).Nkind = N_Digits_Constraint
795 or else NT (N).Nkind = N_Floating_Point_Definition);
797 end Digits_Expression;
799 function Discr_Check_Funcs_Built
800 (N : Node_Id) return Boolean is
803 or else NT (N).Nkind = N_Full_Type_Declaration);
805 end Discr_Check_Funcs_Built;
807 function Discrete_Choices
808 (N : Node_Id) return List_Id is
811 or else NT (N).Nkind = N_Case_Expression_Alternative
812 or else NT (N).Nkind = N_Case_Statement_Alternative
813 or else NT (N).Nkind = N_Variant);
815 end Discrete_Choices;
817 function Discrete_Range
818 (N : Node_Id) return Node_Id is
821 or else NT (N).Nkind = N_Slice);
825 function Discrete_Subtype_Definition
826 (N : Node_Id) return Node_Id is
829 or else NT (N).Nkind = N_Entry_Declaration
830 or else NT (N).Nkind = N_Entry_Index_Specification
831 or else NT (N).Nkind = N_Loop_Parameter_Specification);
833 end Discrete_Subtype_Definition;
835 function Discrete_Subtype_Definitions
836 (N : Node_Id) return List_Id is
839 or else NT (N).Nkind = N_Constrained_Array_Definition);
841 end Discrete_Subtype_Definitions;
843 function Discriminant_Specifications
844 (N : Node_Id) return List_Id is
847 or else NT (N).Nkind = N_Formal_Type_Declaration
848 or else NT (N).Nkind = N_Full_Type_Declaration
849 or else NT (N).Nkind = N_Incomplete_Type_Declaration
850 or else NT (N).Nkind = N_Private_Extension_Declaration
851 or else NT (N).Nkind = N_Private_Type_Declaration
852 or else NT (N).Nkind = N_Protected_Type_Declaration
853 or else NT (N).Nkind = N_Task_Type_Declaration);
855 end Discriminant_Specifications;
857 function Discriminant_Type
858 (N : Node_Id) return Node_Id is
861 or else NT (N).Nkind = N_Discriminant_Specification);
863 end Discriminant_Type;
865 function Do_Accessibility_Check
866 (N : Node_Id) return Boolean is
869 or else NT (N).Nkind = N_Parameter_Specification);
871 end Do_Accessibility_Check;
873 function Do_Discriminant_Check
874 (N : Node_Id) return Boolean is
877 or else NT (N).Nkind = N_Selected_Component);
879 end Do_Discriminant_Check;
881 function Do_Division_Check
882 (N : Node_Id) return Boolean is
885 or else NT (N).Nkind = N_Op_Divide
886 or else NT (N).Nkind = N_Op_Mod
887 or else NT (N).Nkind = N_Op_Rem);
889 end Do_Division_Check;
891 function Do_Length_Check
892 (N : Node_Id) return Boolean is
895 or else NT (N).Nkind = N_Assignment_Statement
896 or else NT (N).Nkind = N_Op_And
897 or else NT (N).Nkind = N_Op_Or
898 or else NT (N).Nkind = N_Op_Xor
899 or else NT (N).Nkind = N_Type_Conversion);
903 function Do_Overflow_Check
904 (N : Node_Id) return Boolean is
907 or else NT (N).Nkind in N_Op
908 or else NT (N).Nkind = N_Attribute_Reference
909 or else NT (N).Nkind = N_Type_Conversion);
911 end Do_Overflow_Check;
913 function Do_Range_Check
914 (N : Node_Id) return Boolean is
917 or else NT (N).Nkind in N_Subexpr);
921 function Do_Storage_Check
922 (N : Node_Id) return Boolean is
925 or else NT (N).Nkind = N_Allocator
926 or else NT (N).Nkind = N_Subprogram_Body);
928 end Do_Storage_Check;
930 function Do_Tag_Check
931 (N : Node_Id) return Boolean is
934 or else NT (N).Nkind = N_Assignment_Statement
935 or else NT (N).Nkind = N_Extended_Return_Statement
936 or else NT (N).Nkind = N_Function_Call
937 or else NT (N).Nkind = N_Procedure_Call_Statement
938 or else NT (N).Nkind = N_Return_Statement
939 or else NT (N).Nkind = N_Type_Conversion);
943 function Elaborate_All_Desirable
944 (N : Node_Id) return Boolean is
947 or else NT (N).Nkind = N_With_Clause);
949 end Elaborate_All_Desirable;
951 function Elaborate_All_Present
952 (N : Node_Id) return Boolean is
955 or else NT (N).Nkind = N_With_Clause);
957 end Elaborate_All_Present;
959 function Elaborate_Desirable
960 (N : Node_Id) return Boolean is
963 or else NT (N).Nkind = N_With_Clause);
965 end Elaborate_Desirable;
967 function Elaborate_Present
968 (N : Node_Id) return Boolean is
971 or else NT (N).Nkind = N_With_Clause);
973 end Elaborate_Present;
975 function Elaboration_Boolean
976 (N : Node_Id) return Node_Id is
979 or else NT (N).Nkind = N_Function_Specification
980 or else NT (N).Nkind = N_Procedure_Specification);
982 end Elaboration_Boolean;
984 function Else_Actions
985 (N : Node_Id) return List_Id is
988 or else NT (N).Nkind = N_Conditional_Expression);
992 function Else_Statements
993 (N : Node_Id) return List_Id is
996 or else NT (N).Nkind = N_Conditional_Entry_Call
997 or else NT (N).Nkind = N_If_Statement
998 or else NT (N).Nkind = N_Selective_Accept);
1000 end Else_Statements;
1002 function Elsif_Parts
1003 (N : Node_Id) return List_Id is
1005 pragma Assert (False
1006 or else NT (N).Nkind = N_If_Statement);
1010 function Enclosing_Variant
1011 (N : Node_Id) return Node_Id is
1013 pragma Assert (False
1014 or else NT (N).Nkind = N_Variant);
1016 end Enclosing_Variant;
1019 (N : Node_Id) return Node_Id is
1021 pragma Assert (False
1022 or else NT (N).Nkind = N_Enumeration_Type_Definition
1023 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements
1024 or else NT (N).Nkind = N_Loop_Statement
1025 or else NT (N).Nkind = N_Package_Specification
1026 or else NT (N).Nkind = N_Protected_Body
1027 or else NT (N).Nkind = N_Protected_Definition
1028 or else NT (N).Nkind = N_Record_Definition
1029 or else NT (N).Nkind = N_Task_Definition);
1034 (N : Node_Id) return Uint is
1036 pragma Assert (False
1037 or else NT (N).Nkind = N_Case_Statement
1038 or else NT (N).Nkind = N_If_Statement);
1043 (N : Node_Id) return Node_Id is
1045 pragma Assert (False
1046 or else NT (N).Nkind in N_Has_Entity
1047 or else NT (N).Nkind = N_Aspect_Specification
1048 or else NT (N).Nkind = N_Attribute_Definition_Clause
1049 or else NT (N).Nkind = N_Freeze_Entity);
1053 function Entity_Or_Associated_Node
1054 (N : Node_Id) return Node_Id is
1056 pragma Assert (False
1057 or else NT (N).Nkind in N_Has_Entity
1058 or else NT (N).Nkind = N_Freeze_Entity);
1060 end Entity_Or_Associated_Node;
1062 function Entry_Body_Formal_Part
1063 (N : Node_Id) return Node_Id is
1065 pragma Assert (False
1066 or else NT (N).Nkind = N_Entry_Body);
1068 end Entry_Body_Formal_Part;
1070 function Entry_Call_Alternative
1071 (N : Node_Id) return Node_Id is
1073 pragma Assert (False
1074 or else NT (N).Nkind = N_Conditional_Entry_Call
1075 or else NT (N).Nkind = N_Timed_Entry_Call);
1077 end Entry_Call_Alternative;
1079 function Entry_Call_Statement
1080 (N : Node_Id) return Node_Id is
1082 pragma Assert (False
1083 or else NT (N).Nkind = N_Entry_Call_Alternative);
1085 end Entry_Call_Statement;
1087 function Entry_Direct_Name
1088 (N : Node_Id) return Node_Id is
1090 pragma Assert (False
1091 or else NT (N).Nkind = N_Accept_Statement);
1093 end Entry_Direct_Name;
1095 function Entry_Index
1096 (N : Node_Id) return Node_Id is
1098 pragma Assert (False
1099 or else NT (N).Nkind = N_Accept_Statement);
1103 function Entry_Index_Specification
1104 (N : Node_Id) return Node_Id is
1106 pragma Assert (False
1107 or else NT (N).Nkind = N_Entry_Body_Formal_Part);
1109 end Entry_Index_Specification;
1112 (N : Node_Id) return Node_Id is
1114 pragma Assert (False
1115 or else NT (N).Nkind in N_Has_Etype);
1119 function Exception_Choices
1120 (N : Node_Id) return List_Id is
1122 pragma Assert (False
1123 or else NT (N).Nkind = N_Exception_Handler);
1125 end Exception_Choices;
1127 function Exception_Handlers
1128 (N : Node_Id) return List_Id is
1130 pragma Assert (False
1131 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements);
1133 end Exception_Handlers;
1135 function Exception_Junk
1136 (N : Node_Id) return Boolean is
1138 pragma Assert (False
1139 or else NT (N).Nkind = N_Block_Statement
1140 or else NT (N).Nkind = N_Goto_Statement
1141 or else NT (N).Nkind = N_Label
1142 or else NT (N).Nkind = N_Object_Declaration
1143 or else NT (N).Nkind = N_Subtype_Declaration);
1147 function Exception_Label
1148 (N : Node_Id) return Node_Id is
1150 pragma Assert (False
1151 or else NT (N).Nkind = N_Exception_Handler
1152 or else NT (N).Nkind = N_Push_Constraint_Error_Label
1153 or else NT (N).Nkind = N_Push_Program_Error_Label
1154 or else NT (N).Nkind = N_Push_Storage_Error_Label);
1156 end Exception_Label;
1158 function Expansion_Delayed
1159 (N : Node_Id) return Boolean is
1161 pragma Assert (False
1162 or else NT (N).Nkind = N_Aggregate
1163 or else NT (N).Nkind = N_Extension_Aggregate);
1165 end Expansion_Delayed;
1167 function Explicit_Actual_Parameter
1168 (N : Node_Id) return Node_Id is
1170 pragma Assert (False
1171 or else NT (N).Nkind = N_Parameter_Association);
1173 end Explicit_Actual_Parameter;
1175 function Explicit_Generic_Actual_Parameter
1176 (N : Node_Id) return Node_Id is
1178 pragma Assert (False
1179 or else NT (N).Nkind = N_Generic_Association);
1181 end Explicit_Generic_Actual_Parameter;
1184 (N : Node_Id) return Node_Id is
1186 pragma Assert (False
1187 or else NT (N).Nkind = N_Allocator
1188 or else NT (N).Nkind = N_Aspect_Specification
1189 or else NT (N).Nkind = N_Assignment_Statement
1190 or else NT (N).Nkind = N_At_Clause
1191 or else NT (N).Nkind = N_Attribute_Definition_Clause
1192 or else NT (N).Nkind = N_Case_Expression
1193 or else NT (N).Nkind = N_Case_Expression_Alternative
1194 or else NT (N).Nkind = N_Case_Statement
1195 or else NT (N).Nkind = N_Code_Statement
1196 or else NT (N).Nkind = N_Component_Association
1197 or else NT (N).Nkind = N_Component_Declaration
1198 or else NT (N).Nkind = N_Delay_Relative_Statement
1199 or else NT (N).Nkind = N_Delay_Until_Statement
1200 or else NT (N).Nkind = N_Discriminant_Association
1201 or else NT (N).Nkind = N_Discriminant_Specification
1202 or else NT (N).Nkind = N_Exception_Declaration
1203 or else NT (N).Nkind = N_Expression_Function
1204 or else NT (N).Nkind = N_Expression_With_Actions
1205 or else NT (N).Nkind = N_Free_Statement
1206 or else NT (N).Nkind = N_Mod_Clause
1207 or else NT (N).Nkind = N_Modular_Type_Definition
1208 or else NT (N).Nkind = N_Number_Declaration
1209 or else NT (N).Nkind = N_Object_Declaration
1210 or else NT (N).Nkind = N_Parameter_Specification
1211 or else NT (N).Nkind = N_Pragma_Argument_Association
1212 or else NT (N).Nkind = N_Qualified_Expression
1213 or else NT (N).Nkind = N_Raise_Statement
1214 or else NT (N).Nkind = N_Return_Statement
1215 or else NT (N).Nkind = N_Type_Conversion
1216 or else NT (N).Nkind = N_Unchecked_Expression
1217 or else NT (N).Nkind = N_Unchecked_Type_Conversion);
1221 function Expressions
1222 (N : Node_Id) return List_Id is
1224 pragma Assert (False
1225 or else NT (N).Nkind = N_Aggregate
1226 or else NT (N).Nkind = N_Attribute_Reference
1227 or else NT (N).Nkind = N_Conditional_Expression
1228 or else NT (N).Nkind = N_Extension_Aggregate
1229 or else NT (N).Nkind = N_Indexed_Component);
1234 (N : Node_Id) return Node_Id is
1236 pragma Assert (False
1237 or else NT (N).Nkind = N_Component_Clause);
1241 function First_Inlined_Subprogram
1242 (N : Node_Id) return Entity_Id is
1244 pragma Assert (False
1245 or else NT (N).Nkind = N_Compilation_Unit);
1247 end First_Inlined_Subprogram;
1250 (N : Node_Id) return Boolean is
1252 pragma Assert (False
1253 or else NT (N).Nkind = N_With_Clause);
1257 function First_Named_Actual
1258 (N : Node_Id) return Node_Id is
1260 pragma Assert (False
1261 or else NT (N).Nkind = N_Entry_Call_Statement
1262 or else NT (N).Nkind = N_Function_Call
1263 or else NT (N).Nkind = N_Procedure_Call_Statement);
1265 end First_Named_Actual;
1267 function First_Real_Statement
1268 (N : Node_Id) return Node_Id is
1270 pragma Assert (False
1271 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements);
1273 end First_Real_Statement;
1275 function First_Subtype_Link
1276 (N : Node_Id) return Entity_Id is
1278 pragma Assert (False
1279 or else NT (N).Nkind = N_Freeze_Entity);
1281 end First_Subtype_Link;
1283 function Float_Truncate
1284 (N : Node_Id) return Boolean is
1286 pragma Assert (False
1287 or else NT (N).Nkind = N_Type_Conversion);
1291 function Formal_Type_Definition
1292 (N : Node_Id) return Node_Id is
1294 pragma Assert (False
1295 or else NT (N).Nkind = N_Formal_Type_Declaration);
1297 end Formal_Type_Definition;
1299 function Forwards_OK
1300 (N : Node_Id) return Boolean is
1302 pragma Assert (False
1303 or else NT (N).Nkind = N_Assignment_Statement);
1307 function From_Aspect_Specification
1308 (N : Node_Id) return Boolean is
1310 pragma Assert (False
1311 or else NT (N).Nkind = N_Attribute_Definition_Clause
1312 or else NT (N).Nkind = N_Pragma);
1314 end From_Aspect_Specification;
1316 function From_At_End
1317 (N : Node_Id) return Boolean is
1319 pragma Assert (False
1320 or else NT (N).Nkind = N_Raise_Statement);
1324 function From_At_Mod
1325 (N : Node_Id) return Boolean is
1327 pragma Assert (False
1328 or else NT (N).Nkind = N_Attribute_Definition_Clause);
1332 function From_Default
1333 (N : Node_Id) return Boolean is
1335 pragma Assert (False
1336 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration);
1340 function From_Dynamic_Predicate
1341 (N : Node_Id) return Boolean is
1343 pragma Assert (False
1344 or else NT (N).Nkind = N_Pragma);
1346 end From_Dynamic_Predicate;
1348 function From_Static_Predicate
1349 (N : Node_Id) return Boolean is
1351 pragma Assert (False
1352 or else NT (N).Nkind = N_Pragma);
1354 end From_Static_Predicate;
1356 function Generic_Associations
1357 (N : Node_Id) return List_Id is
1359 pragma Assert (False
1360 or else NT (N).Nkind = N_Formal_Package_Declaration
1361 or else NT (N).Nkind = N_Function_Instantiation
1362 or else NT (N).Nkind = N_Package_Instantiation
1363 or else NT (N).Nkind = N_Procedure_Instantiation);
1365 end Generic_Associations;
1367 function Generic_Formal_Declarations
1368 (N : Node_Id) return List_Id is
1370 pragma Assert (False
1371 or else NT (N).Nkind = N_Generic_Package_Declaration
1372 or else NT (N).Nkind = N_Generic_Subprogram_Declaration);
1374 end Generic_Formal_Declarations;
1376 function Generic_Parent
1377 (N : Node_Id) return Node_Id is
1379 pragma Assert (False
1380 or else NT (N).Nkind = N_Function_Specification
1381 or else NT (N).Nkind = N_Package_Specification
1382 or else NT (N).Nkind = N_Procedure_Specification);
1386 function Generic_Parent_Type
1387 (N : Node_Id) return Node_Id is
1389 pragma Assert (False
1390 or else NT (N).Nkind = N_Subtype_Declaration);
1392 end Generic_Parent_Type;
1394 function Handled_Statement_Sequence
1395 (N : Node_Id) return Node_Id is
1397 pragma Assert (False
1398 or else NT (N).Nkind = N_Accept_Statement
1399 or else NT (N).Nkind = N_Block_Statement
1400 or else NT (N).Nkind = N_Entry_Body
1401 or else NT (N).Nkind = N_Extended_Return_Statement
1402 or else NT (N).Nkind = N_Package_Body
1403 or else NT (N).Nkind = N_Subprogram_Body
1404 or else NT (N).Nkind = N_Task_Body);
1406 end Handled_Statement_Sequence;
1408 function Handler_List_Entry
1409 (N : Node_Id) return Node_Id is
1411 pragma Assert (False
1412 or else NT (N).Nkind = N_Object_Declaration);
1414 end Handler_List_Entry;
1416 function Has_Created_Identifier
1417 (N : Node_Id) return Boolean is
1419 pragma Assert (False
1420 or else NT (N).Nkind = N_Block_Statement
1421 or else NT (N).Nkind = N_Loop_Statement);
1423 end Has_Created_Identifier;
1425 function Has_Dynamic_Length_Check
1426 (N : Node_Id) return Boolean is
1428 pragma Assert (False
1429 or else NT (N).Nkind in N_Subexpr);
1431 end Has_Dynamic_Length_Check;
1433 function Has_Dynamic_Range_Check
1434 (N : Node_Id) return Boolean is
1436 pragma Assert (False
1437 or else NT (N).Nkind = N_Subtype_Declaration
1438 or else NT (N).Nkind in N_Subexpr);
1440 end Has_Dynamic_Range_Check;
1442 function Has_Init_Expression
1443 (N : Node_Id) return Boolean is
1445 pragma Assert (False
1446 or else NT (N).Nkind = N_Object_Declaration);
1448 end Has_Init_Expression;
1450 function Has_Local_Raise
1451 (N : Node_Id) return Boolean is
1453 pragma Assert (False
1454 or else NT (N).Nkind = N_Exception_Handler);
1456 end Has_Local_Raise;
1458 function Has_No_Elaboration_Code
1459 (N : Node_Id) return Boolean is
1461 pragma Assert (False
1462 or else NT (N).Nkind = N_Compilation_Unit);
1464 end Has_No_Elaboration_Code;
1466 function Has_Pragma_CPU
1467 (N : Node_Id) return Boolean is
1469 pragma Assert (False
1470 or else NT (N).Nkind = N_Subprogram_Body
1471 or else NT (N).Nkind = N_Task_Definition);
1475 function Has_Pragma_Dispatching_Domain
1476 (N : Node_Id) return Boolean is
1478 pragma Assert (False
1479 or else NT (N).Nkind = N_Task_Definition);
1481 end Has_Pragma_Dispatching_Domain;
1483 function Has_Pragma_Priority
1484 (N : Node_Id) return Boolean is
1486 pragma Assert (False
1487 or else NT (N).Nkind = N_Protected_Definition
1488 or else NT (N).Nkind = N_Subprogram_Body
1489 or else NT (N).Nkind = N_Task_Definition);
1491 end Has_Pragma_Priority;
1493 function Has_Pragma_Suppress_All
1494 (N : Node_Id) return Boolean is
1496 pragma Assert (False
1497 or else NT (N).Nkind = N_Compilation_Unit);
1499 end Has_Pragma_Suppress_All;
1501 function Has_Private_View
1502 (N : Node_Id) return Boolean is
1504 pragma Assert (False
1505 or else NT (N).Nkind in N_Op
1506 or else NT (N).Nkind = N_Character_Literal
1507 or else NT (N).Nkind = N_Expanded_Name
1508 or else NT (N).Nkind = N_Identifier
1509 or else NT (N).Nkind = N_Operator_Symbol);
1511 end Has_Private_View;
1513 function Has_Relative_Deadline_Pragma
1514 (N : Node_Id) return Boolean is
1516 pragma Assert (False
1517 or else NT (N).Nkind = N_Subprogram_Body
1518 or else NT (N).Nkind = N_Task_Definition);
1520 end Has_Relative_Deadline_Pragma;
1522 function Has_Self_Reference
1523 (N : Node_Id) return Boolean is
1525 pragma Assert (False
1526 or else NT (N).Nkind = N_Aggregate
1527 or else NT (N).Nkind = N_Extension_Aggregate);
1529 end Has_Self_Reference;
1531 function Has_Storage_Size_Pragma
1532 (N : Node_Id) return Boolean is
1534 pragma Assert (False
1535 or else NT (N).Nkind = N_Task_Definition);
1537 end Has_Storage_Size_Pragma;
1539 function Has_Task_Info_Pragma
1540 (N : Node_Id) return Boolean is
1542 pragma Assert (False
1543 or else NT (N).Nkind = N_Task_Definition);
1545 end Has_Task_Info_Pragma;
1547 function Has_Task_Name_Pragma
1548 (N : Node_Id) return Boolean is
1550 pragma Assert (False
1551 or else NT (N).Nkind = N_Task_Definition);
1553 end Has_Task_Name_Pragma;
1555 function Has_Wide_Character
1556 (N : Node_Id) return Boolean is
1558 pragma Assert (False
1559 or else NT (N).Nkind = N_String_Literal);
1561 end Has_Wide_Character;
1563 function Has_Wide_Wide_Character
1564 (N : Node_Id) return Boolean is
1566 pragma Assert (False
1567 or else NT (N).Nkind = N_String_Literal);
1569 end Has_Wide_Wide_Character;
1571 function Hidden_By_Use_Clause
1572 (N : Node_Id) return Elist_Id is
1574 pragma Assert (False
1575 or else NT (N).Nkind = N_Use_Package_Clause
1576 or else NT (N).Nkind = N_Use_Type_Clause);
1578 end Hidden_By_Use_Clause;
1581 (N : Node_Id) return Node_Id is
1583 pragma Assert (False
1584 or else NT (N).Nkind = N_Range
1585 or else NT (N).Nkind = N_Real_Range_Specification
1586 or else NT (N).Nkind = N_Signed_Integer_Type_Definition);
1591 (N : Node_Id) return Node_Id is
1593 pragma Assert (False
1594 or else NT (N).Nkind = N_Aspect_Specification
1595 or else NT (N).Nkind = N_At_Clause
1596 or else NT (N).Nkind = N_Block_Statement
1597 or else NT (N).Nkind = N_Designator
1598 or else NT (N).Nkind = N_Enumeration_Representation_Clause
1599 or else NT (N).Nkind = N_Label
1600 or else NT (N).Nkind = N_Loop_Statement
1601 or else NT (N).Nkind = N_Record_Representation_Clause
1602 or else NT (N).Nkind = N_Subprogram_Info);
1606 function Implicit_With
1607 (N : Node_Id) return Boolean is
1609 pragma Assert (False
1610 or else NT (N).Nkind = N_With_Clause);
1614 function Interface_List
1615 (N : Node_Id) return List_Id is
1617 pragma Assert (False
1618 or else NT (N).Nkind = N_Derived_Type_Definition
1619 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
1620 or else NT (N).Nkind = N_Private_Extension_Declaration
1621 or else NT (N).Nkind = N_Protected_Type_Declaration
1622 or else NT (N).Nkind = N_Record_Definition
1623 or else NT (N).Nkind = N_Single_Protected_Declaration
1624 or else NT (N).Nkind = N_Single_Task_Declaration
1625 or else NT (N).Nkind = N_Task_Type_Declaration);
1629 function Interface_Present
1630 (N : Node_Id) return Boolean is
1632 pragma Assert (False
1633 or else NT (N).Nkind = N_Derived_Type_Definition
1634 or else NT (N).Nkind = N_Record_Definition);
1636 end Interface_Present;
1638 function Import_Interface_Present
1639 (N : Node_Id) return Boolean is
1641 pragma Assert (False
1642 or else NT (N).Nkind = N_Pragma);
1644 end Import_Interface_Present;
1647 (N : Node_Id) return Boolean is
1649 pragma Assert (False
1650 or else NT (N).Nkind = N_Formal_Object_Declaration
1651 or else NT (N).Nkind = N_Parameter_Specification);
1655 function Includes_Infinities
1656 (N : Node_Id) return Boolean is
1658 pragma Assert (False
1659 or else NT (N).Nkind = N_Range);
1661 end Includes_Infinities;
1663 function Inherited_Discriminant
1664 (N : Node_Id) return Boolean is
1666 pragma Assert (False
1667 or else NT (N).Nkind = N_Component_Association);
1669 end Inherited_Discriminant;
1671 function Instance_Spec
1672 (N : Node_Id) return Node_Id is
1674 pragma Assert (False
1675 or else NT (N).Nkind = N_Formal_Package_Declaration
1676 or else NT (N).Nkind = N_Function_Instantiation
1677 or else NT (N).Nkind = N_Package_Instantiation
1678 or else NT (N).Nkind = N_Procedure_Instantiation);
1683 (N : Node_Id) return Uint is
1685 pragma Assert (False
1686 or else NT (N).Nkind = N_Integer_Literal);
1690 function Is_Accessibility_Actual
1691 (N : Node_Id) return Boolean is
1693 pragma Assert (False
1694 or else NT (N).Nkind = N_Parameter_Association);
1696 end Is_Accessibility_Actual;
1698 function Is_Asynchronous_Call_Block
1699 (N : Node_Id) return Boolean is
1701 pragma Assert (False
1702 or else NT (N).Nkind = N_Block_Statement);
1704 end Is_Asynchronous_Call_Block;
1706 function Is_Boolean_Aspect
1707 (N : Node_Id) return Boolean is
1709 pragma Assert (False
1710 or else NT (N).Nkind = N_Aspect_Specification);
1712 end Is_Boolean_Aspect;
1714 function Is_Component_Left_Opnd
1715 (N : Node_Id) return Boolean is
1717 pragma Assert (False
1718 or else NT (N).Nkind = N_Op_Concat);
1720 end Is_Component_Left_Opnd;
1722 function Is_Component_Right_Opnd
1723 (N : Node_Id) return Boolean is
1725 pragma Assert (False
1726 or else NT (N).Nkind = N_Op_Concat);
1728 end Is_Component_Right_Opnd;
1730 function Is_Controlling_Actual
1731 (N : Node_Id) return Boolean is
1733 pragma Assert (False
1734 or else NT (N).Nkind in N_Subexpr);
1736 end Is_Controlling_Actual;
1738 function Is_Delayed_Aspect
1739 (N : Node_Id) return Boolean is
1741 pragma Assert (False
1742 or else NT (N).Nkind = N_Aspect_Specification
1743 or else NT (N).Nkind = N_Attribute_Definition_Clause
1744 or else NT (N).Nkind = N_Pragma);
1746 end Is_Delayed_Aspect;
1748 function Is_Dynamic_Coextension
1749 (N : Node_Id) return Boolean is
1751 pragma Assert (False
1752 or else NT (N).Nkind = N_Allocator);
1754 end Is_Dynamic_Coextension;
1757 (N : Node_Id) return Boolean is
1759 pragma Assert (False
1760 or else NT (N).Nkind = N_Conditional_Expression);
1764 function Is_Entry_Barrier_Function
1765 (N : Node_Id) return Boolean is
1767 pragma Assert (False
1768 or else NT (N).Nkind = N_Subprogram_Body);
1770 end Is_Entry_Barrier_Function;
1772 function Is_Expanded_Build_In_Place_Call
1773 (N : Node_Id) return Boolean is
1775 pragma Assert (False
1776 or else NT (N).Nkind = N_Function_Call);
1778 end Is_Expanded_Build_In_Place_Call;
1780 function Is_Folded_In_Parser
1781 (N : Node_Id) return Boolean is
1783 pragma Assert (False
1784 or else NT (N).Nkind = N_String_Literal);
1786 end Is_Folded_In_Parser;
1788 function Is_In_Discriminant_Check
1789 (N : Node_Id) return Boolean is
1791 pragma Assert (False
1792 or else NT (N).Nkind = N_Selected_Component);
1794 end Is_In_Discriminant_Check;
1796 function Is_Machine_Number
1797 (N : Node_Id) return Boolean is
1799 pragma Assert (False
1800 or else NT (N).Nkind = N_Real_Literal);
1802 end Is_Machine_Number;
1804 function Is_Null_Loop
1805 (N : Node_Id) return Boolean is
1807 pragma Assert (False
1808 or else NT (N).Nkind = N_Loop_Statement);
1812 function Is_Overloaded
1813 (N : Node_Id) return Boolean is
1815 pragma Assert (False
1816 or else NT (N).Nkind in N_Subexpr);
1820 function Is_Power_Of_2_For_Shift
1821 (N : Node_Id) return Boolean is
1823 pragma Assert (False
1824 or else NT (N).Nkind = N_Op_Expon);
1826 end Is_Power_Of_2_For_Shift;
1828 function Is_Protected_Subprogram_Body
1829 (N : Node_Id) return Boolean is
1831 pragma Assert (False
1832 or else NT (N).Nkind = N_Subprogram_Body);
1834 end Is_Protected_Subprogram_Body;
1836 function Is_Static_Coextension
1837 (N : Node_Id) return Boolean is
1839 pragma Assert (False
1840 or else NT (N).Nkind = N_Allocator);
1842 end Is_Static_Coextension;
1844 function Is_Static_Expression
1845 (N : Node_Id) return Boolean is
1847 pragma Assert (False
1848 or else NT (N).Nkind in N_Subexpr);
1850 end Is_Static_Expression;
1852 function Is_Subprogram_Descriptor
1853 (N : Node_Id) return Boolean is
1855 pragma Assert (False
1856 or else NT (N).Nkind = N_Object_Declaration);
1858 end Is_Subprogram_Descriptor;
1860 function Is_Task_Allocation_Block
1861 (N : Node_Id) return Boolean is
1863 pragma Assert (False
1864 or else NT (N).Nkind = N_Block_Statement);
1866 end Is_Task_Allocation_Block;
1868 function Is_Task_Master
1869 (N : Node_Id) return Boolean is
1871 pragma Assert (False
1872 or else NT (N).Nkind = N_Block_Statement
1873 or else NT (N).Nkind = N_Subprogram_Body
1874 or else NT (N).Nkind = N_Task_Body);
1878 function Iteration_Scheme
1879 (N : Node_Id) return Node_Id is
1881 pragma Assert (False
1882 or else NT (N).Nkind = N_Loop_Statement);
1884 end Iteration_Scheme;
1886 function Iterator_Specification
1887 (N : Node_Id) return Node_Id is
1889 pragma Assert (False
1890 or else NT (N).Nkind = N_Iteration_Scheme
1891 or else NT (N).Nkind = N_Quantified_Expression);
1893 end Iterator_Specification;
1896 (N : Node_Id) return Node_Id is
1898 pragma Assert (False
1899 or else NT (N).Nkind = N_Itype_Reference);
1903 function Kill_Range_Check
1904 (N : Node_Id) return Boolean is
1906 pragma Assert (False
1907 or else NT (N).Nkind = N_Unchecked_Type_Conversion);
1909 end Kill_Range_Check;
1911 function Label_Construct
1912 (N : Node_Id) return Node_Id is
1914 pragma Assert (False
1915 or else NT (N).Nkind = N_Implicit_Label_Declaration);
1917 end Label_Construct;
1920 (N : Node_Id) return Node_Id is
1922 pragma Assert (False
1923 or else NT (N).Nkind = N_Component_Clause);
1928 (N : Node_Id) return Boolean is
1930 pragma Assert (False
1931 or else NT (N).Nkind = N_With_Clause);
1936 (N : Node_Id) return Node_Id is
1938 pragma Assert (False
1939 or else NT (N).Nkind = N_And_Then
1940 or else NT (N).Nkind = N_In
1941 or else NT (N).Nkind = N_Not_In
1942 or else NT (N).Nkind = N_Or_Else
1943 or else NT (N).Nkind in N_Binary_Op);
1947 function Library_Unit
1948 (N : Node_Id) return Node_Id is
1950 pragma Assert (False
1951 or else NT (N).Nkind = N_Compilation_Unit
1952 or else NT (N).Nkind = N_Package_Body_Stub
1953 or else NT (N).Nkind = N_Protected_Body_Stub
1954 or else NT (N).Nkind = N_Subprogram_Body_Stub
1955 or else NT (N).Nkind = N_Task_Body_Stub
1956 or else NT (N).Nkind = N_With_Clause);
1960 function Limited_View_Installed
1961 (N : Node_Id) return Boolean is
1963 pragma Assert (False
1964 or else NT (N).Nkind = N_Package_Specification
1965 or else NT (N).Nkind = N_With_Clause);
1967 end Limited_View_Installed;
1969 function Limited_Present
1970 (N : Node_Id) return Boolean is
1972 pragma Assert (False
1973 or else NT (N).Nkind = N_Derived_Type_Definition
1974 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
1975 or else NT (N).Nkind = N_Formal_Private_Type_Definition
1976 or else NT (N).Nkind = N_Private_Extension_Declaration
1977 or else NT (N).Nkind = N_Private_Type_Declaration
1978 or else NT (N).Nkind = N_Record_Definition
1979 or else NT (N).Nkind = N_With_Clause);
1981 end Limited_Present;
1984 (N : Node_Id) return List_Id is
1986 pragma Assert (False
1987 or else NT (N).Nkind = N_Enumeration_Type_Definition);
1991 function Local_Raise_Not_OK
1992 (N : Node_Id) return Boolean is
1994 pragma Assert (False
1995 or else NT (N).Nkind = N_Exception_Handler);
1997 end Local_Raise_Not_OK;
1999 function Local_Raise_Statements
2000 (N : Node_Id) return Elist_Id is
2002 pragma Assert (False
2003 or else NT (N).Nkind = N_Exception_Handler);
2005 end Local_Raise_Statements;
2007 function Loop_Actions
2008 (N : Node_Id) return List_Id is
2010 pragma Assert (False
2011 or else NT (N).Nkind = N_Component_Association);
2015 function Loop_Parameter_Specification
2016 (N : Node_Id) return Node_Id is
2018 pragma Assert (False
2019 or else NT (N).Nkind = N_Iteration_Scheme
2020 or else NT (N).Nkind = N_Quantified_Expression);
2022 end Loop_Parameter_Specification;
2025 (N : Node_Id) return Node_Id is
2027 pragma Assert (False
2028 or else NT (N).Nkind = N_Range
2029 or else NT (N).Nkind = N_Real_Range_Specification
2030 or else NT (N).Nkind = N_Signed_Integer_Type_Definition);
2035 (N : Node_Id) return Node_Id is
2037 pragma Assert (False
2038 or else NT (N).Nkind = N_Record_Representation_Clause);
2043 (N : Node_Id) return Boolean is
2045 pragma Assert (False
2046 or else NT (N).Nkind = N_Component_Declaration
2047 or else NT (N).Nkind = N_Discriminant_Specification
2048 or else NT (N).Nkind = N_Exception_Declaration
2049 or else NT (N).Nkind = N_Formal_Object_Declaration
2050 or else NT (N).Nkind = N_Number_Declaration
2051 or else NT (N).Nkind = N_Object_Declaration
2052 or else NT (N).Nkind = N_Parameter_Specification);
2056 function Must_Be_Byte_Aligned
2057 (N : Node_Id) return Boolean is
2059 pragma Assert (False
2060 or else NT (N).Nkind = N_Attribute_Reference);
2062 end Must_Be_Byte_Aligned;
2064 function Must_Not_Freeze
2065 (N : Node_Id) return Boolean is
2067 pragma Assert (False
2068 or else NT (N).Nkind = N_Subtype_Indication
2069 or else NT (N).Nkind in N_Subexpr);
2071 end Must_Not_Freeze;
2073 function Must_Not_Override
2074 (N : Node_Id) return Boolean is
2076 pragma Assert (False
2077 or else NT (N).Nkind = N_Entry_Declaration
2078 or else NT (N).Nkind = N_Function_Instantiation
2079 or else NT (N).Nkind = N_Function_Specification
2080 or else NT (N).Nkind = N_Procedure_Instantiation
2081 or else NT (N).Nkind = N_Procedure_Specification);
2083 end Must_Not_Override;
2085 function Must_Override
2086 (N : Node_Id) return Boolean is
2088 pragma Assert (False
2089 or else NT (N).Nkind = N_Entry_Declaration
2090 or else NT (N).Nkind = N_Function_Instantiation
2091 or else NT (N).Nkind = N_Function_Specification
2092 or else NT (N).Nkind = N_Procedure_Instantiation
2093 or else NT (N).Nkind = N_Procedure_Specification);
2098 (N : Node_Id) return Node_Id is
2100 pragma Assert (False
2101 or else NT (N).Nkind = N_Assignment_Statement
2102 or else NT (N).Nkind = N_Attribute_Definition_Clause
2103 or else NT (N).Nkind = N_Defining_Program_Unit_Name
2104 or else NT (N).Nkind = N_Designator
2105 or else NT (N).Nkind = N_Entry_Call_Statement
2106 or else NT (N).Nkind = N_Exception_Renaming_Declaration
2107 or else NT (N).Nkind = N_Exit_Statement
2108 or else NT (N).Nkind = N_Formal_Package_Declaration
2109 or else NT (N).Nkind = N_Function_Call
2110 or else NT (N).Nkind = N_Function_Instantiation
2111 or else NT (N).Nkind = N_Generic_Function_Renaming_Declaration
2112 or else NT (N).Nkind = N_Generic_Package_Renaming_Declaration
2113 or else NT (N).Nkind = N_Generic_Procedure_Renaming_Declaration
2114 or else NT (N).Nkind = N_Goto_Statement
2115 or else NT (N).Nkind = N_Iterator_Specification
2116 or else NT (N).Nkind = N_Object_Renaming_Declaration
2117 or else NT (N).Nkind = N_Package_Instantiation
2118 or else NT (N).Nkind = N_Package_Renaming_Declaration
2119 or else NT (N).Nkind = N_Procedure_Call_Statement
2120 or else NT (N).Nkind = N_Procedure_Instantiation
2121 or else NT (N).Nkind = N_Raise_Statement
2122 or else NT (N).Nkind = N_Requeue_Statement
2123 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration
2124 or else NT (N).Nkind = N_Subunit
2125 or else NT (N).Nkind = N_Variant_Part
2126 or else NT (N).Nkind = N_With_Clause);
2131 (N : Node_Id) return List_Id is
2133 pragma Assert (False
2134 or else NT (N).Nkind = N_Abort_Statement
2135 or else NT (N).Nkind = N_Use_Package_Clause);
2139 function Next_Entity
2140 (N : Node_Id) return Node_Id is
2142 pragma Assert (False
2143 or else NT (N).Nkind = N_Defining_Character_Literal
2144 or else NT (N).Nkind = N_Defining_Identifier
2145 or else NT (N).Nkind = N_Defining_Operator_Symbol);
2149 function Next_Exit_Statement
2150 (N : Node_Id) return Node_Id is
2152 pragma Assert (False
2153 or else NT (N).Nkind = N_Exit_Statement);
2155 end Next_Exit_Statement;
2157 function Next_Implicit_With
2158 (N : Node_Id) return Node_Id is
2160 pragma Assert (False
2161 or else NT (N).Nkind = N_With_Clause);
2163 end Next_Implicit_With;
2165 function Next_Named_Actual
2166 (N : Node_Id) return Node_Id is
2168 pragma Assert (False
2169 or else NT (N).Nkind = N_Parameter_Association);
2171 end Next_Named_Actual;
2173 function Next_Pragma
2174 (N : Node_Id) return Node_Id is
2176 pragma Assert (False
2177 or else NT (N).Nkind = N_Pragma);
2181 function Next_Rep_Item
2182 (N : Node_Id) return Node_Id is
2184 pragma Assert (False
2185 or else NT (N).Nkind = N_Aspect_Specification
2186 or else NT (N).Nkind = N_Attribute_Definition_Clause
2187 or else NT (N).Nkind = N_Enumeration_Representation_Clause
2188 or else NT (N).Nkind = N_Pragma
2189 or else NT (N).Nkind = N_Record_Representation_Clause);
2193 function Next_Use_Clause
2194 (N : Node_Id) return Node_Id is
2196 pragma Assert (False
2197 or else NT (N).Nkind = N_Use_Package_Clause
2198 or else NT (N).Nkind = N_Use_Type_Clause);
2200 end Next_Use_Clause;
2202 function No_Ctrl_Actions
2203 (N : Node_Id) return Boolean is
2205 pragma Assert (False
2206 or else NT (N).Nkind = N_Assignment_Statement);
2208 end No_Ctrl_Actions;
2210 function No_Elaboration_Check
2211 (N : Node_Id) return Boolean is
2213 pragma Assert (False
2214 or else NT (N).Nkind = N_Function_Call
2215 or else NT (N).Nkind = N_Procedure_Call_Statement);
2217 end No_Elaboration_Check;
2219 function No_Entities_Ref_In_Spec
2220 (N : Node_Id) return Boolean is
2222 pragma Assert (False
2223 or else NT (N).Nkind = N_With_Clause);
2225 end No_Entities_Ref_In_Spec;
2227 function No_Initialization
2228 (N : Node_Id) return Boolean is
2230 pragma Assert (False
2231 or else NT (N).Nkind = N_Allocator
2232 or else NT (N).Nkind = N_Object_Declaration);
2234 end No_Initialization;
2236 function No_Truncation
2237 (N : Node_Id) return Boolean is
2239 pragma Assert (False
2240 or else NT (N).Nkind = N_Unchecked_Type_Conversion);
2244 function Null_Present
2245 (N : Node_Id) return Boolean is
2247 pragma Assert (False
2248 or else NT (N).Nkind = N_Component_List
2249 or else NT (N).Nkind = N_Procedure_Specification
2250 or else NT (N).Nkind = N_Record_Definition);
2254 function Null_Exclusion_Present
2255 (N : Node_Id) return Boolean is
2257 pragma Assert (False
2258 or else NT (N).Nkind = N_Access_Definition
2259 or else NT (N).Nkind = N_Access_Function_Definition
2260 or else NT (N).Nkind = N_Access_Procedure_Definition
2261 or else NT (N).Nkind = N_Access_To_Object_Definition
2262 or else NT (N).Nkind = N_Allocator
2263 or else NT (N).Nkind = N_Component_Definition
2264 or else NT (N).Nkind = N_Derived_Type_Definition
2265 or else NT (N).Nkind = N_Discriminant_Specification
2266 or else NT (N).Nkind = N_Formal_Object_Declaration
2267 or else NT (N).Nkind = N_Function_Specification
2268 or else NT (N).Nkind = N_Object_Declaration
2269 or else NT (N).Nkind = N_Object_Renaming_Declaration
2270 or else NT (N).Nkind = N_Parameter_Specification
2271 or else NT (N).Nkind = N_Subtype_Declaration);
2273 end Null_Exclusion_Present;
2275 function Null_Exclusion_In_Return_Present
2276 (N : Node_Id) return Boolean is
2278 pragma Assert (False
2279 or else NT (N).Nkind = N_Access_Function_Definition);
2281 end Null_Exclusion_In_Return_Present;
2283 function Null_Record_Present
2284 (N : Node_Id) return Boolean is
2286 pragma Assert (False
2287 or else NT (N).Nkind = N_Aggregate
2288 or else NT (N).Nkind = N_Extension_Aggregate);
2290 end Null_Record_Present;
2292 function Object_Definition
2293 (N : Node_Id) return Node_Id is
2295 pragma Assert (False
2296 or else NT (N).Nkind = N_Object_Declaration);
2298 end Object_Definition;
2301 (N : Node_Id) return Boolean is
2303 pragma Assert (False
2304 or else NT (N).Nkind = N_Iterator_Specification);
2308 function Original_Discriminant
2309 (N : Node_Id) return Node_Id is
2311 pragma Assert (False
2312 or else NT (N).Nkind = N_Identifier);
2314 end Original_Discriminant;
2316 function Original_Entity
2317 (N : Node_Id) return Entity_Id is
2319 pragma Assert (False
2320 or else NT (N).Nkind = N_Integer_Literal
2321 or else NT (N).Nkind = N_Real_Literal);
2323 end Original_Entity;
2325 function Others_Discrete_Choices
2326 (N : Node_Id) return List_Id is
2328 pragma Assert (False
2329 or else NT (N).Nkind = N_Others_Choice);
2331 end Others_Discrete_Choices;
2333 function Out_Present
2334 (N : Node_Id) return Boolean is
2336 pragma Assert (False
2337 or else NT (N).Nkind = N_Formal_Object_Declaration
2338 or else NT (N).Nkind = N_Parameter_Specification);
2342 function Parameter_Associations
2343 (N : Node_Id) return List_Id is
2345 pragma Assert (False
2346 or else NT (N).Nkind = N_Entry_Call_Statement
2347 or else NT (N).Nkind = N_Function_Call
2348 or else NT (N).Nkind = N_Procedure_Call_Statement);
2350 end Parameter_Associations;
2352 function Parameter_List_Truncated
2353 (N : Node_Id) return Boolean is
2355 pragma Assert (False
2356 or else NT (N).Nkind = N_Function_Call
2357 or else NT (N).Nkind = N_Procedure_Call_Statement);
2359 end Parameter_List_Truncated;
2361 function Parameter_Specifications
2362 (N : Node_Id) return List_Id is
2364 pragma Assert (False
2365 or else NT (N).Nkind = N_Accept_Statement
2366 or else NT (N).Nkind = N_Access_Function_Definition
2367 or else NT (N).Nkind = N_Access_Procedure_Definition
2368 or else NT (N).Nkind = N_Entry_Body_Formal_Part
2369 or else NT (N).Nkind = N_Entry_Declaration
2370 or else NT (N).Nkind = N_Function_Specification
2371 or else NT (N).Nkind = N_Procedure_Specification);
2373 end Parameter_Specifications;
2375 function Parameter_Type
2376 (N : Node_Id) return Node_Id is
2378 pragma Assert (False
2379 or else NT (N).Nkind = N_Parameter_Specification);
2383 function Parent_Spec
2384 (N : Node_Id) return Node_Id is
2386 pragma Assert (False
2387 or else NT (N).Nkind = N_Function_Instantiation
2388 or else NT (N).Nkind = N_Generic_Function_Renaming_Declaration
2389 or else NT (N).Nkind = N_Generic_Package_Declaration
2390 or else NT (N).Nkind = N_Generic_Package_Renaming_Declaration
2391 or else NT (N).Nkind = N_Generic_Procedure_Renaming_Declaration
2392 or else NT (N).Nkind = N_Generic_Subprogram_Declaration
2393 or else NT (N).Nkind = N_Package_Declaration
2394 or else NT (N).Nkind = N_Package_Instantiation
2395 or else NT (N).Nkind = N_Package_Renaming_Declaration
2396 or else NT (N).Nkind = N_Procedure_Instantiation
2397 or else NT (N).Nkind = N_Subprogram_Declaration
2398 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration);
2403 (N : Node_Id) return Node_Id is
2405 pragma Assert (False
2406 or else NT (N).Nkind = N_Component_Clause);
2410 function Pragma_Argument_Associations
2411 (N : Node_Id) return List_Id is
2413 pragma Assert (False
2414 or else NT (N).Nkind = N_Pragma);
2416 end Pragma_Argument_Associations;
2418 function Pragma_Identifier
2419 (N : Node_Id) return Node_Id is
2421 pragma Assert (False
2422 or else NT (N).Nkind = N_Pragma);
2424 end Pragma_Identifier;
2426 function Pragmas_After
2427 (N : Node_Id) return List_Id is
2429 pragma Assert (False
2430 or else NT (N).Nkind = N_Compilation_Unit_Aux
2431 or else NT (N).Nkind = N_Terminate_Alternative);
2435 function Pragmas_Before
2436 (N : Node_Id) return List_Id is
2438 pragma Assert (False
2439 or else NT (N).Nkind = N_Accept_Alternative
2440 or else NT (N).Nkind = N_Delay_Alternative
2441 or else NT (N).Nkind = N_Entry_Call_Alternative
2442 or else NT (N).Nkind = N_Mod_Clause
2443 or else NT (N).Nkind = N_Terminate_Alternative
2444 or else NT (N).Nkind = N_Triggering_Alternative);
2449 (N : Node_Id) return Node_Id is
2451 pragma Assert (False
2452 or else NT (N).Nkind = N_Attribute_Reference
2453 or else NT (N).Nkind = N_Expanded_Name
2454 or else NT (N).Nkind = N_Explicit_Dereference
2455 or else NT (N).Nkind = N_Indexed_Component
2456 or else NT (N).Nkind = N_Reference
2457 or else NT (N).Nkind = N_Selected_Component
2458 or else NT (N).Nkind = N_Slice);
2462 function Premature_Use
2463 (N : Node_Id) return Node_Id is
2465 pragma Assert (False
2466 or else NT (N).Nkind = N_Incomplete_Type_Declaration);
2470 function Present_Expr
2471 (N : Node_Id) return Uint is
2473 pragma Assert (False
2474 or else NT (N).Nkind = N_Variant);
2479 (N : Node_Id) return Boolean is
2481 pragma Assert (False
2482 or else NT (N).Nkind = N_Component_Declaration
2483 or else NT (N).Nkind = N_Discriminant_Specification
2484 or else NT (N).Nkind = N_Exception_Declaration
2485 or else NT (N).Nkind = N_Formal_Object_Declaration
2486 or else NT (N).Nkind = N_Number_Declaration
2487 or else NT (N).Nkind = N_Object_Declaration
2488 or else NT (N).Nkind = N_Parameter_Specification);
2492 function Print_In_Hex
2493 (N : Node_Id) return Boolean is
2495 pragma Assert (False
2496 or else NT (N).Nkind = N_Integer_Literal);
2500 function Private_Declarations
2501 (N : Node_Id) return List_Id is
2503 pragma Assert (False
2504 or else NT (N).Nkind = N_Package_Specification
2505 or else NT (N).Nkind = N_Protected_Definition
2506 or else NT (N).Nkind = N_Task_Definition);
2508 end Private_Declarations;
2510 function Private_Present
2511 (N : Node_Id) return Boolean is
2513 pragma Assert (False
2514 or else NT (N).Nkind = N_Compilation_Unit
2515 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
2516 or else NT (N).Nkind = N_With_Clause);
2518 end Private_Present;
2520 function Procedure_To_Call
2521 (N : Node_Id) return Node_Id is
2523 pragma Assert (False
2524 or else NT (N).Nkind = N_Allocator
2525 or else NT (N).Nkind = N_Extended_Return_Statement
2526 or else NT (N).Nkind = N_Free_Statement
2527 or else NT (N).Nkind = N_Return_Statement);
2529 end Procedure_To_Call;
2531 function Proper_Body
2532 (N : Node_Id) return Node_Id is
2534 pragma Assert (False
2535 or else NT (N).Nkind = N_Subunit);
2539 function Protected_Definition
2540 (N : Node_Id) return Node_Id is
2542 pragma Assert (False
2543 or else NT (N).Nkind = N_Protected_Type_Declaration
2544 or else NT (N).Nkind = N_Single_Protected_Declaration);
2546 end Protected_Definition;
2548 function Protected_Present
2549 (N : Node_Id) return Boolean is
2551 pragma Assert (False
2552 or else NT (N).Nkind = N_Access_Function_Definition
2553 or else NT (N).Nkind = N_Access_Procedure_Definition
2554 or else NT (N).Nkind = N_Derived_Type_Definition
2555 or else NT (N).Nkind = N_Record_Definition);
2557 end Protected_Present;
2559 function Raises_Constraint_Error
2560 (N : Node_Id) return Boolean is
2562 pragma Assert (False
2563 or else NT (N).Nkind in N_Subexpr);
2565 end Raises_Constraint_Error;
2567 function Range_Constraint
2568 (N : Node_Id) return Node_Id is
2570 pragma Assert (False
2571 or else NT (N).Nkind = N_Delta_Constraint
2572 or else NT (N).Nkind = N_Digits_Constraint);
2574 end Range_Constraint;
2576 function Range_Expression
2577 (N : Node_Id) return Node_Id is
2579 pragma Assert (False
2580 or else NT (N).Nkind = N_Range_Constraint);
2582 end Range_Expression;
2584 function Real_Range_Specification
2585 (N : Node_Id) return Node_Id is
2587 pragma Assert (False
2588 or else NT (N).Nkind = N_Decimal_Fixed_Point_Definition
2589 or else NT (N).Nkind = N_Floating_Point_Definition
2590 or else NT (N).Nkind = N_Ordinary_Fixed_Point_Definition);
2592 end Real_Range_Specification;
2595 (N : Node_Id) return Ureal is
2597 pragma Assert (False
2598 or else NT (N).Nkind = N_Real_Literal);
2603 (N : Node_Id) return Uint is
2605 pragma Assert (False
2606 or else NT (N).Nkind = N_Raise_Constraint_Error
2607 or else NT (N).Nkind = N_Raise_Program_Error
2608 or else NT (N).Nkind = N_Raise_Storage_Error);
2612 function Record_Extension_Part
2613 (N : Node_Id) return Node_Id is
2615 pragma Assert (False
2616 or else NT (N).Nkind = N_Derived_Type_Definition);
2618 end Record_Extension_Part;
2620 function Redundant_Use
2621 (N : Node_Id) return Boolean is
2623 pragma Assert (False
2624 or else NT (N).Nkind = N_Attribute_Reference
2625 or else NT (N).Nkind = N_Expanded_Name
2626 or else NT (N).Nkind = N_Identifier);
2630 function Renaming_Exception
2631 (N : Node_Id) return Node_Id is
2633 pragma Assert (False
2634 or else NT (N).Nkind = N_Exception_Declaration);
2636 end Renaming_Exception;
2638 function Result_Definition
2639 (N : Node_Id) return Node_Id is
2641 pragma Assert (False
2642 or else NT (N).Nkind = N_Access_Function_Definition
2643 or else NT (N).Nkind = N_Function_Specification);
2645 end Result_Definition;
2647 function Return_Object_Declarations
2648 (N : Node_Id) return List_Id is
2650 pragma Assert (False
2651 or else NT (N).Nkind = N_Extended_Return_Statement);
2653 end Return_Object_Declarations;
2655 function Return_Statement_Entity
2656 (N : Node_Id) return Node_Id is
2658 pragma Assert (False
2659 or else NT (N).Nkind = N_Extended_Return_Statement
2660 or else NT (N).Nkind = N_Return_Statement);
2662 end Return_Statement_Entity;
2664 function Reverse_Present
2665 (N : Node_Id) return Boolean is
2667 pragma Assert (False
2668 or else NT (N).Nkind = N_Iterator_Specification
2669 or else NT (N).Nkind = N_Loop_Parameter_Specification);
2671 end Reverse_Present;
2674 (N : Node_Id) return Node_Id is
2676 pragma Assert (False
2677 or else NT (N).Nkind in N_Op
2678 or else NT (N).Nkind = N_And_Then
2679 or else NT (N).Nkind = N_In
2680 or else NT (N).Nkind = N_Not_In
2681 or else NT (N).Nkind = N_Or_Else);
2685 function Rounded_Result
2686 (N : Node_Id) return Boolean is
2688 pragma Assert (False
2689 or else NT (N).Nkind = N_Op_Divide
2690 or else NT (N).Nkind = N_Op_Multiply
2691 or else NT (N).Nkind = N_Type_Conversion);
2695 function SCIL_Controlling_Tag
2696 (N : Node_Id) return Node_Id is
2698 pragma Assert (False
2699 or else NT (N).Nkind = N_SCIL_Dispatching_Call);
2701 end SCIL_Controlling_Tag;
2703 function SCIL_Entity
2704 (N : Node_Id) return Node_Id is
2706 pragma Assert (False
2707 or else NT (N).Nkind = N_SCIL_Dispatch_Table_Tag_Init
2708 or else NT (N).Nkind = N_SCIL_Dispatching_Call
2709 or else NT (N).Nkind = N_SCIL_Membership_Test);
2713 function SCIL_Tag_Value
2714 (N : Node_Id) return Node_Id is
2716 pragma Assert (False
2717 or else NT (N).Nkind = N_SCIL_Membership_Test);
2721 function SCIL_Target_Prim
2722 (N : Node_Id) return Node_Id is
2724 pragma Assert (False
2725 or else NT (N).Nkind = N_SCIL_Dispatching_Call);
2727 end SCIL_Target_Prim;
2730 (N : Node_Id) return Node_Id is
2732 pragma Assert (False
2733 or else NT (N).Nkind = N_Defining_Character_Literal
2734 or else NT (N).Nkind = N_Defining_Identifier
2735 or else NT (N).Nkind = N_Defining_Operator_Symbol);
2739 function Select_Alternatives
2740 (N : Node_Id) return List_Id is
2742 pragma Assert (False
2743 or else NT (N).Nkind = N_Selective_Accept);
2745 end Select_Alternatives;
2747 function Selector_Name
2748 (N : Node_Id) return Node_Id is
2750 pragma Assert (False
2751 or else NT (N).Nkind = N_Expanded_Name
2752 or else NT (N).Nkind = N_Generic_Association
2753 or else NT (N).Nkind = N_Parameter_Association
2754 or else NT (N).Nkind = N_Selected_Component);
2758 function Selector_Names
2759 (N : Node_Id) return List_Id is
2761 pragma Assert (False
2762 or else NT (N).Nkind = N_Discriminant_Association);
2766 function Shift_Count_OK
2767 (N : Node_Id) return Boolean is
2769 pragma Assert (False
2770 or else NT (N).Nkind = N_Op_Rotate_Left
2771 or else NT (N).Nkind = N_Op_Rotate_Right
2772 or else NT (N).Nkind = N_Op_Shift_Left
2773 or else NT (N).Nkind = N_Op_Shift_Right
2774 or else NT (N).Nkind = N_Op_Shift_Right_Arithmetic);
2778 function Source_Type
2779 (N : Node_Id) return Entity_Id is
2781 pragma Assert (False
2782 or else NT (N).Nkind = N_Validate_Unchecked_Conversion);
2786 function Spec_PPC_List
2787 (N : Node_Id) return Node_Id is
2789 pragma Assert (False
2790 or else NT (N).Nkind = N_Contract);
2794 function Spec_TC_List
2795 (N : Node_Id) return Node_Id is
2797 pragma Assert (False
2798 or else NT (N).Nkind = N_Contract);
2802 function Specification
2803 (N : Node_Id) return Node_Id is
2805 pragma Assert (False
2806 or else NT (N).Nkind = N_Abstract_Subprogram_Declaration
2807 or else NT (N).Nkind = N_Expression_Function
2808 or else NT (N).Nkind = N_Formal_Abstract_Subprogram_Declaration
2809 or else NT (N).Nkind = N_Formal_Concrete_Subprogram_Declaration
2810 or else NT (N).Nkind = N_Generic_Package_Declaration
2811 or else NT (N).Nkind = N_Generic_Subprogram_Declaration
2812 or else NT (N).Nkind = N_Package_Declaration
2813 or else NT (N).Nkind = N_Subprogram_Body
2814 or else NT (N).Nkind = N_Subprogram_Body_Stub
2815 or else NT (N).Nkind = N_Subprogram_Declaration
2816 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration);
2821 (N : Node_Id) return Boolean is
2823 pragma Assert (False
2824 or else NT (N).Nkind = N_Aspect_Specification
2825 or else NT (N).Nkind = N_Pragma);
2830 (N : Node_Id) return List_Id is
2832 pragma Assert (False
2833 or else NT (N).Nkind = N_Abortable_Part
2834 or else NT (N).Nkind = N_Accept_Alternative
2835 or else NT (N).Nkind = N_Case_Statement_Alternative
2836 or else NT (N).Nkind = N_Delay_Alternative
2837 or else NT (N).Nkind = N_Entry_Call_Alternative
2838 or else NT (N).Nkind = N_Exception_Handler
2839 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements
2840 or else NT (N).Nkind = N_Loop_Statement
2841 or else NT (N).Nkind = N_Triggering_Alternative);
2845 function Static_Processing_OK
2846 (N : Node_Id) return Boolean is
2848 pragma Assert (False
2849 or else NT (N).Nkind = N_Aggregate);
2851 end Static_Processing_OK;
2853 function Storage_Pool
2854 (N : Node_Id) return Node_Id is
2856 pragma Assert (False
2857 or else NT (N).Nkind = N_Allocator
2858 or else NT (N).Nkind = N_Extended_Return_Statement
2859 or else NT (N).Nkind = N_Free_Statement
2860 or else NT (N).Nkind = N_Return_Statement);
2864 function Subpool_Handle_Name
2865 (N : Node_Id) return Node_Id is
2867 pragma Assert (False
2868 or else NT (N).Nkind = N_Allocator);
2870 end Subpool_Handle_Name;
2873 (N : Node_Id) return String_Id is
2875 pragma Assert (False
2876 or else NT (N).Nkind = N_Operator_Symbol
2877 or else NT (N).Nkind = N_String_Literal);
2881 function Subtype_Indication
2882 (N : Node_Id) return Node_Id is
2884 pragma Assert (False
2885 or else NT (N).Nkind = N_Access_To_Object_Definition
2886 or else NT (N).Nkind = N_Component_Definition
2887 or else NT (N).Nkind = N_Derived_Type_Definition
2888 or else NT (N).Nkind = N_Iterator_Specification
2889 or else NT (N).Nkind = N_Private_Extension_Declaration
2890 or else NT (N).Nkind = N_Subtype_Declaration);
2892 end Subtype_Indication;
2894 function Suppress_Assignment_Checks
2895 (N : Node_Id) return Boolean is
2897 pragma Assert (False
2898 or else NT (N).Nkind = N_Assignment_Statement
2899 or else NT (N).Nkind = N_Object_Declaration);
2901 end Suppress_Assignment_Checks;
2903 function Suppress_Loop_Warnings
2904 (N : Node_Id) return Boolean is
2906 pragma Assert (False
2907 or else NT (N).Nkind = N_Loop_Statement);
2909 end Suppress_Loop_Warnings;
2911 function Subtype_Mark
2912 (N : Node_Id) return Node_Id is
2914 pragma Assert (False
2915 or else NT (N).Nkind = N_Access_Definition
2916 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
2917 or else NT (N).Nkind = N_Formal_Object_Declaration
2918 or else NT (N).Nkind = N_Object_Renaming_Declaration
2919 or else NT (N).Nkind = N_Qualified_Expression
2920 or else NT (N).Nkind = N_Subtype_Indication
2921 or else NT (N).Nkind = N_Type_Conversion
2922 or else NT (N).Nkind = N_Unchecked_Type_Conversion);
2926 function Subtype_Marks
2927 (N : Node_Id) return List_Id is
2929 pragma Assert (False
2930 or else NT (N).Nkind = N_Unconstrained_Array_Definition
2931 or else NT (N).Nkind = N_Use_Type_Clause);
2935 function Synchronized_Present
2936 (N : Node_Id) return Boolean is
2938 pragma Assert (False
2939 or else NT (N).Nkind = N_Derived_Type_Definition
2940 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
2941 or else NT (N).Nkind = N_Private_Extension_Declaration
2942 or else NT (N).Nkind = N_Record_Definition);
2944 end Synchronized_Present;
2946 function Tagged_Present
2947 (N : Node_Id) return Boolean is
2949 pragma Assert (False
2950 or else NT (N).Nkind = N_Formal_Incomplete_Type_Definition
2951 or else NT (N).Nkind = N_Formal_Private_Type_Definition
2952 or else NT (N).Nkind = N_Incomplete_Type_Declaration
2953 or else NT (N).Nkind = N_Private_Type_Declaration
2954 or else NT (N).Nkind = N_Record_Definition);
2958 function Target_Type
2959 (N : Node_Id) return Entity_Id is
2961 pragma Assert (False
2962 or else NT (N).Nkind = N_Validate_Unchecked_Conversion);
2966 function Task_Definition
2967 (N : Node_Id) return Node_Id is
2969 pragma Assert (False
2970 or else NT (N).Nkind = N_Single_Task_Declaration
2971 or else NT (N).Nkind = N_Task_Type_Declaration);
2973 end Task_Definition;
2975 function Task_Present
2976 (N : Node_Id) return Boolean is
2978 pragma Assert (False
2979 or else NT (N).Nkind = N_Derived_Type_Definition
2980 or else NT (N).Nkind = N_Record_Definition);
2984 function Then_Actions
2985 (N : Node_Id) return List_Id is
2987 pragma Assert (False
2988 or else NT (N).Nkind = N_Conditional_Expression);
2992 function Then_Statements
2993 (N : Node_Id) return List_Id is
2995 pragma Assert (False
2996 or else NT (N).Nkind = N_Elsif_Part
2997 or else NT (N).Nkind = N_If_Statement);
2999 end Then_Statements;
3001 function Treat_Fixed_As_Integer
3002 (N : Node_Id) return Boolean is
3004 pragma Assert (False
3005 or else NT (N).Nkind = N_Op_Divide
3006 or else NT (N).Nkind = N_Op_Mod
3007 or else NT (N).Nkind = N_Op_Multiply
3008 or else NT (N).Nkind = N_Op_Rem);
3010 end Treat_Fixed_As_Integer;
3012 function Triggering_Alternative
3013 (N : Node_Id) return Node_Id is
3015 pragma Assert (False
3016 or else NT (N).Nkind = N_Asynchronous_Select);
3018 end Triggering_Alternative;
3020 function Triggering_Statement
3021 (N : Node_Id) return Node_Id is
3023 pragma Assert (False
3024 or else NT (N).Nkind = N_Triggering_Alternative);
3026 end Triggering_Statement;
3029 (N : Node_Id) return Elist_Id is
3031 pragma Assert (False
3032 or else NT (N).Nkind = N_Freeze_Entity);
3036 function Type_Definition
3037 (N : Node_Id) return Node_Id is
3039 pragma Assert (False
3040 or else NT (N).Nkind = N_Full_Type_Declaration);
3042 end Type_Definition;
3045 (N : Node_Id) return Node_Id is
3047 pragma Assert (False
3048 or else NT (N).Nkind = N_Compilation_Unit);
3052 function Unknown_Discriminants_Present
3053 (N : Node_Id) return Boolean is
3055 pragma Assert (False
3056 or else NT (N).Nkind = N_Formal_Type_Declaration
3057 or else NT (N).Nkind = N_Incomplete_Type_Declaration
3058 or else NT (N).Nkind = N_Private_Extension_Declaration
3059 or else NT (N).Nkind = N_Private_Type_Declaration);
3061 end Unknown_Discriminants_Present;
3063 function Unreferenced_In_Spec
3064 (N : Node_Id) return Boolean is
3066 pragma Assert (False
3067 or else NT (N).Nkind = N_With_Clause);
3069 end Unreferenced_In_Spec;
3071 function Variant_Part
3072 (N : Node_Id) return Node_Id is
3074 pragma Assert (False
3075 or else NT (N).Nkind = N_Component_List);
3080 (N : Node_Id) return List_Id is
3082 pragma Assert (False
3083 or else NT (N).Nkind = N_Variant_Part);
3087 function Visible_Declarations
3088 (N : Node_Id) return List_Id is
3090 pragma Assert (False
3091 or else NT (N).Nkind = N_Package_Specification
3092 or else NT (N).Nkind = N_Protected_Definition
3093 or else NT (N).Nkind = N_Task_Definition);
3095 end Visible_Declarations;
3097 function Used_Operations
3098 (N : Node_Id) return Elist_Id is
3100 pragma Assert (False
3101 or else NT (N).Nkind = N_Use_Type_Clause);
3103 end Used_Operations;
3105 function Was_Originally_Stub
3106 (N : Node_Id) return Boolean is
3108 pragma Assert (False
3109 or else NT (N).Nkind = N_Package_Body
3110 or else NT (N).Nkind = N_Protected_Body
3111 or else NT (N).Nkind = N_Subprogram_Body
3112 or else NT (N).Nkind = N_Task_Body);
3114 end Was_Originally_Stub;
3116 function Withed_Body
3117 (N : Node_Id) return Node_Id is
3119 pragma Assert (False
3120 or else NT (N).Nkind = N_With_Clause);
3124 --------------------------
3125 -- Field Set Procedures --
3126 --------------------------
3128 procedure Set_ABE_Is_Certain
3129 (N : Node_Id; Val : Boolean := True) is
3131 pragma Assert (False
3132 or else NT (N).Nkind = N_Formal_Package_Declaration
3133 or else NT (N).Nkind = N_Function_Call
3134 or else NT (N).Nkind = N_Function_Instantiation
3135 or else NT (N).Nkind = N_Package_Instantiation
3136 or else NT (N).Nkind = N_Procedure_Call_Statement
3137 or else NT (N).Nkind = N_Procedure_Instantiation);
3138 Set_Flag18 (N, Val);
3139 end Set_ABE_Is_Certain;
3141 procedure Set_Abort_Present
3142 (N : Node_Id; Val : Boolean := True) is
3144 pragma Assert (False
3145 or else NT (N).Nkind = N_Requeue_Statement);
3146 Set_Flag15 (N, Val);
3147 end Set_Abort_Present;
3149 procedure Set_Abortable_Part
3150 (N : Node_Id; Val : Node_Id) is
3152 pragma Assert (False
3153 or else NT (N).Nkind = N_Asynchronous_Select);
3154 Set_Node2_With_Parent (N, Val);
3155 end Set_Abortable_Part;
3157 procedure Set_Abstract_Present
3158 (N : Node_Id; Val : Boolean := True) is
3160 pragma Assert (False
3161 or else NT (N).Nkind = N_Derived_Type_Definition
3162 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
3163 or else NT (N).Nkind = N_Formal_Private_Type_Definition
3164 or else NT (N).Nkind = N_Private_Extension_Declaration
3165 or else NT (N).Nkind = N_Private_Type_Declaration
3166 or else NT (N).Nkind = N_Record_Definition);
3168 end Set_Abstract_Present;
3170 procedure Set_Accept_Handler_Records
3171 (N : Node_Id; Val : List_Id) is
3173 pragma Assert (False
3174 or else NT (N).Nkind = N_Accept_Alternative);
3175 Set_List5 (N, Val); -- semantic field, no parent set
3176 end Set_Accept_Handler_Records;
3178 procedure Set_Accept_Statement
3179 (N : Node_Id; Val : Node_Id) is
3181 pragma Assert (False
3182 or else NT (N).Nkind = N_Accept_Alternative);
3183 Set_Node2_With_Parent (N, Val);
3184 end Set_Accept_Statement;
3186 procedure Set_Access_Definition
3187 (N : Node_Id; Val : Node_Id) is
3189 pragma Assert (False
3190 or else NT (N).Nkind = N_Component_Definition
3191 or else NT (N).Nkind = N_Formal_Object_Declaration
3192 or else NT (N).Nkind = N_Object_Renaming_Declaration);
3193 Set_Node3_With_Parent (N, Val);
3194 end Set_Access_Definition;
3196 procedure Set_Access_To_Subprogram_Definition
3197 (N : Node_Id; Val : Node_Id) is
3199 pragma Assert (False
3200 or else NT (N).Nkind = N_Access_Definition);
3201 Set_Node3_With_Parent (N, Val);
3202 end Set_Access_To_Subprogram_Definition;
3204 procedure Set_Access_Types_To_Process
3205 (N : Node_Id; Val : Elist_Id) is
3207 pragma Assert (False
3208 or else NT (N).Nkind = N_Freeze_Entity);
3209 Set_Elist2 (N, Val); -- semantic field, no parent set
3210 end Set_Access_Types_To_Process;
3212 procedure Set_Actions
3213 (N : Node_Id; Val : List_Id) is
3215 pragma Assert (False
3216 or else NT (N).Nkind = N_And_Then
3217 or else NT (N).Nkind = N_Case_Expression_Alternative
3218 or else NT (N).Nkind = N_Compilation_Unit_Aux
3219 or else NT (N).Nkind = N_Expression_With_Actions
3220 or else NT (N).Nkind = N_Freeze_Entity
3221 or else NT (N).Nkind = N_Or_Else);
3222 Set_List1_With_Parent (N, Val);
3225 procedure Set_Activation_Chain_Entity
3226 (N : Node_Id; Val : Node_Id) is
3228 pragma Assert (False
3229 or else NT (N).Nkind = N_Block_Statement
3230 or else NT (N).Nkind = N_Entry_Body
3231 or else NT (N).Nkind = N_Generic_Package_Declaration
3232 or else NT (N).Nkind = N_Package_Declaration
3233 or else NT (N).Nkind = N_Subprogram_Body
3234 or else NT (N).Nkind = N_Task_Body);
3235 Set_Node3 (N, Val); -- semantic field, no parent set
3236 end Set_Activation_Chain_Entity;
3238 procedure Set_Acts_As_Spec
3239 (N : Node_Id; Val : Boolean := True) is
3241 pragma Assert (False
3242 or else NT (N).Nkind = N_Compilation_Unit
3243 or else NT (N).Nkind = N_Subprogram_Body);
3245 end Set_Acts_As_Spec;
3247 procedure Set_Actual_Designated_Subtype
3248 (N : Node_Id; Val : Node_Id) is
3250 pragma Assert (False
3251 or else NT (N).Nkind = N_Explicit_Dereference
3252 or else NT (N).Nkind = N_Free_Statement);
3254 end Set_Actual_Designated_Subtype;
3256 procedure Set_Address_Warning_Posted
3257 (N : Node_Id; Val : Boolean := True) is
3259 pragma Assert (False
3260 or else NT (N).Nkind = N_Attribute_Definition_Clause);
3261 Set_Flag18 (N, Val);
3262 end Set_Address_Warning_Posted;
3264 procedure Set_Aggregate_Bounds
3265 (N : Node_Id; Val : Node_Id) is
3267 pragma Assert (False
3268 or else NT (N).Nkind = N_Aggregate);
3269 Set_Node3 (N, Val); -- semantic field, no parent set
3270 end Set_Aggregate_Bounds;
3272 procedure Set_Aliased_Present
3273 (N : Node_Id; Val : Boolean := True) is
3275 pragma Assert (False
3276 or else NT (N).Nkind = N_Component_Definition
3277 or else NT (N).Nkind = N_Object_Declaration
3278 or else NT (N).Nkind = N_Parameter_Specification);
3280 end Set_Aliased_Present;
3282 procedure Set_All_Others
3283 (N : Node_Id; Val : Boolean := True) is
3285 pragma Assert (False
3286 or else NT (N).Nkind = N_Others_Choice);
3287 Set_Flag11 (N, Val);
3290 procedure Set_All_Present
3291 (N : Node_Id; Val : Boolean := True) is
3293 pragma Assert (False
3294 or else NT (N).Nkind = N_Access_Definition
3295 or else NT (N).Nkind = N_Access_To_Object_Definition
3296 or else NT (N).Nkind = N_Quantified_Expression
3297 or else NT (N).Nkind = N_Use_Type_Clause);
3298 Set_Flag15 (N, Val);
3299 end Set_All_Present;
3301 procedure Set_Alternatives
3302 (N : Node_Id; Val : List_Id) is
3304 pragma Assert (False
3305 or else NT (N).Nkind = N_Case_Expression
3306 or else NT (N).Nkind = N_Case_Statement
3307 or else NT (N).Nkind = N_In
3308 or else NT (N).Nkind = N_Not_In);
3309 Set_List4_With_Parent (N, Val);
3310 end Set_Alternatives;
3312 procedure Set_Ancestor_Part
3313 (N : Node_Id; Val : Node_Id) is
3315 pragma Assert (False
3316 or else NT (N).Nkind = N_Extension_Aggregate);
3317 Set_Node3_With_Parent (N, Val);
3318 end Set_Ancestor_Part;
3320 procedure Set_Array_Aggregate
3321 (N : Node_Id; Val : Node_Id) is
3323 pragma Assert (False
3324 or else NT (N).Nkind = N_Enumeration_Representation_Clause);
3325 Set_Node3_With_Parent (N, Val);
3326 end Set_Array_Aggregate;
3328 procedure Set_Aspect_Rep_Item
3329 (N : Node_Id; Val : Node_Id) is
3331 pragma Assert (False
3332 or else NT (N).Nkind = N_Aspect_Specification);
3334 end Set_Aspect_Rep_Item;
3336 procedure Set_Assignment_OK
3337 (N : Node_Id; Val : Boolean := True) is
3339 pragma Assert (False
3340 or else NT (N).Nkind = N_Object_Declaration
3341 or else NT (N).Nkind in N_Subexpr);
3342 Set_Flag15 (N, Val);
3343 end Set_Assignment_OK;
3345 procedure Set_Associated_Node
3346 (N : Node_Id; Val : Node_Id) is
3348 pragma Assert (False
3349 or else NT (N).Nkind in N_Has_Entity
3350 or else NT (N).Nkind = N_Aggregate
3351 or else NT (N).Nkind = N_Extension_Aggregate
3352 or else NT (N).Nkind = N_Selected_Component);
3353 Set_Node4 (N, Val); -- semantic field, no parent set
3354 end Set_Associated_Node;
3356 procedure Set_At_End_Proc
3357 (N : Node_Id; Val : Node_Id) is
3359 pragma Assert (False
3360 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements);
3362 end Set_At_End_Proc;
3364 procedure Set_Attribute_Name
3365 (N : Node_Id; Val : Name_Id) is
3367 pragma Assert (False
3368 or else NT (N).Nkind = N_Attribute_Reference);
3370 end Set_Attribute_Name;
3372 procedure Set_Aux_Decls_Node
3373 (N : Node_Id; Val : Node_Id) is
3375 pragma Assert (False
3376 or else NT (N).Nkind = N_Compilation_Unit);
3377 Set_Node5_With_Parent (N, Val);
3378 end Set_Aux_Decls_Node;
3380 procedure Set_Backwards_OK
3381 (N : Node_Id; Val : Boolean := True) is
3383 pragma Assert (False
3384 or else NT (N).Nkind = N_Assignment_Statement);
3386 end Set_Backwards_OK;
3388 procedure Set_Bad_Is_Detected
3389 (N : Node_Id; Val : Boolean := True) is
3391 pragma Assert (False
3392 or else NT (N).Nkind = N_Subprogram_Body);
3393 Set_Flag15 (N, Val);
3394 end Set_Bad_Is_Detected;
3396 procedure Set_Body_Required
3397 (N : Node_Id; Val : Boolean := True) is
3399 pragma Assert (False
3400 or else NT (N).Nkind = N_Compilation_Unit);
3401 Set_Flag13 (N, Val);
3402 end Set_Body_Required;
3404 procedure Set_Body_To_Inline
3405 (N : Node_Id; Val : Node_Id) is
3407 pragma Assert (False
3408 or else NT (N).Nkind = N_Subprogram_Declaration);
3410 end Set_Body_To_Inline;
3412 procedure Set_Box_Present
3413 (N : Node_Id; Val : Boolean := True) is
3415 pragma Assert (False
3416 or else NT (N).Nkind = N_Component_Association
3417 or else NT (N).Nkind = N_Formal_Abstract_Subprogram_Declaration
3418 or else NT (N).Nkind = N_Formal_Concrete_Subprogram_Declaration
3419 or else NT (N).Nkind = N_Formal_Package_Declaration
3420 or else NT (N).Nkind = N_Generic_Association);
3421 Set_Flag15 (N, Val);
3422 end Set_Box_Present;
3424 procedure Set_By_Ref
3425 (N : Node_Id; Val : Boolean := True) is
3427 pragma Assert (False
3428 or else NT (N).Nkind = N_Extended_Return_Statement
3429 or else NT (N).Nkind = N_Return_Statement);
3433 procedure Set_Char_Literal_Value
3434 (N : Node_Id; Val : Uint) is
3436 pragma Assert (False
3437 or else NT (N).Nkind = N_Character_Literal);
3439 end Set_Char_Literal_Value;
3442 (N : Node_Id; Val : Name_Id) is
3444 pragma Assert (False
3445 or else NT (N).Nkind in N_Has_Chars);
3449 procedure Set_Check_Address_Alignment
3450 (N : Node_Id; Val : Boolean := True) is
3452 pragma Assert (False
3453 or else NT (N).Nkind = N_Attribute_Definition_Clause);
3454 Set_Flag11 (N, Val);
3455 end Set_Check_Address_Alignment;
3457 procedure Set_Choice_Parameter
3458 (N : Node_Id; Val : Node_Id) is
3460 pragma Assert (False
3461 or else NT (N).Nkind = N_Exception_Handler);
3462 Set_Node2_With_Parent (N, Val);
3463 end Set_Choice_Parameter;
3465 procedure Set_Choices
3466 (N : Node_Id; Val : List_Id) is
3468 pragma Assert (False
3469 or else NT (N).Nkind = N_Component_Association);
3470 Set_List1_With_Parent (N, Val);
3473 procedure Set_Class_Present
3474 (N : Node_Id; Val : Boolean := True) is
3476 pragma Assert (False
3477 or else NT (N).Nkind = N_Aspect_Specification
3478 or else NT (N).Nkind = N_Pragma);
3480 end Set_Class_Present;
3482 procedure Set_Comes_From_Extended_Return_Statement
3483 (N : Node_Id; Val : Boolean := True) is
3485 pragma Assert (False
3486 or else NT (N).Nkind = N_Return_Statement);
3487 Set_Flag18 (N, Val);
3488 end Set_Comes_From_Extended_Return_Statement;
3490 procedure Set_Compile_Time_Known_Aggregate
3491 (N : Node_Id; Val : Boolean := True) is
3493 pragma Assert (False
3494 or else NT (N).Nkind = N_Aggregate);
3495 Set_Flag18 (N, Val);
3496 end Set_Compile_Time_Known_Aggregate;
3498 procedure Set_Component_Associations
3499 (N : Node_Id; Val : List_Id) is
3501 pragma Assert (False
3502 or else NT (N).Nkind = N_Aggregate
3503 or else NT (N).Nkind = N_Extension_Aggregate);
3504 Set_List2_With_Parent (N, Val);
3505 end Set_Component_Associations;
3507 procedure Set_Component_Clauses
3508 (N : Node_Id; Val : List_Id) is
3510 pragma Assert (False
3511 or else NT (N).Nkind = N_Record_Representation_Clause);
3512 Set_List3_With_Parent (N, Val);
3513 end Set_Component_Clauses;
3515 procedure Set_Component_Definition
3516 (N : Node_Id; Val : Node_Id) is
3518 pragma Assert (False
3519 or else NT (N).Nkind = N_Component_Declaration
3520 or else NT (N).Nkind = N_Constrained_Array_Definition
3521 or else NT (N).Nkind = N_Unconstrained_Array_Definition);
3522 Set_Node4_With_Parent (N, Val);
3523 end Set_Component_Definition;
3525 procedure Set_Component_Items
3526 (N : Node_Id; Val : List_Id) is
3528 pragma Assert (False
3529 or else NT (N).Nkind = N_Component_List);
3530 Set_List3_With_Parent (N, Val);
3531 end Set_Component_Items;
3533 procedure Set_Component_List
3534 (N : Node_Id; Val : Node_Id) is
3536 pragma Assert (False
3537 or else NT (N).Nkind = N_Record_Definition
3538 or else NT (N).Nkind = N_Variant);
3539 Set_Node1_With_Parent (N, Val);
3540 end Set_Component_List;
3542 procedure Set_Component_Name
3543 (N : Node_Id; Val : Node_Id) is
3545 pragma Assert (False
3546 or else NT (N).Nkind = N_Component_Clause);
3547 Set_Node1_With_Parent (N, Val);
3548 end Set_Component_Name;
3550 procedure Set_Componentwise_Assignment
3551 (N : Node_Id; Val : Boolean := True) is
3553 pragma Assert (False
3554 or else NT (N).Nkind = N_Assignment_Statement);
3555 Set_Flag14 (N, Val);
3556 end Set_Componentwise_Assignment;
3558 procedure Set_Condition
3559 (N : Node_Id; Val : Node_Id) is
3561 pragma Assert (False
3562 or else NT (N).Nkind = N_Accept_Alternative
3563 or else NT (N).Nkind = N_Delay_Alternative
3564 or else NT (N).Nkind = N_Elsif_Part
3565 or else NT (N).Nkind = N_Entry_Body_Formal_Part
3566 or else NT (N).Nkind = N_Exit_Statement
3567 or else NT (N).Nkind = N_If_Statement
3568 or else NT (N).Nkind = N_Iteration_Scheme
3569 or else NT (N).Nkind = N_Quantified_Expression
3570 or else NT (N).Nkind = N_Raise_Constraint_Error
3571 or else NT (N).Nkind = N_Raise_Program_Error
3572 or else NT (N).Nkind = N_Raise_Storage_Error
3573 or else NT (N).Nkind = N_Terminate_Alternative);
3574 Set_Node1_With_Parent (N, Val);
3577 procedure Set_Condition_Actions
3578 (N : Node_Id; Val : List_Id) is
3580 pragma Assert (False
3581 or else NT (N).Nkind = N_Elsif_Part
3582 or else NT (N).Nkind = N_Iteration_Scheme);
3583 Set_List3 (N, Val); -- semantic field, no parent set
3584 end Set_Condition_Actions;
3586 procedure Set_Config_Pragmas
3587 (N : Node_Id; Val : List_Id) is
3589 pragma Assert (False
3590 or else NT (N).Nkind = N_Compilation_Unit_Aux);
3591 Set_List4_With_Parent (N, Val);
3592 end Set_Config_Pragmas;
3594 procedure Set_Constant_Present
3595 (N : Node_Id; Val : Boolean := True) is
3597 pragma Assert (False
3598 or else NT (N).Nkind = N_Access_Definition
3599 or else NT (N).Nkind = N_Access_To_Object_Definition
3600 or else NT (N).Nkind = N_Object_Declaration);
3601 Set_Flag17 (N, Val);
3602 end Set_Constant_Present;
3604 procedure Set_Constraint
3605 (N : Node_Id; Val : Node_Id) is
3607 pragma Assert (False
3608 or else NT (N).Nkind = N_Subtype_Indication);
3609 Set_Node3_With_Parent (N, Val);
3612 procedure Set_Constraints
3613 (N : Node_Id; Val : List_Id) is
3615 pragma Assert (False
3616 or else NT (N).Nkind = N_Index_Or_Discriminant_Constraint);
3617 Set_List1_With_Parent (N, Val);
3618 end Set_Constraints;
3620 procedure Set_Context_Installed
3621 (N : Node_Id; Val : Boolean := True) is
3623 pragma Assert (False
3624 or else NT (N).Nkind = N_With_Clause);
3625 Set_Flag13 (N, Val);
3626 end Set_Context_Installed;
3628 procedure Set_Context_Items
3629 (N : Node_Id; Val : List_Id) is
3631 pragma Assert (False
3632 or else NT (N).Nkind = N_Compilation_Unit);
3633 Set_List1_With_Parent (N, Val);
3634 end Set_Context_Items;
3636 procedure Set_Context_Pending
3637 (N : Node_Id; Val : Boolean := True) is
3639 pragma Assert (False
3640 or else NT (N).Nkind = N_Compilation_Unit);
3641 Set_Flag16 (N, Val);
3642 end Set_Context_Pending;
3644 procedure Set_Controlling_Argument
3645 (N : Node_Id; Val : Node_Id) is
3647 pragma Assert (False
3648 or else NT (N).Nkind = N_Function_Call
3649 or else NT (N).Nkind = N_Procedure_Call_Statement);
3650 Set_Node1 (N, Val); -- semantic field, no parent set
3651 end Set_Controlling_Argument;
3653 procedure Set_Conversion_OK
3654 (N : Node_Id; Val : Boolean := True) is
3656 pragma Assert (False
3657 or else NT (N).Nkind = N_Type_Conversion);
3658 Set_Flag14 (N, Val);
3659 end Set_Conversion_OK;
3661 procedure Set_Corresponding_Body
3662 (N : Node_Id; Val : Node_Id) is
3664 pragma Assert (False
3665 or else NT (N).Nkind = N_Entry_Declaration
3666 or else NT (N).Nkind = N_Generic_Package_Declaration
3667 or else NT (N).Nkind = N_Generic_Subprogram_Declaration
3668 or else NT (N).Nkind = N_Package_Body_Stub
3669 or else NT (N).Nkind = N_Package_Declaration
3670 or else NT (N).Nkind = N_Protected_Body_Stub
3671 or else NT (N).Nkind = N_Protected_Type_Declaration
3672 or else NT (N).Nkind = N_Subprogram_Body_Stub
3673 or else NT (N).Nkind = N_Subprogram_Declaration
3674 or else NT (N).Nkind = N_Task_Body_Stub
3675 or else NT (N).Nkind = N_Task_Type_Declaration);
3676 Set_Node5 (N, Val); -- semantic field, no parent set
3677 end Set_Corresponding_Body;
3679 procedure Set_Corresponding_Formal_Spec
3680 (N : Node_Id; Val : Node_Id) is
3682 pragma Assert (False
3683 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration);
3684 Set_Node3 (N, Val); -- semantic field, no parent set
3685 end Set_Corresponding_Formal_Spec;
3687 procedure Set_Corresponding_Generic_Association
3688 (N : Node_Id; Val : Node_Id) is
3690 pragma Assert (False
3691 or else NT (N).Nkind = N_Object_Declaration
3692 or else NT (N).Nkind = N_Object_Renaming_Declaration);
3693 Set_Node5 (N, Val); -- semantic field, no parent set
3694 end Set_Corresponding_Generic_Association;
3696 procedure Set_Corresponding_Integer_Value
3697 (N : Node_Id; Val : Uint) is
3699 pragma Assert (False
3700 or else NT (N).Nkind = N_Real_Literal);
3701 Set_Uint4 (N, Val); -- semantic field, no parent set
3702 end Set_Corresponding_Integer_Value;
3704 procedure Set_Corresponding_Spec
3705 (N : Node_Id; Val : Node_Id) is
3707 pragma Assert (False
3708 or else NT (N).Nkind = N_Package_Body
3709 or else NT (N).Nkind = N_Protected_Body
3710 or else NT (N).Nkind = N_Subprogram_Body
3711 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration
3712 or else NT (N).Nkind = N_Task_Body
3713 or else NT (N).Nkind = N_With_Clause);
3714 Set_Node5 (N, Val); -- semantic field, no parent set
3715 end Set_Corresponding_Spec;
3717 procedure Set_Corresponding_Stub
3718 (N : Node_Id; Val : Node_Id) is
3720 pragma Assert (False
3721 or else NT (N).Nkind = N_Subunit);
3723 end Set_Corresponding_Stub;
3725 procedure Set_Dcheck_Function
3726 (N : Node_Id; Val : Entity_Id) is
3728 pragma Assert (False
3729 or else NT (N).Nkind = N_Variant);
3730 Set_Node5 (N, Val); -- semantic field, no parent set
3731 end Set_Dcheck_Function;
3733 procedure Set_Declarations
3734 (N : Node_Id; Val : List_Id) is
3736 pragma Assert (False
3737 or else NT (N).Nkind = N_Accept_Statement
3738 or else NT (N).Nkind = N_Block_Statement
3739 or else NT (N).Nkind = N_Compilation_Unit_Aux
3740 or else NT (N).Nkind = N_Entry_Body
3741 or else NT (N).Nkind = N_Package_Body
3742 or else NT (N).Nkind = N_Protected_Body
3743 or else NT (N).Nkind = N_Subprogram_Body
3744 or else NT (N).Nkind = N_Task_Body);
3745 Set_List2_With_Parent (N, Val);
3746 end Set_Declarations;
3748 procedure Set_Default_Expression
3749 (N : Node_Id; Val : Node_Id) is
3751 pragma Assert (False
3752 or else NT (N).Nkind = N_Formal_Object_Declaration
3753 or else NT (N).Nkind = N_Parameter_Specification);
3754 Set_Node5 (N, Val); -- semantic field, no parent set
3755 end Set_Default_Expression;
3757 procedure Set_Default_Storage_Pool
3758 (N : Node_Id; Val : Node_Id) is
3760 pragma Assert (False
3761 or else NT (N).Nkind = N_Compilation_Unit_Aux);
3762 Set_Node3 (N, Val); -- semantic field, no parent set
3763 end Set_Default_Storage_Pool;
3765 procedure Set_Default_Name
3766 (N : Node_Id; Val : Node_Id) is
3768 pragma Assert (False
3769 or else NT (N).Nkind = N_Formal_Abstract_Subprogram_Declaration
3770 or else NT (N).Nkind = N_Formal_Concrete_Subprogram_Declaration);
3771 Set_Node2_With_Parent (N, Val);
3772 end Set_Default_Name;
3774 procedure Set_Defining_Identifier
3775 (N : Node_Id; Val : Entity_Id) is
3777 pragma Assert (False
3778 or else NT (N).Nkind = N_Component_Declaration
3779 or else NT (N).Nkind = N_Defining_Program_Unit_Name
3780 or else NT (N).Nkind = N_Discriminant_Specification
3781 or else NT (N).Nkind = N_Entry_Body
3782 or else NT (N).Nkind = N_Entry_Declaration
3783 or else NT (N).Nkind = N_Entry_Index_Specification
3784 or else NT (N).Nkind = N_Exception_Declaration
3785 or else NT (N).Nkind = N_Exception_Renaming_Declaration
3786 or else NT (N).Nkind = N_Formal_Object_Declaration
3787 or else NT (N).Nkind = N_Formal_Package_Declaration
3788 or else NT (N).Nkind = N_Formal_Type_Declaration
3789 or else NT (N).Nkind = N_Full_Type_Declaration
3790 or else NT (N).Nkind = N_Implicit_Label_Declaration
3791 or else NT (N).Nkind = N_Incomplete_Type_Declaration
3792 or else NT (N).Nkind = N_Iterator_Specification
3793 or else NT (N).Nkind = N_Loop_Parameter_Specification
3794 or else NT (N).Nkind = N_Number_Declaration
3795 or else NT (N).Nkind = N_Object_Declaration
3796 or else NT (N).Nkind = N_Object_Renaming_Declaration
3797 or else NT (N).Nkind = N_Package_Body_Stub
3798 or else NT (N).Nkind = N_Parameter_Specification
3799 or else NT (N).Nkind = N_Private_Extension_Declaration
3800 or else NT (N).Nkind = N_Private_Type_Declaration
3801 or else NT (N).Nkind = N_Protected_Body
3802 or else NT (N).Nkind = N_Protected_Body_Stub
3803 or else NT (N).Nkind = N_Protected_Type_Declaration
3804 or else NT (N).Nkind = N_Single_Protected_Declaration
3805 or else NT (N).Nkind = N_Single_Task_Declaration
3806 or else NT (N).Nkind = N_Subtype_Declaration
3807 or else NT (N).Nkind = N_Task_Body
3808 or else NT (N).Nkind = N_Task_Body_Stub
3809 or else NT (N).Nkind = N_Task_Type_Declaration);
3810 Set_Node1_With_Parent (N, Val);
3811 end Set_Defining_Identifier;
3813 procedure Set_Defining_Unit_Name
3814 (N : Node_Id; Val : Node_Id) is
3816 pragma Assert (False
3817 or else NT (N).Nkind = N_Function_Instantiation
3818 or else NT (N).Nkind = N_Function_Specification
3819 or else NT (N).Nkind = N_Generic_Function_Renaming_Declaration
3820 or else NT (N).Nkind = N_Generic_Package_Renaming_Declaration
3821 or else NT (N).Nkind = N_Generic_Procedure_Renaming_Declaration
3822 or else NT (N).Nkind = N_Package_Body
3823 or else NT (N).Nkind = N_Package_Instantiation
3824 or else NT (N).Nkind = N_Package_Renaming_Declaration
3825 or else NT (N).Nkind = N_Package_Specification
3826 or else NT (N).Nkind = N_Procedure_Instantiation
3827 or else NT (N).Nkind = N_Procedure_Specification);
3828 Set_Node1_With_Parent (N, Val);
3829 end Set_Defining_Unit_Name;
3831 procedure Set_Delay_Alternative
3832 (N : Node_Id; Val : Node_Id) is
3834 pragma Assert (False
3835 or else NT (N).Nkind = N_Timed_Entry_Call);
3836 Set_Node4_With_Parent (N, Val);
3837 end Set_Delay_Alternative;
3839 procedure Set_Delay_Statement
3840 (N : Node_Id; Val : Node_Id) is
3842 pragma Assert (False
3843 or else NT (N).Nkind = N_Delay_Alternative);
3844 Set_Node2_With_Parent (N, Val);
3845 end Set_Delay_Statement;
3847 procedure Set_Delta_Expression
3848 (N : Node_Id; Val : Node_Id) is
3850 pragma Assert (False
3851 or else NT (N).Nkind = N_Decimal_Fixed_Point_Definition
3852 or else NT (N).Nkind = N_Delta_Constraint
3853 or else NT (N).Nkind = N_Ordinary_Fixed_Point_Definition);
3854 Set_Node3_With_Parent (N, Val);
3855 end Set_Delta_Expression;
3857 procedure Set_Digits_Expression
3858 (N : Node_Id; Val : Node_Id) is
3860 pragma Assert (False
3861 or else NT (N).Nkind = N_Decimal_Fixed_Point_Definition
3862 or else NT (N).Nkind = N_Digits_Constraint
3863 or else NT (N).Nkind = N_Floating_Point_Definition);
3864 Set_Node2_With_Parent (N, Val);
3865 end Set_Digits_Expression;
3867 procedure Set_Discr_Check_Funcs_Built
3868 (N : Node_Id; Val : Boolean := True) is
3870 pragma Assert (False
3871 or else NT (N).Nkind = N_Full_Type_Declaration);
3872 Set_Flag11 (N, Val);
3873 end Set_Discr_Check_Funcs_Built;
3875 procedure Set_Discrete_Choices
3876 (N : Node_Id; Val : List_Id) is
3878 pragma Assert (False
3879 or else NT (N).Nkind = N_Case_Expression_Alternative
3880 or else NT (N).Nkind = N_Case_Statement_Alternative
3881 or else NT (N).Nkind = N_Variant);
3882 Set_List4_With_Parent (N, Val);
3883 end Set_Discrete_Choices;
3885 procedure Set_Discrete_Range
3886 (N : Node_Id; Val : Node_Id) is
3888 pragma Assert (False
3889 or else NT (N).Nkind = N_Slice);
3890 Set_Node4_With_Parent (N, Val);
3891 end Set_Discrete_Range;
3893 procedure Set_Discrete_Subtype_Definition
3894 (N : Node_Id; Val : Node_Id) is
3896 pragma Assert (False
3897 or else NT (N).Nkind = N_Entry_Declaration
3898 or else NT (N).Nkind = N_Entry_Index_Specification
3899 or else NT (N).Nkind = N_Loop_Parameter_Specification);
3900 Set_Node4_With_Parent (N, Val);
3901 end Set_Discrete_Subtype_Definition;
3903 procedure Set_Discrete_Subtype_Definitions
3904 (N : Node_Id; Val : List_Id) is
3906 pragma Assert (False
3907 or else NT (N).Nkind = N_Constrained_Array_Definition);
3908 Set_List2_With_Parent (N, Val);
3909 end Set_Discrete_Subtype_Definitions;
3911 procedure Set_Discriminant_Specifications
3912 (N : Node_Id; Val : List_Id) is
3914 pragma Assert (False
3915 or else NT (N).Nkind = N_Formal_Type_Declaration
3916 or else NT (N).Nkind = N_Full_Type_Declaration
3917 or else NT (N).Nkind = N_Incomplete_Type_Declaration
3918 or else NT (N).Nkind = N_Private_Extension_Declaration
3919 or else NT (N).Nkind = N_Private_Type_Declaration
3920 or else NT (N).Nkind = N_Protected_Type_Declaration
3921 or else NT (N).Nkind = N_Task_Type_Declaration);
3922 Set_List4_With_Parent (N, Val);
3923 end Set_Discriminant_Specifications;
3925 procedure Set_Discriminant_Type
3926 (N : Node_Id; Val : Node_Id) is
3928 pragma Assert (False
3929 or else NT (N).Nkind = N_Discriminant_Specification);
3930 Set_Node5_With_Parent (N, Val);
3931 end Set_Discriminant_Type;
3933 procedure Set_Do_Accessibility_Check
3934 (N : Node_Id; Val : Boolean := True) is
3936 pragma Assert (False
3937 or else NT (N).Nkind = N_Parameter_Specification);
3938 Set_Flag13 (N, Val);
3939 end Set_Do_Accessibility_Check;
3941 procedure Set_Do_Discriminant_Check
3942 (N : Node_Id; Val : Boolean := True) is
3944 pragma Assert (False
3945 or else NT (N).Nkind = N_Selected_Component);
3946 Set_Flag13 (N, Val);
3947 end Set_Do_Discriminant_Check;
3949 procedure Set_Do_Division_Check
3950 (N : Node_Id; Val : Boolean := True) is
3952 pragma Assert (False
3953 or else NT (N).Nkind = N_Op_Divide
3954 or else NT (N).Nkind = N_Op_Mod
3955 or else NT (N).Nkind = N_Op_Rem);
3956 Set_Flag13 (N, Val);
3957 end Set_Do_Division_Check;
3959 procedure Set_Do_Length_Check
3960 (N : Node_Id; Val : Boolean := True) is
3962 pragma Assert (False
3963 or else NT (N).Nkind = N_Assignment_Statement
3964 or else NT (N).Nkind = N_Op_And
3965 or else NT (N).Nkind = N_Op_Or
3966 or else NT (N).Nkind = N_Op_Xor
3967 or else NT (N).Nkind = N_Type_Conversion);
3969 end Set_Do_Length_Check;
3971 procedure Set_Do_Overflow_Check
3972 (N : Node_Id; Val : Boolean := True) is
3974 pragma Assert (False
3975 or else NT (N).Nkind in N_Op
3976 or else NT (N).Nkind = N_Attribute_Reference
3977 or else NT (N).Nkind = N_Type_Conversion);
3978 Set_Flag17 (N, Val);
3979 end Set_Do_Overflow_Check;
3981 procedure Set_Do_Range_Check
3982 (N : Node_Id; Val : Boolean := True) is
3984 pragma Assert (False
3985 or else NT (N).Nkind in N_Subexpr);
3987 end Set_Do_Range_Check;
3989 procedure Set_Do_Storage_Check
3990 (N : Node_Id; Val : Boolean := True) is
3992 pragma Assert (False
3993 or else NT (N).Nkind = N_Allocator
3994 or else NT (N).Nkind = N_Subprogram_Body);
3995 Set_Flag17 (N, Val);
3996 end Set_Do_Storage_Check;
3998 procedure Set_Do_Tag_Check
3999 (N : Node_Id; Val : Boolean := True) is
4001 pragma Assert (False
4002 or else NT (N).Nkind = N_Assignment_Statement
4003 or else NT (N).Nkind = N_Extended_Return_Statement
4004 or else NT (N).Nkind = N_Function_Call
4005 or else NT (N).Nkind = N_Procedure_Call_Statement
4006 or else NT (N).Nkind = N_Return_Statement
4007 or else NT (N).Nkind = N_Type_Conversion);
4008 Set_Flag13 (N, Val);
4009 end Set_Do_Tag_Check;
4011 procedure Set_Elaborate_All_Desirable
4012 (N : Node_Id; Val : Boolean := True) is
4014 pragma Assert (False
4015 or else NT (N).Nkind = N_With_Clause);
4017 end Set_Elaborate_All_Desirable;
4019 procedure Set_Elaborate_All_Present
4020 (N : Node_Id; Val : Boolean := True) is
4022 pragma Assert (False
4023 or else NT (N).Nkind = N_With_Clause);
4024 Set_Flag14 (N, Val);
4025 end Set_Elaborate_All_Present;
4027 procedure Set_Elaborate_Desirable
4028 (N : Node_Id; Val : Boolean := True) is
4030 pragma Assert (False
4031 or else NT (N).Nkind = N_With_Clause);
4032 Set_Flag11 (N, Val);
4033 end Set_Elaborate_Desirable;
4035 procedure Set_Elaborate_Present
4036 (N : Node_Id; Val : Boolean := True) is
4038 pragma Assert (False
4039 or else NT (N).Nkind = N_With_Clause);
4041 end Set_Elaborate_Present;
4043 procedure Set_Elaboration_Boolean
4044 (N : Node_Id; Val : Node_Id) is
4046 pragma Assert (False
4047 or else NT (N).Nkind = N_Function_Specification
4048 or else NT (N).Nkind = N_Procedure_Specification);
4050 end Set_Elaboration_Boolean;
4052 procedure Set_Else_Actions
4053 (N : Node_Id; Val : List_Id) is
4055 pragma Assert (False
4056 or else NT (N).Nkind = N_Conditional_Expression);
4057 Set_List3 (N, Val); -- semantic field, no parent set
4058 end Set_Else_Actions;
4060 procedure Set_Else_Statements
4061 (N : Node_Id; Val : List_Id) is
4063 pragma Assert (False
4064 or else NT (N).Nkind = N_Conditional_Entry_Call
4065 or else NT (N).Nkind = N_If_Statement
4066 or else NT (N).Nkind = N_Selective_Accept);
4067 Set_List4_With_Parent (N, Val);
4068 end Set_Else_Statements;
4070 procedure Set_Elsif_Parts
4071 (N : Node_Id; Val : List_Id) is
4073 pragma Assert (False
4074 or else NT (N).Nkind = N_If_Statement);
4075 Set_List3_With_Parent (N, Val);
4076 end Set_Elsif_Parts;
4078 procedure Set_Enclosing_Variant
4079 (N : Node_Id; Val : Node_Id) is
4081 pragma Assert (False
4082 or else NT (N).Nkind = N_Variant);
4083 Set_Node2 (N, Val); -- semantic field, no parent set
4084 end Set_Enclosing_Variant;
4086 procedure Set_End_Label
4087 (N : Node_Id; Val : Node_Id) is
4089 pragma Assert (False
4090 or else NT (N).Nkind = N_Enumeration_Type_Definition
4091 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements
4092 or else NT (N).Nkind = N_Loop_Statement
4093 or else NT (N).Nkind = N_Package_Specification
4094 or else NT (N).Nkind = N_Protected_Body
4095 or else NT (N).Nkind = N_Protected_Definition
4096 or else NT (N).Nkind = N_Record_Definition
4097 or else NT (N).Nkind = N_Task_Definition);
4098 Set_Node4_With_Parent (N, Val);
4101 procedure Set_End_Span
4102 (N : Node_Id; Val : Uint) is
4104 pragma Assert (False
4105 or else NT (N).Nkind = N_Case_Statement
4106 or else NT (N).Nkind = N_If_Statement);
4110 procedure Set_Entity
4111 (N : Node_Id; Val : Node_Id) is
4113 pragma Assert (False
4114 or else NT (N).Nkind in N_Has_Entity
4115 or else NT (N).Nkind = N_Aspect_Specification
4116 or else NT (N).Nkind = N_Attribute_Definition_Clause
4117 or else NT (N).Nkind = N_Freeze_Entity);
4118 Set_Node4 (N, Val); -- semantic field, no parent set
4121 procedure Set_Entry_Body_Formal_Part
4122 (N : Node_Id; Val : Node_Id) is
4124 pragma Assert (False
4125 or else NT (N).Nkind = N_Entry_Body);
4126 Set_Node5_With_Parent (N, Val);
4127 end Set_Entry_Body_Formal_Part;
4129 procedure Set_Entry_Call_Alternative
4130 (N : Node_Id; Val : Node_Id) is
4132 pragma Assert (False
4133 or else NT (N).Nkind = N_Conditional_Entry_Call
4134 or else NT (N).Nkind = N_Timed_Entry_Call);
4135 Set_Node1_With_Parent (N, Val);
4136 end Set_Entry_Call_Alternative;
4138 procedure Set_Entry_Call_Statement
4139 (N : Node_Id; Val : Node_Id) is
4141 pragma Assert (False
4142 or else NT (N).Nkind = N_Entry_Call_Alternative);
4143 Set_Node1_With_Parent (N, Val);
4144 end Set_Entry_Call_Statement;
4146 procedure Set_Entry_Direct_Name
4147 (N : Node_Id; Val : Node_Id) is
4149 pragma Assert (False
4150 or else NT (N).Nkind = N_Accept_Statement);
4151 Set_Node1_With_Parent (N, Val);
4152 end Set_Entry_Direct_Name;
4154 procedure Set_Entry_Index
4155 (N : Node_Id; Val : Node_Id) is
4157 pragma Assert (False
4158 or else NT (N).Nkind = N_Accept_Statement);
4159 Set_Node5_With_Parent (N, Val);
4160 end Set_Entry_Index;
4162 procedure Set_Entry_Index_Specification
4163 (N : Node_Id; Val : Node_Id) is
4165 pragma Assert (False
4166 or else NT (N).Nkind = N_Entry_Body_Formal_Part);
4167 Set_Node4_With_Parent (N, Val);
4168 end Set_Entry_Index_Specification;
4171 (N : Node_Id; Val : Node_Id) is
4173 pragma Assert (False
4174 or else NT (N).Nkind in N_Has_Etype);
4175 Set_Node5 (N, Val); -- semantic field, no parent set
4178 procedure Set_Exception_Choices
4179 (N : Node_Id; Val : List_Id) is
4181 pragma Assert (False
4182 or else NT (N).Nkind = N_Exception_Handler);
4183 Set_List4_With_Parent (N, Val);
4184 end Set_Exception_Choices;
4186 procedure Set_Exception_Handlers
4187 (N : Node_Id; Val : List_Id) is
4189 pragma Assert (False
4190 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements);
4191 Set_List5_With_Parent (N, Val);
4192 end Set_Exception_Handlers;
4194 procedure Set_Exception_Junk
4195 (N : Node_Id; Val : Boolean := True) is
4197 pragma Assert (False
4198 or else NT (N).Nkind = N_Block_Statement
4199 or else NT (N).Nkind = N_Goto_Statement
4200 or else NT (N).Nkind = N_Label
4201 or else NT (N).Nkind = N_Object_Declaration
4202 or else NT (N).Nkind = N_Subtype_Declaration);
4204 end Set_Exception_Junk;
4206 procedure Set_Exception_Label
4207 (N : Node_Id; Val : Node_Id) is
4209 pragma Assert (False
4210 or else NT (N).Nkind = N_Exception_Handler
4211 or else NT (N).Nkind = N_Push_Constraint_Error_Label
4212 or else NT (N).Nkind = N_Push_Program_Error_Label
4213 or else NT (N).Nkind = N_Push_Storage_Error_Label);
4214 Set_Node5 (N, Val); -- semantic field, no parent set
4215 end Set_Exception_Label;
4217 procedure Set_Expansion_Delayed
4218 (N : Node_Id; Val : Boolean := True) is
4220 pragma Assert (False
4221 or else NT (N).Nkind = N_Aggregate
4222 or else NT (N).Nkind = N_Extension_Aggregate);
4223 Set_Flag11 (N, Val);
4224 end Set_Expansion_Delayed;
4226 procedure Set_Explicit_Actual_Parameter
4227 (N : Node_Id; Val : Node_Id) is
4229 pragma Assert (False
4230 or else NT (N).Nkind = N_Parameter_Association);
4231 Set_Node3_With_Parent (N, Val);
4232 end Set_Explicit_Actual_Parameter;
4234 procedure Set_Explicit_Generic_Actual_Parameter
4235 (N : Node_Id; Val : Node_Id) is
4237 pragma Assert (False
4238 or else NT (N).Nkind = N_Generic_Association);
4239 Set_Node1_With_Parent (N, Val);
4240 end Set_Explicit_Generic_Actual_Parameter;
4242 procedure Set_Expression
4243 (N : Node_Id; Val : Node_Id) is
4245 pragma Assert (False
4246 or else NT (N).Nkind = N_Allocator
4247 or else NT (N).Nkind = N_Aspect_Specification
4248 or else NT (N).Nkind = N_Assignment_Statement
4249 or else NT (N).Nkind = N_At_Clause
4250 or else NT (N).Nkind = N_Attribute_Definition_Clause
4251 or else NT (N).Nkind = N_Case_Expression
4252 or else NT (N).Nkind = N_Case_Expression_Alternative
4253 or else NT (N).Nkind = N_Case_Statement
4254 or else NT (N).Nkind = N_Code_Statement
4255 or else NT (N).Nkind = N_Component_Association
4256 or else NT (N).Nkind = N_Component_Declaration
4257 or else NT (N).Nkind = N_Delay_Relative_Statement
4258 or else NT (N).Nkind = N_Delay_Until_Statement
4259 or else NT (N).Nkind = N_Discriminant_Association
4260 or else NT (N).Nkind = N_Discriminant_Specification
4261 or else NT (N).Nkind = N_Exception_Declaration
4262 or else NT (N).Nkind = N_Expression_Function
4263 or else NT (N).Nkind = N_Expression_With_Actions
4264 or else NT (N).Nkind = N_Free_Statement
4265 or else NT (N).Nkind = N_Mod_Clause
4266 or else NT (N).Nkind = N_Modular_Type_Definition
4267 or else NT (N).Nkind = N_Number_Declaration
4268 or else NT (N).Nkind = N_Object_Declaration
4269 or else NT (N).Nkind = N_Parameter_Specification
4270 or else NT (N).Nkind = N_Pragma_Argument_Association
4271 or else NT (N).Nkind = N_Qualified_Expression
4272 or else NT (N).Nkind = N_Raise_Statement
4273 or else NT (N).Nkind = N_Return_Statement
4274 or else NT (N).Nkind = N_Type_Conversion
4275 or else NT (N).Nkind = N_Unchecked_Expression
4276 or else NT (N).Nkind = N_Unchecked_Type_Conversion);
4277 Set_Node3_With_Parent (N, Val);
4280 procedure Set_Expressions
4281 (N : Node_Id; Val : List_Id) is
4283 pragma Assert (False
4284 or else NT (N).Nkind = N_Aggregate
4285 or else NT (N).Nkind = N_Attribute_Reference
4286 or else NT (N).Nkind = N_Conditional_Expression
4287 or else NT (N).Nkind = N_Extension_Aggregate
4288 or else NT (N).Nkind = N_Indexed_Component);
4289 Set_List1_With_Parent (N, Val);
4290 end Set_Expressions;
4292 procedure Set_First_Bit
4293 (N : Node_Id; Val : Node_Id) is
4295 pragma Assert (False
4296 or else NT (N).Nkind = N_Component_Clause);
4297 Set_Node3_With_Parent (N, Val);
4300 procedure Set_First_Inlined_Subprogram
4301 (N : Node_Id; Val : Entity_Id) is
4303 pragma Assert (False
4304 or else NT (N).Nkind = N_Compilation_Unit);
4305 Set_Node3 (N, Val); -- semantic field, no parent set
4306 end Set_First_Inlined_Subprogram;
4308 procedure Set_First_Name
4309 (N : Node_Id; Val : Boolean := True) is
4311 pragma Assert (False
4312 or else NT (N).Nkind = N_With_Clause);
4316 procedure Set_First_Named_Actual
4317 (N : Node_Id; Val : Node_Id) is
4319 pragma Assert (False
4320 or else NT (N).Nkind = N_Entry_Call_Statement
4321 or else NT (N).Nkind = N_Function_Call
4322 or else NT (N).Nkind = N_Procedure_Call_Statement);
4323 Set_Node4 (N, Val); -- semantic field, no parent set
4324 end Set_First_Named_Actual;
4326 procedure Set_First_Real_Statement
4327 (N : Node_Id; Val : Node_Id) is
4329 pragma Assert (False
4330 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements);
4331 Set_Node2 (N, Val); -- semantic field, no parent set
4332 end Set_First_Real_Statement;
4334 procedure Set_First_Subtype_Link
4335 (N : Node_Id; Val : Entity_Id) is
4337 pragma Assert (False
4338 or else NT (N).Nkind = N_Freeze_Entity);
4339 Set_Node5 (N, Val); -- semantic field, no parent set
4340 end Set_First_Subtype_Link;
4342 procedure Set_Float_Truncate
4343 (N : Node_Id; Val : Boolean := True) is
4345 pragma Assert (False
4346 or else NT (N).Nkind = N_Type_Conversion);
4347 Set_Flag11 (N, Val);
4348 end Set_Float_Truncate;
4350 procedure Set_Formal_Type_Definition
4351 (N : Node_Id; Val : Node_Id) is
4353 pragma Assert (False
4354 or else NT (N).Nkind = N_Formal_Type_Declaration);
4355 Set_Node3_With_Parent (N, Val);
4356 end Set_Formal_Type_Definition;
4358 procedure Set_Forwards_OK
4359 (N : Node_Id; Val : Boolean := True) is
4361 pragma Assert (False
4362 or else NT (N).Nkind = N_Assignment_Statement);
4364 end Set_Forwards_OK;
4366 procedure Set_From_Aspect_Specification
4367 (N : Node_Id; Val : Boolean := True) is
4369 pragma Assert (False
4370 or else NT (N).Nkind = N_Attribute_Definition_Clause
4371 or else NT (N).Nkind = N_Pragma);
4372 Set_Flag13 (N, Val);
4373 end Set_From_Aspect_Specification;
4375 procedure Set_From_At_End
4376 (N : Node_Id; Val : Boolean := True) is
4378 pragma Assert (False
4379 or else NT (N).Nkind = N_Raise_Statement);
4381 end Set_From_At_End;
4383 procedure Set_From_At_Mod
4384 (N : Node_Id; Val : Boolean := True) is
4386 pragma Assert (False
4387 or else NT (N).Nkind = N_Attribute_Definition_Clause);
4389 end Set_From_At_Mod;
4391 procedure Set_From_Default
4392 (N : Node_Id; Val : Boolean := True) is
4394 pragma Assert (False
4395 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration);
4397 end Set_From_Default;
4399 procedure Set_From_Dynamic_Predicate
4400 (N : Node_Id; Val : Boolean := True) is
4402 pragma Assert (False
4403 or else NT (N).Nkind = N_Pragma);
4405 end Set_From_Dynamic_Predicate;
4407 procedure Set_From_Static_Predicate
4408 (N : Node_Id; Val : Boolean := True) is
4410 pragma Assert (False
4411 or else NT (N).Nkind = N_Pragma);
4413 end Set_From_Static_Predicate;
4415 procedure Set_Generic_Associations
4416 (N : Node_Id; Val : List_Id) is
4418 pragma Assert (False
4419 or else NT (N).Nkind = N_Formal_Package_Declaration
4420 or else NT (N).Nkind = N_Function_Instantiation
4421 or else NT (N).Nkind = N_Package_Instantiation
4422 or else NT (N).Nkind = N_Procedure_Instantiation);
4423 Set_List3_With_Parent (N, Val);
4424 end Set_Generic_Associations;
4426 procedure Set_Generic_Formal_Declarations
4427 (N : Node_Id; Val : List_Id) is
4429 pragma Assert (False
4430 or else NT (N).Nkind = N_Generic_Package_Declaration
4431 or else NT (N).Nkind = N_Generic_Subprogram_Declaration);
4432 Set_List2_With_Parent (N, Val);
4433 end Set_Generic_Formal_Declarations;
4435 procedure Set_Generic_Parent
4436 (N : Node_Id; Val : Node_Id) is
4438 pragma Assert (False
4439 or else NT (N).Nkind = N_Function_Specification
4440 or else NT (N).Nkind = N_Package_Specification
4441 or else NT (N).Nkind = N_Procedure_Specification);
4443 end Set_Generic_Parent;
4445 procedure Set_Generic_Parent_Type
4446 (N : Node_Id; Val : Node_Id) is
4448 pragma Assert (False
4449 or else NT (N).Nkind = N_Subtype_Declaration);
4451 end Set_Generic_Parent_Type;
4453 procedure Set_Handled_Statement_Sequence
4454 (N : Node_Id; Val : Node_Id) is
4456 pragma Assert (False
4457 or else NT (N).Nkind = N_Accept_Statement
4458 or else NT (N).Nkind = N_Block_Statement
4459 or else NT (N).Nkind = N_Entry_Body
4460 or else NT (N).Nkind = N_Extended_Return_Statement
4461 or else NT (N).Nkind = N_Package_Body
4462 or else NT (N).Nkind = N_Subprogram_Body
4463 or else NT (N).Nkind = N_Task_Body);
4464 Set_Node4_With_Parent (N, Val);
4465 end Set_Handled_Statement_Sequence;
4467 procedure Set_Handler_List_Entry
4468 (N : Node_Id; Val : Node_Id) is
4470 pragma Assert (False
4471 or else NT (N).Nkind = N_Object_Declaration);
4473 end Set_Handler_List_Entry;
4475 procedure Set_Has_Created_Identifier
4476 (N : Node_Id; Val : Boolean := True) is
4478 pragma Assert (False
4479 or else NT (N).Nkind = N_Block_Statement
4480 or else NT (N).Nkind = N_Loop_Statement);
4481 Set_Flag15 (N, Val);
4482 end Set_Has_Created_Identifier;
4484 procedure Set_Has_Dynamic_Length_Check
4485 (N : Node_Id; Val : Boolean := True) is
4487 pragma Assert (False
4488 or else NT (N).Nkind in N_Subexpr);
4489 Set_Flag10 (N, Val);
4490 end Set_Has_Dynamic_Length_Check;
4492 procedure Set_Has_Dynamic_Range_Check
4493 (N : Node_Id; Val : Boolean := True) is
4495 pragma Assert (False
4496 or else NT (N).Nkind = N_Subtype_Declaration
4497 or else NT (N).Nkind in N_Subexpr);
4498 Set_Flag12 (N, Val);
4499 end Set_Has_Dynamic_Range_Check;
4501 procedure Set_Has_Init_Expression
4502 (N : Node_Id; Val : Boolean := True) is
4504 pragma Assert (False
4505 or else NT (N).Nkind = N_Object_Declaration);
4506 Set_Flag14 (N, Val);
4507 end Set_Has_Init_Expression;
4509 procedure Set_Has_Local_Raise
4510 (N : Node_Id; Val : Boolean := True) is
4512 pragma Assert (False
4513 or else NT (N).Nkind = N_Exception_Handler);
4515 end Set_Has_Local_Raise;
4517 procedure Set_Has_No_Elaboration_Code
4518 (N : Node_Id; Val : Boolean := True) is
4520 pragma Assert (False
4521 or else NT (N).Nkind = N_Compilation_Unit);
4522 Set_Flag17 (N, Val);
4523 end Set_Has_No_Elaboration_Code;
4525 procedure Set_Has_Pragma_CPU
4526 (N : Node_Id; Val : Boolean := True) is
4528 pragma Assert (False
4529 or else NT (N).Nkind = N_Subprogram_Body
4530 or else NT (N).Nkind = N_Task_Definition);
4531 Set_Flag14 (N, Val);
4532 end Set_Has_Pragma_CPU;
4534 procedure Set_Has_Pragma_Dispatching_Domain
4535 (N : Node_Id; Val : Boolean := True) is
4537 pragma Assert (False
4538 or else NT (N).Nkind = N_Task_Definition);
4539 Set_Flag15 (N, Val);
4540 end Set_Has_Pragma_Dispatching_Domain;
4542 procedure Set_Has_Pragma_Priority
4543 (N : Node_Id; Val : Boolean := True) is
4545 pragma Assert (False
4546 or else NT (N).Nkind = N_Protected_Definition
4547 or else NT (N).Nkind = N_Subprogram_Body
4548 or else NT (N).Nkind = N_Task_Definition);
4550 end Set_Has_Pragma_Priority;
4552 procedure Set_Has_Pragma_Suppress_All
4553 (N : Node_Id; Val : Boolean := True) is
4555 pragma Assert (False
4556 or else NT (N).Nkind = N_Compilation_Unit);
4557 Set_Flag14 (N, Val);
4558 end Set_Has_Pragma_Suppress_All;
4560 procedure Set_Has_Private_View
4561 (N : Node_Id; Val : Boolean := True) is
4563 pragma Assert (False
4564 or else NT (N).Nkind in N_Op
4565 or else NT (N).Nkind = N_Character_Literal
4566 or else NT (N).Nkind = N_Expanded_Name
4567 or else NT (N).Nkind = N_Identifier
4568 or else NT (N).Nkind = N_Operator_Symbol);
4569 Set_Flag11 (N, Val);
4570 end Set_Has_Private_View;
4572 procedure Set_Has_Relative_Deadline_Pragma
4573 (N : Node_Id; Val : Boolean := True) is
4575 pragma Assert (False
4576 or else NT (N).Nkind = N_Subprogram_Body
4577 or else NT (N).Nkind = N_Task_Definition);
4579 end Set_Has_Relative_Deadline_Pragma;
4581 procedure Set_Has_Self_Reference
4582 (N : Node_Id; Val : Boolean := True) is
4584 pragma Assert (False
4585 or else NT (N).Nkind = N_Aggregate
4586 or else NT (N).Nkind = N_Extension_Aggregate);
4587 Set_Flag13 (N, Val);
4588 end Set_Has_Self_Reference;
4590 procedure Set_Has_Storage_Size_Pragma
4591 (N : Node_Id; Val : Boolean := True) is
4593 pragma Assert (False
4594 or else NT (N).Nkind = N_Task_Definition);
4596 end Set_Has_Storage_Size_Pragma;
4598 procedure Set_Has_Task_Info_Pragma
4599 (N : Node_Id; Val : Boolean := True) is
4601 pragma Assert (False
4602 or else NT (N).Nkind = N_Task_Definition);
4604 end Set_Has_Task_Info_Pragma;
4606 procedure Set_Has_Task_Name_Pragma
4607 (N : Node_Id; Val : Boolean := True) is
4609 pragma Assert (False
4610 or else NT (N).Nkind = N_Task_Definition);
4612 end Set_Has_Task_Name_Pragma;
4614 procedure Set_Has_Wide_Character
4615 (N : Node_Id; Val : Boolean := True) is
4617 pragma Assert (False
4618 or else NT (N).Nkind = N_String_Literal);
4619 Set_Flag11 (N, Val);
4620 end Set_Has_Wide_Character;
4622 procedure Set_Has_Wide_Wide_Character
4623 (N : Node_Id; Val : Boolean := True) is
4625 pragma Assert (False
4626 or else NT (N).Nkind = N_String_Literal);
4627 Set_Flag13 (N, Val);
4628 end Set_Has_Wide_Wide_Character;
4630 procedure Set_Hidden_By_Use_Clause
4631 (N : Node_Id; Val : Elist_Id) is
4633 pragma Assert (False
4634 or else NT (N).Nkind = N_Use_Package_Clause
4635 or else NT (N).Nkind = N_Use_Type_Clause);
4636 Set_Elist4 (N, Val);
4637 end Set_Hidden_By_Use_Clause;
4639 procedure Set_High_Bound
4640 (N : Node_Id; Val : Node_Id) is
4642 pragma Assert (False
4643 or else NT (N).Nkind = N_Range
4644 or else NT (N).Nkind = N_Real_Range_Specification
4645 or else NT (N).Nkind = N_Signed_Integer_Type_Definition);
4646 Set_Node2_With_Parent (N, Val);
4649 procedure Set_Identifier
4650 (N : Node_Id; Val : Node_Id) is
4652 pragma Assert (False
4653 or else NT (N).Nkind = N_Aspect_Specification
4654 or else NT (N).Nkind = N_At_Clause
4655 or else NT (N).Nkind = N_Block_Statement
4656 or else NT (N).Nkind = N_Designator
4657 or else NT (N).Nkind = N_Enumeration_Representation_Clause
4658 or else NT (N).Nkind = N_Label
4659 or else NT (N).Nkind = N_Loop_Statement
4660 or else NT (N).Nkind = N_Record_Representation_Clause
4661 or else NT (N).Nkind = N_Subprogram_Info);
4662 Set_Node1_With_Parent (N, Val);
4665 procedure Set_Implicit_With
4666 (N : Node_Id; Val : Boolean := True) is
4668 pragma Assert (False
4669 or else NT (N).Nkind = N_With_Clause);
4670 Set_Flag16 (N, Val);
4671 end Set_Implicit_With;
4673 procedure Set_Interface_List
4674 (N : Node_Id; Val : List_Id) is
4676 pragma Assert (False
4677 or else NT (N).Nkind = N_Derived_Type_Definition
4678 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
4679 or else NT (N).Nkind = N_Private_Extension_Declaration
4680 or else NT (N).Nkind = N_Protected_Type_Declaration
4681 or else NT (N).Nkind = N_Record_Definition
4682 or else NT (N).Nkind = N_Single_Protected_Declaration
4683 or else NT (N).Nkind = N_Single_Task_Declaration
4684 or else NT (N).Nkind = N_Task_Type_Declaration);
4685 Set_List2_With_Parent (N, Val);
4686 end Set_Interface_List;
4688 procedure Set_Interface_Present
4689 (N : Node_Id; Val : Boolean := True) is
4691 pragma Assert (False
4692 or else NT (N).Nkind = N_Derived_Type_Definition
4693 or else NT (N).Nkind = N_Record_Definition);
4694 Set_Flag16 (N, Val);
4695 end Set_Interface_Present;
4697 procedure Set_Import_Interface_Present
4698 (N : Node_Id; Val : Boolean := True) is
4700 pragma Assert (False
4701 or else NT (N).Nkind = N_Pragma);
4702 Set_Flag16 (N, Val);
4703 end Set_Import_Interface_Present;
4705 procedure Set_In_Present
4706 (N : Node_Id; Val : Boolean := True) is
4708 pragma Assert (False
4709 or else NT (N).Nkind = N_Formal_Object_Declaration
4710 or else NT (N).Nkind = N_Parameter_Specification);
4711 Set_Flag15 (N, Val);
4714 procedure Set_Includes_Infinities
4715 (N : Node_Id; Val : Boolean := True) is
4717 pragma Assert (False
4718 or else NT (N).Nkind = N_Range);
4719 Set_Flag11 (N, Val);
4720 end Set_Includes_Infinities;
4722 procedure Set_Inherited_Discriminant
4723 (N : Node_Id; Val : Boolean := True) is
4725 pragma Assert (False
4726 or else NT (N).Nkind = N_Component_Association);
4727 Set_Flag13 (N, Val);
4728 end Set_Inherited_Discriminant;
4730 procedure Set_Instance_Spec
4731 (N : Node_Id; Val : Node_Id) is
4733 pragma Assert (False
4734 or else NT (N).Nkind = N_Formal_Package_Declaration
4735 or else NT (N).Nkind = N_Function_Instantiation
4736 or else NT (N).Nkind = N_Package_Instantiation
4737 or else NT (N).Nkind = N_Procedure_Instantiation);
4738 Set_Node5 (N, Val); -- semantic field, no Parent set
4739 end Set_Instance_Spec;
4741 procedure Set_Intval
4742 (N : Node_Id; Val : Uint) is
4744 pragma Assert (False
4745 or else NT (N).Nkind = N_Integer_Literal);
4749 procedure Set_Is_Accessibility_Actual
4750 (N : Node_Id; Val : Boolean := True) is
4752 pragma Assert (False
4753 or else NT (N).Nkind = N_Parameter_Association);
4754 Set_Flag13 (N, Val);
4755 end Set_Is_Accessibility_Actual;
4757 procedure Set_Is_Asynchronous_Call_Block
4758 (N : Node_Id; Val : Boolean := True) is
4760 pragma Assert (False
4761 or else NT (N).Nkind = N_Block_Statement);
4763 end Set_Is_Asynchronous_Call_Block;
4765 procedure Set_Is_Boolean_Aspect
4766 (N : Node_Id; Val : Boolean := True) is
4768 pragma Assert (False
4769 or else NT (N).Nkind = N_Aspect_Specification);
4770 Set_Flag16 (N, Val);
4771 end Set_Is_Boolean_Aspect;
4773 procedure Set_Is_Component_Left_Opnd
4774 (N : Node_Id; Val : Boolean := True) is
4776 pragma Assert (False
4777 or else NT (N).Nkind = N_Op_Concat);
4778 Set_Flag13 (N, Val);
4779 end Set_Is_Component_Left_Opnd;
4781 procedure Set_Is_Component_Right_Opnd
4782 (N : Node_Id; Val : Boolean := True) is
4784 pragma Assert (False
4785 or else NT (N).Nkind = N_Op_Concat);
4786 Set_Flag14 (N, Val);
4787 end Set_Is_Component_Right_Opnd;
4789 procedure Set_Is_Controlling_Actual
4790 (N : Node_Id; Val : Boolean := True) is
4792 pragma Assert (False
4793 or else NT (N).Nkind in N_Subexpr);
4794 Set_Flag16 (N, Val);
4795 end Set_Is_Controlling_Actual;
4797 procedure Set_Is_Delayed_Aspect
4798 (N : Node_Id; Val : Boolean := True) is
4800 pragma Assert (False
4801 or else NT (N).Nkind = N_Aspect_Specification
4802 or else NT (N).Nkind = N_Attribute_Definition_Clause
4803 or else NT (N).Nkind = N_Pragma);
4804 Set_Flag14 (N, Val);
4805 end Set_Is_Delayed_Aspect;
4807 procedure Set_Is_Dynamic_Coextension
4808 (N : Node_Id; Val : Boolean := True) is
4810 pragma Assert (False
4811 or else NT (N).Nkind = N_Allocator);
4812 Set_Flag18 (N, Val);
4813 end Set_Is_Dynamic_Coextension;
4815 procedure Set_Is_Elsif
4816 (N : Node_Id; Val : Boolean := True) is
4818 pragma Assert (False
4819 or else NT (N).Nkind = N_Conditional_Expression);
4820 Set_Flag13 (N, Val);
4823 procedure Set_Is_Entry_Barrier_Function
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_Entry_Barrier_Function;
4831 procedure Set_Is_Expanded_Build_In_Place_Call
4832 (N : Node_Id; Val : Boolean := True) is
4834 pragma Assert (False
4835 or else NT (N).Nkind = N_Function_Call);
4836 Set_Flag11 (N, Val);
4837 end Set_Is_Expanded_Build_In_Place_Call;
4839 procedure Set_Is_Folded_In_Parser
4840 (N : Node_Id; Val : Boolean := True) is
4842 pragma Assert (False
4843 or else NT (N).Nkind = N_String_Literal);
4845 end Set_Is_Folded_In_Parser;
4847 procedure Set_Is_In_Discriminant_Check
4848 (N : Node_Id; Val : Boolean := True) is
4850 pragma Assert (False
4851 or else NT (N).Nkind = N_Selected_Component);
4852 Set_Flag11 (N, Val);
4853 end Set_Is_In_Discriminant_Check;
4855 procedure Set_Is_Machine_Number
4856 (N : Node_Id; Val : Boolean := True) is
4858 pragma Assert (False
4859 or else NT (N).Nkind = N_Real_Literal);
4860 Set_Flag11 (N, Val);
4861 end Set_Is_Machine_Number;
4863 procedure Set_Is_Null_Loop
4864 (N : Node_Id; Val : Boolean := True) is
4866 pragma Assert (False
4867 or else NT (N).Nkind = N_Loop_Statement);
4868 Set_Flag16 (N, Val);
4869 end Set_Is_Null_Loop;
4871 procedure Set_Is_Overloaded
4872 (N : Node_Id; Val : Boolean := True) is
4874 pragma Assert (False
4875 or else NT (N).Nkind in N_Subexpr);
4877 end Set_Is_Overloaded;
4879 procedure Set_Is_Power_Of_2_For_Shift
4880 (N : Node_Id; Val : Boolean := True) is
4882 pragma Assert (False
4883 or else NT (N).Nkind = N_Op_Expon);
4884 Set_Flag13 (N, Val);
4885 end Set_Is_Power_Of_2_For_Shift;
4887 procedure Set_Is_Protected_Subprogram_Body
4888 (N : Node_Id; Val : Boolean := True) is
4890 pragma Assert (False
4891 or else NT (N).Nkind = N_Subprogram_Body);
4893 end Set_Is_Protected_Subprogram_Body;
4895 procedure Set_Is_Static_Coextension
4896 (N : Node_Id; Val : Boolean := True) is
4898 pragma Assert (False
4899 or else NT (N).Nkind = N_Allocator);
4900 Set_Flag14 (N, Val);
4901 end Set_Is_Static_Coextension;
4903 procedure Set_Is_Static_Expression
4904 (N : Node_Id; Val : Boolean := True) is
4906 pragma Assert (False
4907 or else NT (N).Nkind in N_Subexpr);
4909 end Set_Is_Static_Expression;
4911 procedure Set_Is_Subprogram_Descriptor
4912 (N : Node_Id; Val : Boolean := True) is
4914 pragma Assert (False
4915 or else NT (N).Nkind = N_Object_Declaration);
4916 Set_Flag16 (N, Val);
4917 end Set_Is_Subprogram_Descriptor;
4919 procedure Set_Is_Task_Allocation_Block
4920 (N : Node_Id; Val : Boolean := True) is
4922 pragma Assert (False
4923 or else NT (N).Nkind = N_Block_Statement);
4925 end Set_Is_Task_Allocation_Block;
4927 procedure Set_Is_Task_Master
4928 (N : Node_Id; Val : Boolean := True) is
4930 pragma Assert (False
4931 or else NT (N).Nkind = N_Block_Statement
4932 or else NT (N).Nkind = N_Subprogram_Body
4933 or else NT (N).Nkind = N_Task_Body);
4935 end Set_Is_Task_Master;
4937 procedure Set_Iteration_Scheme
4938 (N : Node_Id; Val : Node_Id) is
4940 pragma Assert (False
4941 or else NT (N).Nkind = N_Loop_Statement);
4942 Set_Node2_With_Parent (N, Val);
4943 end Set_Iteration_Scheme;
4945 procedure Set_Iterator_Specification
4946 (N : Node_Id; Val : Node_Id) is
4948 pragma Assert (False
4949 or else NT (N).Nkind = N_Iteration_Scheme
4950 or else NT (N).Nkind = N_Quantified_Expression);
4951 Set_Node2_With_Parent (N, Val);
4952 end Set_Iterator_Specification;
4955 (N : Node_Id; Val : Entity_Id) is
4957 pragma Assert (False
4958 or else NT (N).Nkind = N_Itype_Reference);
4959 Set_Node1 (N, Val); -- no parent, semantic field
4962 procedure Set_Kill_Range_Check
4963 (N : Node_Id; Val : Boolean := True) is
4965 pragma Assert (False
4966 or else NT (N).Nkind = N_Unchecked_Type_Conversion);
4967 Set_Flag11 (N, Val);
4968 end Set_Kill_Range_Check;
4970 procedure Set_Label_Construct
4971 (N : Node_Id; Val : Node_Id) is
4973 pragma Assert (False
4974 or else NT (N).Nkind = N_Implicit_Label_Declaration);
4975 Set_Node2 (N, Val); -- semantic field, no parent set
4976 end Set_Label_Construct;
4978 procedure Set_Last_Bit
4979 (N : Node_Id; Val : Node_Id) is
4981 pragma Assert (False
4982 or else NT (N).Nkind = N_Component_Clause);
4983 Set_Node4_With_Parent (N, Val);
4986 procedure Set_Last_Name
4987 (N : Node_Id; Val : Boolean := True) is
4989 pragma Assert (False
4990 or else NT (N).Nkind = N_With_Clause);
4994 procedure Set_Left_Opnd
4995 (N : Node_Id; Val : Node_Id) is
4997 pragma Assert (False
4998 or else NT (N).Nkind = N_And_Then
4999 or else NT (N).Nkind = N_In
5000 or else NT (N).Nkind = N_Not_In
5001 or else NT (N).Nkind = N_Or_Else
5002 or else NT (N).Nkind in N_Binary_Op);
5003 Set_Node2_With_Parent (N, Val);
5006 procedure Set_Library_Unit
5007 (N : Node_Id; Val : Node_Id) is
5009 pragma Assert (False
5010 or else NT (N).Nkind = N_Compilation_Unit
5011 or else NT (N).Nkind = N_Package_Body_Stub
5012 or else NT (N).Nkind = N_Protected_Body_Stub
5013 or else NT (N).Nkind = N_Subprogram_Body_Stub
5014 or else NT (N).Nkind = N_Task_Body_Stub
5015 or else NT (N).Nkind = N_With_Clause);
5016 Set_Node4 (N, Val); -- semantic field, no parent set
5017 end Set_Library_Unit;
5019 procedure Set_Limited_View_Installed
5020 (N : Node_Id; Val : Boolean := True) is
5022 pragma Assert (False
5023 or else NT (N).Nkind = N_Package_Specification
5024 or else NT (N).Nkind = N_With_Clause);
5025 Set_Flag18 (N, Val);
5026 end Set_Limited_View_Installed;
5028 procedure Set_Limited_Present
5029 (N : Node_Id; Val : Boolean := True) is
5031 pragma Assert (False
5032 or else NT (N).Nkind = N_Derived_Type_Definition
5033 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
5034 or else NT (N).Nkind = N_Formal_Private_Type_Definition
5035 or else NT (N).Nkind = N_Private_Extension_Declaration
5036 or else NT (N).Nkind = N_Private_Type_Declaration
5037 or else NT (N).Nkind = N_Record_Definition
5038 or else NT (N).Nkind = N_With_Clause);
5039 Set_Flag17 (N, Val);
5040 end Set_Limited_Present;
5042 procedure Set_Literals
5043 (N : Node_Id; Val : List_Id) is
5045 pragma Assert (False
5046 or else NT (N).Nkind = N_Enumeration_Type_Definition);
5047 Set_List1_With_Parent (N, Val);
5050 procedure Set_Local_Raise_Not_OK
5051 (N : Node_Id; Val : Boolean := True) is
5053 pragma Assert (False
5054 or else NT (N).Nkind = N_Exception_Handler);
5056 end Set_Local_Raise_Not_OK;
5058 procedure Set_Local_Raise_Statements
5059 (N : Node_Id; Val : Elist_Id) is
5061 pragma Assert (False
5062 or else NT (N).Nkind = N_Exception_Handler);
5063 Set_Elist1 (N, Val);
5064 end Set_Local_Raise_Statements;
5066 procedure Set_Loop_Actions
5067 (N : Node_Id; Val : List_Id) is
5069 pragma Assert (False
5070 or else NT (N).Nkind = N_Component_Association);
5071 Set_List2 (N, Val); -- semantic field, no parent set
5072 end Set_Loop_Actions;
5074 procedure Set_Loop_Parameter_Specification
5075 (N : Node_Id; Val : Node_Id) is
5077 pragma Assert (False
5078 or else NT (N).Nkind = N_Iteration_Scheme
5079 or else NT (N).Nkind = N_Quantified_Expression);
5080 Set_Node4_With_Parent (N, Val);
5081 end Set_Loop_Parameter_Specification;
5083 procedure Set_Low_Bound
5084 (N : Node_Id; Val : Node_Id) is
5086 pragma Assert (False
5087 or else NT (N).Nkind = N_Range
5088 or else NT (N).Nkind = N_Real_Range_Specification
5089 or else NT (N).Nkind = N_Signed_Integer_Type_Definition);
5090 Set_Node1_With_Parent (N, Val);
5093 procedure Set_Mod_Clause
5094 (N : Node_Id; Val : Node_Id) is
5096 pragma Assert (False
5097 or else NT (N).Nkind = N_Record_Representation_Clause);
5098 Set_Node2_With_Parent (N, Val);
5101 procedure Set_More_Ids
5102 (N : Node_Id; Val : Boolean := True) is
5104 pragma Assert (False
5105 or else NT (N).Nkind = N_Component_Declaration
5106 or else NT (N).Nkind = N_Discriminant_Specification
5107 or else NT (N).Nkind = N_Exception_Declaration
5108 or else NT (N).Nkind = N_Formal_Object_Declaration
5109 or else NT (N).Nkind = N_Number_Declaration
5110 or else NT (N).Nkind = N_Object_Declaration
5111 or else NT (N).Nkind = N_Parameter_Specification);
5115 procedure Set_Must_Be_Byte_Aligned
5116 (N : Node_Id; Val : Boolean := True) is
5118 pragma Assert (False
5119 or else NT (N).Nkind = N_Attribute_Reference);
5120 Set_Flag14 (N, Val);
5121 end Set_Must_Be_Byte_Aligned;
5123 procedure Set_Must_Not_Freeze
5124 (N : Node_Id; Val : Boolean := True) is
5126 pragma Assert (False
5127 or else NT (N).Nkind = N_Subtype_Indication
5128 or else NT (N).Nkind in N_Subexpr);
5130 end Set_Must_Not_Freeze;
5132 procedure Set_Must_Not_Override
5133 (N : Node_Id; Val : Boolean := True) is
5135 pragma Assert (False
5136 or else NT (N).Nkind = N_Entry_Declaration
5137 or else NT (N).Nkind = N_Function_Instantiation
5138 or else NT (N).Nkind = N_Function_Specification
5139 or else NT (N).Nkind = N_Procedure_Instantiation
5140 or else NT (N).Nkind = N_Procedure_Specification);
5141 Set_Flag15 (N, Val);
5142 end Set_Must_Not_Override;
5144 procedure Set_Must_Override
5145 (N : Node_Id; Val : Boolean := True) is
5147 pragma Assert (False
5148 or else NT (N).Nkind = N_Entry_Declaration
5149 or else NT (N).Nkind = N_Function_Instantiation
5150 or else NT (N).Nkind = N_Function_Specification
5151 or else NT (N).Nkind = N_Procedure_Instantiation
5152 or else NT (N).Nkind = N_Procedure_Specification);
5153 Set_Flag14 (N, Val);
5154 end Set_Must_Override;
5157 (N : Node_Id; Val : Node_Id) is
5159 pragma Assert (False
5160 or else NT (N).Nkind = N_Assignment_Statement
5161 or else NT (N).Nkind = N_Attribute_Definition_Clause
5162 or else NT (N).Nkind = N_Defining_Program_Unit_Name
5163 or else NT (N).Nkind = N_Designator
5164 or else NT (N).Nkind = N_Entry_Call_Statement
5165 or else NT (N).Nkind = N_Exception_Renaming_Declaration
5166 or else NT (N).Nkind = N_Exit_Statement
5167 or else NT (N).Nkind = N_Formal_Package_Declaration
5168 or else NT (N).Nkind = N_Function_Call
5169 or else NT (N).Nkind = N_Function_Instantiation
5170 or else NT (N).Nkind = N_Generic_Function_Renaming_Declaration
5171 or else NT (N).Nkind = N_Generic_Package_Renaming_Declaration
5172 or else NT (N).Nkind = N_Generic_Procedure_Renaming_Declaration
5173 or else NT (N).Nkind = N_Goto_Statement
5174 or else NT (N).Nkind = N_Iterator_Specification
5175 or else NT (N).Nkind = N_Object_Renaming_Declaration
5176 or else NT (N).Nkind = N_Package_Instantiation
5177 or else NT (N).Nkind = N_Package_Renaming_Declaration
5178 or else NT (N).Nkind = N_Procedure_Call_Statement
5179 or else NT (N).Nkind = N_Procedure_Instantiation
5180 or else NT (N).Nkind = N_Raise_Statement
5181 or else NT (N).Nkind = N_Requeue_Statement
5182 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration
5183 or else NT (N).Nkind = N_Subunit
5184 or else NT (N).Nkind = N_Variant_Part
5185 or else NT (N).Nkind = N_With_Clause);
5186 Set_Node2_With_Parent (N, Val);
5190 (N : Node_Id; Val : List_Id) is
5192 pragma Assert (False
5193 or else NT (N).Nkind = N_Abort_Statement
5194 or else NT (N).Nkind = N_Use_Package_Clause);
5195 Set_List2_With_Parent (N, Val);
5198 procedure Set_Next_Entity
5199 (N : Node_Id; Val : Node_Id) is
5201 pragma Assert (False
5202 or else NT (N).Nkind = N_Defining_Character_Literal
5203 or else NT (N).Nkind = N_Defining_Identifier
5204 or else NT (N).Nkind = N_Defining_Operator_Symbol);
5205 Set_Node2 (N, Val); -- semantic field, no parent set
5206 end Set_Next_Entity;
5208 procedure Set_Next_Exit_Statement
5209 (N : Node_Id; Val : Node_Id) is
5211 pragma Assert (False
5212 or else NT (N).Nkind = N_Exit_Statement);
5213 Set_Node3 (N, Val); -- semantic field, no parent set
5214 end Set_Next_Exit_Statement;
5216 procedure Set_Next_Implicit_With
5217 (N : Node_Id; Val : Node_Id) is
5219 pragma Assert (False
5220 or else NT (N).Nkind = N_With_Clause);
5221 Set_Node3 (N, Val); -- semantic field, no parent set
5222 end Set_Next_Implicit_With;
5224 procedure Set_Next_Named_Actual
5225 (N : Node_Id; Val : Node_Id) is
5227 pragma Assert (False
5228 or else NT (N).Nkind = N_Parameter_Association);
5229 Set_Node4 (N, Val); -- semantic field, no parent set
5230 end Set_Next_Named_Actual;
5232 procedure Set_Next_Pragma
5233 (N : Node_Id; Val : Node_Id) is
5235 pragma Assert (False
5236 or else NT (N).Nkind = N_Pragma);
5237 Set_Node1 (N, Val); -- semantic field, no parent set
5238 end Set_Next_Pragma;
5240 procedure Set_Next_Rep_Item
5241 (N : Node_Id; Val : Node_Id) is
5243 pragma Assert (False
5244 or else NT (N).Nkind = N_Aspect_Specification
5245 or else NT (N).Nkind = N_Attribute_Definition_Clause
5246 or else NT (N).Nkind = N_Enumeration_Representation_Clause
5247 or else NT (N).Nkind = N_Pragma
5248 or else NT (N).Nkind = N_Record_Representation_Clause);
5249 Set_Node5 (N, Val); -- semantic field, no parent set
5250 end Set_Next_Rep_Item;
5252 procedure Set_Next_Use_Clause
5253 (N : Node_Id; Val : Node_Id) is
5255 pragma Assert (False
5256 or else NT (N).Nkind = N_Use_Package_Clause
5257 or else NT (N).Nkind = N_Use_Type_Clause);
5258 Set_Node3 (N, Val); -- semantic field, no parent set
5259 end Set_Next_Use_Clause;
5261 procedure Set_No_Ctrl_Actions
5262 (N : Node_Id; Val : Boolean := True) is
5264 pragma Assert (False
5265 or else NT (N).Nkind = N_Assignment_Statement);
5267 end Set_No_Ctrl_Actions;
5269 procedure Set_No_Elaboration_Check
5270 (N : Node_Id; Val : Boolean := True) is
5272 pragma Assert (False
5273 or else NT (N).Nkind = N_Function_Call
5274 or else NT (N).Nkind = N_Procedure_Call_Statement);
5275 Set_Flag14 (N, Val);
5276 end Set_No_Elaboration_Check;
5278 procedure Set_No_Entities_Ref_In_Spec
5279 (N : Node_Id; Val : Boolean := True) is
5281 pragma Assert (False
5282 or else NT (N).Nkind = N_With_Clause);
5284 end Set_No_Entities_Ref_In_Spec;
5286 procedure Set_No_Initialization
5287 (N : Node_Id; Val : Boolean := True) is
5289 pragma Assert (False
5290 or else NT (N).Nkind = N_Allocator
5291 or else NT (N).Nkind = N_Object_Declaration);
5292 Set_Flag13 (N, Val);
5293 end Set_No_Initialization;
5295 procedure Set_No_Truncation
5296 (N : Node_Id; Val : Boolean := True) is
5298 pragma Assert (False
5299 or else NT (N).Nkind = N_Unchecked_Type_Conversion);
5300 Set_Flag17 (N, Val);
5301 end Set_No_Truncation;
5303 procedure Set_Null_Present
5304 (N : Node_Id; Val : Boolean := True) is
5306 pragma Assert (False
5307 or else NT (N).Nkind = N_Component_List
5308 or else NT (N).Nkind = N_Procedure_Specification
5309 or else NT (N).Nkind = N_Record_Definition);
5310 Set_Flag13 (N, Val);
5311 end Set_Null_Present;
5313 procedure Set_Null_Exclusion_Present
5314 (N : Node_Id; Val : Boolean := True) is
5316 pragma Assert (False
5317 or else NT (N).Nkind = N_Access_Definition
5318 or else NT (N).Nkind = N_Access_Function_Definition
5319 or else NT (N).Nkind = N_Access_Procedure_Definition
5320 or else NT (N).Nkind = N_Access_To_Object_Definition
5321 or else NT (N).Nkind = N_Allocator
5322 or else NT (N).Nkind = N_Component_Definition
5323 or else NT (N).Nkind = N_Derived_Type_Definition
5324 or else NT (N).Nkind = N_Discriminant_Specification
5325 or else NT (N).Nkind = N_Formal_Object_Declaration
5326 or else NT (N).Nkind = N_Function_Specification
5327 or else NT (N).Nkind = N_Object_Declaration
5328 or else NT (N).Nkind = N_Object_Renaming_Declaration
5329 or else NT (N).Nkind = N_Parameter_Specification
5330 or else NT (N).Nkind = N_Subtype_Declaration);
5331 Set_Flag11 (N, Val);
5332 end Set_Null_Exclusion_Present;
5334 procedure Set_Null_Exclusion_In_Return_Present
5335 (N : Node_Id; Val : Boolean := True) is
5337 pragma Assert (False
5338 or else NT (N).Nkind = N_Access_Function_Definition);
5339 Set_Flag14 (N, Val);
5340 end Set_Null_Exclusion_In_Return_Present;
5342 procedure Set_Null_Record_Present
5343 (N : Node_Id; Val : Boolean := True) is
5345 pragma Assert (False
5346 or else NT (N).Nkind = N_Aggregate
5347 or else NT (N).Nkind = N_Extension_Aggregate);
5348 Set_Flag17 (N, Val);
5349 end Set_Null_Record_Present;
5351 procedure Set_Object_Definition
5352 (N : Node_Id; Val : Node_Id) is
5354 pragma Assert (False
5355 or else NT (N).Nkind = N_Object_Declaration);
5356 Set_Node4_With_Parent (N, Val);
5357 end Set_Object_Definition;
5359 procedure Set_Of_Present
5360 (N : Node_Id; Val : Boolean := True) is
5362 pragma Assert (False
5363 or else NT (N).Nkind = N_Iterator_Specification);
5364 Set_Flag16 (N, Val);
5367 procedure Set_Original_Discriminant
5368 (N : Node_Id; Val : Node_Id) is
5370 pragma Assert (False
5371 or else NT (N).Nkind = N_Identifier);
5372 Set_Node2 (N, Val); -- semantic field, no parent set
5373 end Set_Original_Discriminant;
5375 procedure Set_Original_Entity
5376 (N : Node_Id; Val : Entity_Id) is
5378 pragma Assert (False
5379 or else NT (N).Nkind = N_Integer_Literal
5380 or else NT (N).Nkind = N_Real_Literal);
5381 Set_Node2 (N, Val); -- semantic field, no parent set
5382 end Set_Original_Entity;
5384 procedure Set_Others_Discrete_Choices
5385 (N : Node_Id; Val : List_Id) is
5387 pragma Assert (False
5388 or else NT (N).Nkind = N_Others_Choice);
5389 Set_List1_With_Parent (N, Val);
5390 end Set_Others_Discrete_Choices;
5392 procedure Set_Out_Present
5393 (N : Node_Id; Val : Boolean := True) is
5395 pragma Assert (False
5396 or else NT (N).Nkind = N_Formal_Object_Declaration
5397 or else NT (N).Nkind = N_Parameter_Specification);
5398 Set_Flag17 (N, Val);
5399 end Set_Out_Present;
5401 procedure Set_Parameter_Associations
5402 (N : Node_Id; Val : List_Id) is
5404 pragma Assert (False
5405 or else NT (N).Nkind = N_Entry_Call_Statement
5406 or else NT (N).Nkind = N_Function_Call
5407 or else NT (N).Nkind = N_Procedure_Call_Statement);
5408 Set_List3_With_Parent (N, Val);
5409 end Set_Parameter_Associations;
5411 procedure Set_Parameter_List_Truncated
5412 (N : Node_Id; Val : Boolean := True) is
5414 pragma Assert (False
5415 or else NT (N).Nkind = N_Function_Call
5416 or else NT (N).Nkind = N_Procedure_Call_Statement);
5417 Set_Flag17 (N, Val);
5418 end Set_Parameter_List_Truncated;
5420 procedure Set_Parameter_Specifications
5421 (N : Node_Id; Val : List_Id) is
5423 pragma Assert (False
5424 or else NT (N).Nkind = N_Accept_Statement
5425 or else NT (N).Nkind = N_Access_Function_Definition
5426 or else NT (N).Nkind = N_Access_Procedure_Definition
5427 or else NT (N).Nkind = N_Entry_Body_Formal_Part
5428 or else NT (N).Nkind = N_Entry_Declaration
5429 or else NT (N).Nkind = N_Function_Specification
5430 or else NT (N).Nkind = N_Procedure_Specification);
5431 Set_List3_With_Parent (N, Val);
5432 end Set_Parameter_Specifications;
5434 procedure Set_Parameter_Type
5435 (N : Node_Id; Val : Node_Id) is
5437 pragma Assert (False
5438 or else NT (N).Nkind = N_Parameter_Specification);
5439 Set_Node2_With_Parent (N, Val);
5440 end Set_Parameter_Type;
5442 procedure Set_Parent_Spec
5443 (N : Node_Id; Val : Node_Id) is
5445 pragma Assert (False
5446 or else NT (N).Nkind = N_Function_Instantiation
5447 or else NT (N).Nkind = N_Generic_Function_Renaming_Declaration
5448 or else NT (N).Nkind = N_Generic_Package_Declaration
5449 or else NT (N).Nkind = N_Generic_Package_Renaming_Declaration
5450 or else NT (N).Nkind = N_Generic_Procedure_Renaming_Declaration
5451 or else NT (N).Nkind = N_Generic_Subprogram_Declaration
5452 or else NT (N).Nkind = N_Package_Declaration
5453 or else NT (N).Nkind = N_Package_Instantiation
5454 or else NT (N).Nkind = N_Package_Renaming_Declaration
5455 or else NT (N).Nkind = N_Procedure_Instantiation
5456 or else NT (N).Nkind = N_Subprogram_Declaration
5457 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration);
5458 Set_Node4 (N, Val); -- semantic field, no parent set
5459 end Set_Parent_Spec;
5461 procedure Set_Position
5462 (N : Node_Id; Val : Node_Id) is
5464 pragma Assert (False
5465 or else NT (N).Nkind = N_Component_Clause);
5466 Set_Node2_With_Parent (N, Val);
5469 procedure Set_Pragma_Argument_Associations
5470 (N : Node_Id; Val : List_Id) is
5472 pragma Assert (False
5473 or else NT (N).Nkind = N_Pragma);
5474 Set_List2_With_Parent (N, Val);
5475 end Set_Pragma_Argument_Associations;
5477 procedure Set_Pragma_Identifier
5478 (N : Node_Id; Val : Node_Id) is
5480 pragma Assert (False
5481 or else NT (N).Nkind = N_Pragma);
5482 Set_Node4_With_Parent (N, Val);
5483 end Set_Pragma_Identifier;
5485 procedure Set_Pragmas_After
5486 (N : Node_Id; Val : List_Id) is
5488 pragma Assert (False
5489 or else NT (N).Nkind = N_Compilation_Unit_Aux
5490 or else NT (N).Nkind = N_Terminate_Alternative);
5491 Set_List5_With_Parent (N, Val);
5492 end Set_Pragmas_After;
5494 procedure Set_Pragmas_Before
5495 (N : Node_Id; Val : List_Id) is
5497 pragma Assert (False
5498 or else NT (N).Nkind = N_Accept_Alternative
5499 or else NT (N).Nkind = N_Delay_Alternative
5500 or else NT (N).Nkind = N_Entry_Call_Alternative
5501 or else NT (N).Nkind = N_Mod_Clause
5502 or else NT (N).Nkind = N_Terminate_Alternative
5503 or else NT (N).Nkind = N_Triggering_Alternative);
5504 Set_List4_With_Parent (N, Val);
5505 end Set_Pragmas_Before;
5507 procedure Set_Prefix
5508 (N : Node_Id; Val : Node_Id) is
5510 pragma Assert (False
5511 or else NT (N).Nkind = N_Attribute_Reference
5512 or else NT (N).Nkind = N_Expanded_Name
5513 or else NT (N).Nkind = N_Explicit_Dereference
5514 or else NT (N).Nkind = N_Indexed_Component
5515 or else NT (N).Nkind = N_Reference
5516 or else NT (N).Nkind = N_Selected_Component
5517 or else NT (N).Nkind = N_Slice);
5518 Set_Node3_With_Parent (N, Val);
5521 procedure Set_Premature_Use
5522 (N : Node_Id; Val : Node_Id) is
5524 pragma Assert (False
5525 or else NT (N).Nkind = N_Incomplete_Type_Declaration);
5527 end Set_Premature_Use;
5529 procedure Set_Present_Expr
5530 (N : Node_Id; Val : Uint) is
5532 pragma Assert (False
5533 or else NT (N).Nkind = N_Variant);
5535 end Set_Present_Expr;
5537 procedure Set_Prev_Ids
5538 (N : Node_Id; Val : Boolean := True) is
5540 pragma Assert (False
5541 or else NT (N).Nkind = N_Component_Declaration
5542 or else NT (N).Nkind = N_Discriminant_Specification
5543 or else NT (N).Nkind = N_Exception_Declaration
5544 or else NT (N).Nkind = N_Formal_Object_Declaration
5545 or else NT (N).Nkind = N_Number_Declaration
5546 or else NT (N).Nkind = N_Object_Declaration
5547 or else NT (N).Nkind = N_Parameter_Specification);
5551 procedure Set_Print_In_Hex
5552 (N : Node_Id; Val : Boolean := True) is
5554 pragma Assert (False
5555 or else NT (N).Nkind = N_Integer_Literal);
5556 Set_Flag13 (N, Val);
5557 end Set_Print_In_Hex;
5559 procedure Set_Private_Declarations
5560 (N : Node_Id; Val : List_Id) is
5562 pragma Assert (False
5563 or else NT (N).Nkind = N_Package_Specification
5564 or else NT (N).Nkind = N_Protected_Definition
5565 or else NT (N).Nkind = N_Task_Definition);
5566 Set_List3_With_Parent (N, Val);
5567 end Set_Private_Declarations;
5569 procedure Set_Private_Present
5570 (N : Node_Id; Val : Boolean := True) is
5572 pragma Assert (False
5573 or else NT (N).Nkind = N_Compilation_Unit
5574 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
5575 or else NT (N).Nkind = N_With_Clause);
5576 Set_Flag15 (N, Val);
5577 end Set_Private_Present;
5579 procedure Set_Procedure_To_Call
5580 (N : Node_Id; Val : Node_Id) is
5582 pragma Assert (False
5583 or else NT (N).Nkind = N_Allocator
5584 or else NT (N).Nkind = N_Extended_Return_Statement
5585 or else NT (N).Nkind = N_Free_Statement
5586 or else NT (N).Nkind = N_Return_Statement);
5587 Set_Node2 (N, Val); -- semantic field, no parent set
5588 end Set_Procedure_To_Call;
5590 procedure Set_Proper_Body
5591 (N : Node_Id; Val : Node_Id) is
5593 pragma Assert (False
5594 or else NT (N).Nkind = N_Subunit);
5595 Set_Node1_With_Parent (N, Val);
5596 end Set_Proper_Body;
5598 procedure Set_Protected_Definition
5599 (N : Node_Id; Val : Node_Id) is
5601 pragma Assert (False
5602 or else NT (N).Nkind = N_Protected_Type_Declaration
5603 or else NT (N).Nkind = N_Single_Protected_Declaration);
5604 Set_Node3_With_Parent (N, Val);
5605 end Set_Protected_Definition;
5607 procedure Set_Protected_Present
5608 (N : Node_Id; Val : Boolean := True) is
5610 pragma Assert (False
5611 or else NT (N).Nkind = N_Access_Function_Definition
5612 or else NT (N).Nkind = N_Access_Procedure_Definition
5613 or else NT (N).Nkind = N_Derived_Type_Definition
5614 or else NT (N).Nkind = N_Record_Definition);
5616 end Set_Protected_Present;
5618 procedure Set_Raises_Constraint_Error
5619 (N : Node_Id; Val : Boolean := True) is
5621 pragma Assert (False
5622 or else NT (N).Nkind in N_Subexpr);
5624 end Set_Raises_Constraint_Error;
5626 procedure Set_Range_Constraint
5627 (N : Node_Id; Val : Node_Id) is
5629 pragma Assert (False
5630 or else NT (N).Nkind = N_Delta_Constraint
5631 or else NT (N).Nkind = N_Digits_Constraint);
5632 Set_Node4_With_Parent (N, Val);
5633 end Set_Range_Constraint;
5635 procedure Set_Range_Expression
5636 (N : Node_Id; Val : Node_Id) is
5638 pragma Assert (False
5639 or else NT (N).Nkind = N_Range_Constraint);
5640 Set_Node4_With_Parent (N, Val);
5641 end Set_Range_Expression;
5643 procedure Set_Real_Range_Specification
5644 (N : Node_Id; Val : Node_Id) is
5646 pragma Assert (False
5647 or else NT (N).Nkind = N_Decimal_Fixed_Point_Definition
5648 or else NT (N).Nkind = N_Floating_Point_Definition
5649 or else NT (N).Nkind = N_Ordinary_Fixed_Point_Definition);
5650 Set_Node4_With_Parent (N, Val);
5651 end Set_Real_Range_Specification;
5653 procedure Set_Realval
5654 (N : Node_Id; Val : Ureal) is
5656 pragma Assert (False
5657 or else NT (N).Nkind = N_Real_Literal);
5658 Set_Ureal3 (N, Val);
5661 procedure Set_Reason
5662 (N : Node_Id; Val : Uint) is
5664 pragma Assert (False
5665 or else NT (N).Nkind = N_Raise_Constraint_Error
5666 or else NT (N).Nkind = N_Raise_Program_Error
5667 or else NT (N).Nkind = N_Raise_Storage_Error);
5671 procedure Set_Record_Extension_Part
5672 (N : Node_Id; Val : Node_Id) is
5674 pragma Assert (False
5675 or else NT (N).Nkind = N_Derived_Type_Definition);
5676 Set_Node3_With_Parent (N, Val);
5677 end Set_Record_Extension_Part;
5679 procedure Set_Redundant_Use
5680 (N : Node_Id; Val : Boolean := True) is
5682 pragma Assert (False
5683 or else NT (N).Nkind = N_Attribute_Reference
5684 or else NT (N).Nkind = N_Expanded_Name
5685 or else NT (N).Nkind = N_Identifier);
5686 Set_Flag13 (N, Val);
5687 end Set_Redundant_Use;
5689 procedure Set_Renaming_Exception
5690 (N : Node_Id; Val : Node_Id) is
5692 pragma Assert (False
5693 or else NT (N).Nkind = N_Exception_Declaration);
5695 end Set_Renaming_Exception;
5697 procedure Set_Result_Definition
5698 (N : Node_Id; Val : Node_Id) is
5700 pragma Assert (False
5701 or else NT (N).Nkind = N_Access_Function_Definition
5702 or else NT (N).Nkind = N_Function_Specification);
5703 Set_Node4_With_Parent (N, Val);
5704 end Set_Result_Definition;
5706 procedure Set_Return_Object_Declarations
5707 (N : Node_Id; Val : List_Id) is
5709 pragma Assert (False
5710 or else NT (N).Nkind = N_Extended_Return_Statement);
5711 Set_List3_With_Parent (N, Val);
5712 end Set_Return_Object_Declarations;
5714 procedure Set_Return_Statement_Entity
5715 (N : Node_Id; Val : Node_Id) is
5717 pragma Assert (False
5718 or else NT (N).Nkind = N_Extended_Return_Statement
5719 or else NT (N).Nkind = N_Return_Statement);
5720 Set_Node5 (N, Val); -- semantic field, no parent set
5721 end Set_Return_Statement_Entity;
5723 procedure Set_Reverse_Present
5724 (N : Node_Id; Val : Boolean := True) is
5726 pragma Assert (False
5727 or else NT (N).Nkind = N_Iterator_Specification
5728 or else NT (N).Nkind = N_Loop_Parameter_Specification);
5729 Set_Flag15 (N, Val);
5730 end Set_Reverse_Present;
5732 procedure Set_Right_Opnd
5733 (N : Node_Id; Val : Node_Id) is
5735 pragma Assert (False
5736 or else NT (N).Nkind in N_Op
5737 or else NT (N).Nkind = N_And_Then
5738 or else NT (N).Nkind = N_In
5739 or else NT (N).Nkind = N_Not_In
5740 or else NT (N).Nkind = N_Or_Else);
5741 Set_Node3_With_Parent (N, Val);
5744 procedure Set_Rounded_Result
5745 (N : Node_Id; Val : Boolean := True) is
5747 pragma Assert (False
5748 or else NT (N).Nkind = N_Op_Divide
5749 or else NT (N).Nkind = N_Op_Multiply
5750 or else NT (N).Nkind = N_Type_Conversion);
5751 Set_Flag18 (N, Val);
5752 end Set_Rounded_Result;
5754 procedure Set_SCIL_Controlling_Tag
5755 (N : Node_Id; Val : Node_Id) is
5757 pragma Assert (False
5758 or else NT (N).Nkind = N_SCIL_Dispatching_Call);
5759 Set_Node5 (N, Val); -- semantic field, no parent set
5760 end Set_SCIL_Controlling_Tag;
5762 procedure Set_SCIL_Entity
5763 (N : Node_Id; Val : Node_Id) is
5765 pragma Assert (False
5766 or else NT (N).Nkind = N_SCIL_Dispatch_Table_Tag_Init
5767 or else NT (N).Nkind = N_SCIL_Dispatching_Call
5768 or else NT (N).Nkind = N_SCIL_Membership_Test);
5769 Set_Node4 (N, Val); -- semantic field, no parent set
5770 end Set_SCIL_Entity;
5772 procedure Set_SCIL_Tag_Value
5773 (N : Node_Id; Val : Node_Id) is
5775 pragma Assert (False
5776 or else NT (N).Nkind = N_SCIL_Membership_Test);
5777 Set_Node5 (N, Val); -- semantic field, no parent set
5778 end Set_SCIL_Tag_Value;
5780 procedure Set_SCIL_Target_Prim
5781 (N : Node_Id; Val : Node_Id) is
5783 pragma Assert (False
5784 or else NT (N).Nkind = N_SCIL_Dispatching_Call);
5785 Set_Node2 (N, Val); -- semantic field, no parent set
5786 end Set_SCIL_Target_Prim;
5789 (N : Node_Id; Val : Node_Id) is
5791 pragma Assert (False
5792 or else NT (N).Nkind = N_Defining_Character_Literal
5793 or else NT (N).Nkind = N_Defining_Identifier
5794 or else NT (N).Nkind = N_Defining_Operator_Symbol);
5795 Set_Node3 (N, Val); -- semantic field, no parent set
5798 procedure Set_Select_Alternatives
5799 (N : Node_Id; Val : List_Id) is
5801 pragma Assert (False
5802 or else NT (N).Nkind = N_Selective_Accept);
5803 Set_List1_With_Parent (N, Val);
5804 end Set_Select_Alternatives;
5806 procedure Set_Selector_Name
5807 (N : Node_Id; Val : Node_Id) is
5809 pragma Assert (False
5810 or else NT (N).Nkind = N_Expanded_Name
5811 or else NT (N).Nkind = N_Generic_Association
5812 or else NT (N).Nkind = N_Parameter_Association
5813 or else NT (N).Nkind = N_Selected_Component);
5814 Set_Node2_With_Parent (N, Val);
5815 end Set_Selector_Name;
5817 procedure Set_Selector_Names
5818 (N : Node_Id; Val : List_Id) is
5820 pragma Assert (False
5821 or else NT (N).Nkind = N_Discriminant_Association);
5822 Set_List1_With_Parent (N, Val);
5823 end Set_Selector_Names;
5825 procedure Set_Shift_Count_OK
5826 (N : Node_Id; Val : Boolean := True) is
5828 pragma Assert (False
5829 or else NT (N).Nkind = N_Op_Rotate_Left
5830 or else NT (N).Nkind = N_Op_Rotate_Right
5831 or else NT (N).Nkind = N_Op_Shift_Left
5832 or else NT (N).Nkind = N_Op_Shift_Right
5833 or else NT (N).Nkind = N_Op_Shift_Right_Arithmetic);
5835 end Set_Shift_Count_OK;
5837 procedure Set_Source_Type
5838 (N : Node_Id; Val : Entity_Id) is
5840 pragma Assert (False
5841 or else NT (N).Nkind = N_Validate_Unchecked_Conversion);
5842 Set_Node1 (N, Val); -- semantic field, no parent set
5843 end Set_Source_Type;
5845 procedure Set_Spec_PPC_List
5846 (N : Node_Id; Val : Node_Id) is
5848 pragma Assert (False
5849 or else NT (N).Nkind = N_Contract);
5850 Set_Node1 (N, Val); -- semantic field, no parent set
5851 end Set_Spec_PPC_List;
5853 procedure Set_Spec_TC_List
5854 (N : Node_Id; Val : Node_Id) is
5856 pragma Assert (False
5857 or else NT (N).Nkind = N_Contract);
5858 Set_Node2 (N, Val); -- semantic field, no parent set
5859 end Set_Spec_TC_List;
5861 procedure Set_Specification
5862 (N : Node_Id; Val : Node_Id) is
5864 pragma Assert (False
5865 or else NT (N).Nkind = N_Abstract_Subprogram_Declaration
5866 or else NT (N).Nkind = N_Expression_Function
5867 or else NT (N).Nkind = N_Formal_Abstract_Subprogram_Declaration
5868 or else NT (N).Nkind = N_Formal_Concrete_Subprogram_Declaration
5869 or else NT (N).Nkind = N_Generic_Package_Declaration
5870 or else NT (N).Nkind = N_Generic_Subprogram_Declaration
5871 or else NT (N).Nkind = N_Package_Declaration
5872 or else NT (N).Nkind = N_Subprogram_Body
5873 or else NT (N).Nkind = N_Subprogram_Body_Stub
5874 or else NT (N).Nkind = N_Subprogram_Declaration
5875 or else NT (N).Nkind = N_Subprogram_Renaming_Declaration);
5876 Set_Node1_With_Parent (N, Val);
5877 end Set_Specification;
5879 procedure Set_Split_PPC
5880 (N : Node_Id; Val : Boolean) is
5882 pragma Assert (False
5883 or else NT (N).Nkind = N_Aspect_Specification
5884 or else NT (N).Nkind = N_Pragma);
5885 Set_Flag17 (N, Val);
5888 procedure Set_Statements
5889 (N : Node_Id; Val : List_Id) is
5891 pragma Assert (False
5892 or else NT (N).Nkind = N_Abortable_Part
5893 or else NT (N).Nkind = N_Accept_Alternative
5894 or else NT (N).Nkind = N_Case_Statement_Alternative
5895 or else NT (N).Nkind = N_Delay_Alternative
5896 or else NT (N).Nkind = N_Entry_Call_Alternative
5897 or else NT (N).Nkind = N_Exception_Handler
5898 or else NT (N).Nkind = N_Handled_Sequence_Of_Statements
5899 or else NT (N).Nkind = N_Loop_Statement
5900 or else NT (N).Nkind = N_Triggering_Alternative);
5901 Set_List3_With_Parent (N, Val);
5904 procedure Set_Static_Processing_OK
5905 (N : Node_Id; Val : Boolean) is
5907 pragma Assert (False
5908 or else NT (N).Nkind = N_Aggregate);
5910 end Set_Static_Processing_OK;
5912 procedure Set_Storage_Pool
5913 (N : Node_Id; Val : Node_Id) is
5915 pragma Assert (False
5916 or else NT (N).Nkind = N_Allocator
5917 or else NT (N).Nkind = N_Extended_Return_Statement
5918 or else NT (N).Nkind = N_Free_Statement
5919 or else NT (N).Nkind = N_Return_Statement);
5920 Set_Node1 (N, Val); -- semantic field, no parent set
5921 end Set_Storage_Pool;
5923 procedure Set_Subpool_Handle_Name
5924 (N : Node_Id; Val : Node_Id) is
5926 pragma Assert (False
5927 or else NT (N).Nkind = N_Allocator);
5928 Set_Node4_With_Parent (N, Val);
5929 end Set_Subpool_Handle_Name;
5931 procedure Set_Strval
5932 (N : Node_Id; Val : String_Id) is
5934 pragma Assert (False
5935 or else NT (N).Nkind = N_Operator_Symbol
5936 or else NT (N).Nkind = N_String_Literal);
5940 procedure Set_Subtype_Indication
5941 (N : Node_Id; Val : Node_Id) is
5943 pragma Assert (False
5944 or else NT (N).Nkind = N_Access_To_Object_Definition
5945 or else NT (N).Nkind = N_Component_Definition
5946 or else NT (N).Nkind = N_Derived_Type_Definition
5947 or else NT (N).Nkind = N_Iterator_Specification
5948 or else NT (N).Nkind = N_Private_Extension_Declaration
5949 or else NT (N).Nkind = N_Subtype_Declaration);
5950 Set_Node5_With_Parent (N, Val);
5951 end Set_Subtype_Indication;
5953 procedure Set_Subtype_Mark
5954 (N : Node_Id; Val : Node_Id) is
5956 pragma Assert (False
5957 or else NT (N).Nkind = N_Access_Definition
5958 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
5959 or else NT (N).Nkind = N_Formal_Object_Declaration
5960 or else NT (N).Nkind = N_Object_Renaming_Declaration
5961 or else NT (N).Nkind = N_Qualified_Expression
5962 or else NT (N).Nkind = N_Subtype_Indication
5963 or else NT (N).Nkind = N_Type_Conversion
5964 or else NT (N).Nkind = N_Unchecked_Type_Conversion);
5965 Set_Node4_With_Parent (N, Val);
5966 end Set_Subtype_Mark;
5968 procedure Set_Subtype_Marks
5969 (N : Node_Id; Val : List_Id) is
5971 pragma Assert (False
5972 or else NT (N).Nkind = N_Unconstrained_Array_Definition
5973 or else NT (N).Nkind = N_Use_Type_Clause);
5974 Set_List2_With_Parent (N, Val);
5975 end Set_Subtype_Marks;
5977 procedure Set_Suppress_Assignment_Checks
5978 (N : Node_Id; Val : Boolean := True) is
5980 pragma Assert (False
5981 or else NT (N).Nkind = N_Assignment_Statement
5982 or else NT (N).Nkind = N_Object_Declaration);
5983 Set_Flag18 (N, Val);
5984 end Set_Suppress_Assignment_Checks;
5986 procedure Set_Suppress_Loop_Warnings
5987 (N : Node_Id; Val : Boolean := True) is
5989 pragma Assert (False
5990 or else NT (N).Nkind = N_Loop_Statement);
5991 Set_Flag17 (N, Val);
5992 end Set_Suppress_Loop_Warnings;
5994 procedure Set_Synchronized_Present
5995 (N : Node_Id; Val : Boolean := True) is
5997 pragma Assert (False
5998 or else NT (N).Nkind = N_Derived_Type_Definition
5999 or else NT (N).Nkind = N_Formal_Derived_Type_Definition
6000 or else NT (N).Nkind = N_Private_Extension_Declaration
6001 or else NT (N).Nkind = N_Record_Definition);
6003 end Set_Synchronized_Present;
6005 procedure Set_Tagged_Present
6006 (N : Node_Id; Val : Boolean := True) is
6008 pragma Assert (False
6009 or else NT (N).Nkind = N_Formal_Incomplete_Type_Definition
6010 or else NT (N).Nkind = N_Formal_Private_Type_Definition
6011 or else NT (N).Nkind = N_Incomplete_Type_Declaration
6012 or else NT (N).Nkind = N_Private_Type_Declaration
6013 or else NT (N).Nkind = N_Record_Definition);
6014 Set_Flag15 (N, Val);
6015 end Set_Tagged_Present;
6017 procedure Set_Target_Type
6018 (N : Node_Id; Val : Entity_Id) is
6020 pragma Assert (False
6021 or else NT (N).Nkind = N_Validate_Unchecked_Conversion);
6022 Set_Node2 (N, Val); -- semantic field, no parent set
6023 end Set_Target_Type;
6025 procedure Set_Task_Definition
6026 (N : Node_Id; Val : Node_Id) is
6028 pragma Assert (False
6029 or else NT (N).Nkind = N_Single_Task_Declaration
6030 or else NT (N).Nkind = N_Task_Type_Declaration);
6031 Set_Node3_With_Parent (N, Val);
6032 end Set_Task_Definition;
6034 procedure Set_Task_Present
6035 (N : Node_Id; Val : Boolean := True) is
6037 pragma Assert (False
6038 or else NT (N).Nkind = N_Derived_Type_Definition
6039 or else NT (N).Nkind = N_Record_Definition);
6041 end Set_Task_Present;
6043 procedure Set_Then_Actions
6044 (N : Node_Id; Val : List_Id) is
6046 pragma Assert (False
6047 or else NT (N).Nkind = N_Conditional_Expression);
6048 Set_List2 (N, Val); -- semantic field, no parent set
6049 end Set_Then_Actions;
6051 procedure Set_Then_Statements
6052 (N : Node_Id; Val : List_Id) is
6054 pragma Assert (False
6055 or else NT (N).Nkind = N_Elsif_Part
6056 or else NT (N).Nkind = N_If_Statement);
6057 Set_List2_With_Parent (N, Val);
6058 end Set_Then_Statements;
6060 procedure Set_Treat_Fixed_As_Integer
6061 (N : Node_Id; Val : Boolean := True) is
6063 pragma Assert (False
6064 or else NT (N).Nkind = N_Op_Divide
6065 or else NT (N).Nkind = N_Op_Mod
6066 or else NT (N).Nkind = N_Op_Multiply
6067 or else NT (N).Nkind = N_Op_Rem);
6068 Set_Flag14 (N, Val);
6069 end Set_Treat_Fixed_As_Integer;
6071 procedure Set_Triggering_Alternative
6072 (N : Node_Id; Val : Node_Id) is
6074 pragma Assert (False
6075 or else NT (N).Nkind = N_Asynchronous_Select);
6076 Set_Node1_With_Parent (N, Val);
6077 end Set_Triggering_Alternative;
6079 procedure Set_Triggering_Statement
6080 (N : Node_Id; Val : Node_Id) is
6082 pragma Assert (False
6083 or else NT (N).Nkind = N_Triggering_Alternative);
6084 Set_Node1_With_Parent (N, Val);
6085 end Set_Triggering_Statement;
6087 procedure Set_TSS_Elist
6088 (N : Node_Id; Val : Elist_Id) is
6090 pragma Assert (False
6091 or else NT (N).Nkind = N_Freeze_Entity);
6092 Set_Elist3 (N, Val); -- semantic field, no parent set
6095 procedure Set_Type_Definition
6096 (N : Node_Id; Val : Node_Id) is
6098 pragma Assert (False
6099 or else NT (N).Nkind = N_Full_Type_Declaration);
6100 Set_Node3_With_Parent (N, Val);
6101 end Set_Type_Definition;
6104 (N : Node_Id; Val : Node_Id) is
6106 pragma Assert (False
6107 or else NT (N).Nkind = N_Compilation_Unit);
6108 Set_Node2_With_Parent (N, Val);
6111 procedure Set_Unknown_Discriminants_Present
6112 (N : Node_Id; Val : Boolean := True) is
6114 pragma Assert (False
6115 or else NT (N).Nkind = N_Formal_Type_Declaration
6116 or else NT (N).Nkind = N_Incomplete_Type_Declaration
6117 or else NT (N).Nkind = N_Private_Extension_Declaration
6118 or else NT (N).Nkind = N_Private_Type_Declaration);
6119 Set_Flag13 (N, Val);
6120 end Set_Unknown_Discriminants_Present;
6122 procedure Set_Unreferenced_In_Spec
6123 (N : Node_Id; Val : Boolean := True) is
6125 pragma Assert (False
6126 or else NT (N).Nkind = N_With_Clause);
6128 end Set_Unreferenced_In_Spec;
6130 procedure Set_Variant_Part
6131 (N : Node_Id; Val : Node_Id) is
6133 pragma Assert (False
6134 or else NT (N).Nkind = N_Component_List);
6135 Set_Node4_With_Parent (N, Val);
6136 end Set_Variant_Part;
6138 procedure Set_Variants
6139 (N : Node_Id; Val : List_Id) is
6141 pragma Assert (False
6142 or else NT (N).Nkind = N_Variant_Part);
6143 Set_List1_With_Parent (N, Val);
6146 procedure Set_Visible_Declarations
6147 (N : Node_Id; Val : List_Id) is
6149 pragma Assert (False
6150 or else NT (N).Nkind = N_Package_Specification
6151 or else NT (N).Nkind = N_Protected_Definition
6152 or else NT (N).Nkind = N_Task_Definition);
6153 Set_List2_With_Parent (N, Val);
6154 end Set_Visible_Declarations;
6156 procedure Set_Used_Operations
6157 (N : Node_Id; Val : Elist_Id) is
6159 pragma Assert (False
6160 or else NT (N).Nkind = N_Use_Type_Clause);
6161 Set_Elist5 (N, Val);
6162 end Set_Used_Operations;
6164 procedure Set_Was_Originally_Stub
6165 (N : Node_Id; Val : Boolean := True) is
6167 pragma Assert (False
6168 or else NT (N).Nkind = N_Package_Body
6169 or else NT (N).Nkind = N_Protected_Body
6170 or else NT (N).Nkind = N_Subprogram_Body
6171 or else NT (N).Nkind = N_Task_Body);
6172 Set_Flag13 (N, Val);
6173 end Set_Was_Originally_Stub;
6175 procedure Set_Withed_Body
6176 (N : Node_Id; Val : Node_Id) is
6178 pragma Assert (False
6179 or else NT (N).Nkind = N_With_Clause);
6181 end Set_Withed_Body;
6183 -------------------------
6184 -- Iterator Procedures --
6185 -------------------------
6187 procedure Next_Entity (N : in out Node_Id) is
6189 N := Next_Entity (N);
6192 procedure Next_Named_Actual (N : in out Node_Id) is
6194 N := Next_Named_Actual (N);
6195 end Next_Named_Actual;
6197 procedure Next_Rep_Item (N : in out Node_Id) is
6199 N := Next_Rep_Item (N);
6202 procedure Next_Use_Clause (N : in out Node_Id) is
6204 N := Next_Use_Clause (N);
6205 end Next_Use_Clause;
6211 function End_Location (N : Node_Id) return Source_Ptr is
6212 L : constant Uint := End_Span (N);
6217 return Source_Ptr (Int (Sloc (N)) + UI_To_Int (L));
6221 --------------------
6222 -- Get_Pragma_Arg --
6223 --------------------
6225 function Get_Pragma_Arg (Arg : Node_Id) return Node_Id is
6227 if Nkind (Arg) = N_Pragma_Argument_Association then
6228 return Expression (Arg);
6234 ----------------------
6235 -- Set_End_Location --
6236 ----------------------
6238 procedure Set_End_Location (N : Node_Id; S : Source_Ptr) is
6241 UI_From_Int (Int (S) - Int (Sloc (N))));
6242 end Set_End_Location;
6251 V2 : Node_Kind) return Boolean
6254 return T = V1 or else
6262 V3 : Node_Kind) return Boolean
6265 return T = V1 or else
6275 V4 : Node_Kind) return Boolean
6278 return T = V1 or else
6290 V5 : Node_Kind) return Boolean
6293 return T = V1 or else
6307 V6 : Node_Kind) return Boolean
6310 return T = V1 or else
6326 V7 : Node_Kind) return Boolean
6329 return T = V1 or else
6347 V8 : Node_Kind) return Boolean
6350 return T = V1 or else
6370 V9 : Node_Kind) return Boolean
6373 return T = V1 or else
6388 function Pragma_Name (N : Node_Id) return Name_Id is
6390 return Chars (Pragma_Identifier (N));